metasploitable3/scripts/configs/enable-rdp.bat

3 lines
227 B
Batchfile
Raw Normal View History

2016-08-30 17:53:02 +02:00
netsh advfirewall firewall add rule name="Open Port 3389" dir=in action=allow protocol=TCP localport=3389
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f