Last active
August 16, 2021 17:03
-
-
Save QuAzI/b6d29fd6239ed72c9c61870e7ee5ff90 to your computer and use it in GitHub Desktop.
Reverse shell for NAT users with tmux+socat+ssh
This file contains hidden or 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
#!/bin/sh | |
# | |
# Run this script on relay_server to connect shared session | |
# | |
read -p "Port number: " relay_port | |
socat file:`tty`,raw,echo=0 tcp-connect:localhost:${relay_port} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is fantastic. Thank you.