Skip to content

Instantly share code, notes, and snippets.

@cgimenes
Created May 27, 2019 21:39
Show Gist options
  • Save cgimenes/298d005d49e434edc67c45ba0d2f3015 to your computer and use it in GitHub Desktop.
Save cgimenes/298d005d49e434edc67c45ba0d2f3015 to your computer and use it in GitHub Desktop.
Confuse people SSHing to your host with a redirect back to theirs
socat -d -d TCP-L:22,reuseaddr,fork SYSTEM:"nc \$SOCAT_PEERADDR 22"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment