Skip to content

Instantly share code, notes, and snippets.

@castexyz
Created November 14, 2019 14:30
Show Gist options
  • Save castexyz/e4084110c8b3475ae2d3cf67e0e4b37d to your computer and use it in GitHub Desktop.
Save castexyz/e4084110c8b3475ae2d3cf67e0e4b37d to your computer and use it in GitHub Desktop.
Metasploit proxy
run autoroute -s 192.168.0.1/24 (inside meterpreter session)
OR
route add 192.168.0.0 255.255.255.0 1
use auxiliary/server/socks4a
set SRVHOST 0.0.0.0
set srvport 1080
exploit -y
vi /etc/proxychains.conf
socks4 127.0.0.1 1080
proxychains4 nmap -sT -Pn 192.168.0.100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment