metasploitable3/scripts/configs/enable-rdp.bat
2016-08-30 10:53:02 -05:00

3 lines
227 B
Batchfile

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