[Tools]內網滲透SMB轉發技巧

gaearrow發表於2017-05-04

Support SMB protocol forwarding


Environment

local-computer forward-computer smb-server
192.168.20.152 192.168.20.151 192.168.20.254
Windows XP SP3 Windows Server 2008 R2 Windows Server 2008 R2

Set Portproxy

netsh interface portproxy add v4tov4 listenaddress=192.168.20.151 listenport=4445 connectaddress=192.168.20.254 connectport=445

Change Port

REG ADD HKLM\SYSTEM\CurrentControlSet\Services\NetBT\Parameters\Smb\ /v SessionPort /t REG_DWORD /d 4445 /f
REG ADD HKLM\SYSTEM\CurrentControlSet\Services\NetBT\Parameters\Smb\ /v DatagramPort /t REG_DWORD /d 4445 /f

windows xp/windows server 2003 only

Connect Server

net use \192.168.20.151\admin$ “password” /user:mydomain\administrator

Github Download

相關文章