RDP
https://ppn.snovvcrash.rocks/pentest/infrastructure/ad/lateral-movement/rdp
Remote Desktop Protocol
Look for terminal servers in a domain:
PS > Get-ADComputer -LDAPFilter "(&(objectClass=computer)(memberOf=CN=Terminal Server License Servers,CN=Builtin,$((Get-ADRootDSE).rootDomainNamingContext)))" | select dNSHostNameEnable RDP
With CMD:
:: Enable remote access.
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
:: allow through firewall.
netsh advfirewall firewall set rule group="remote desktop" new enable=YesWith meterpreter:
meterpreter > run getgui -eWith PowerShell:
Manually add firewall rule (if necessary):
Restricted Admin
RDP with PtH: RDP needs a plaintext password unless Restricted Admin mode is enabled.
Check / enable / disable with PowerShell:
Check / enable / disable with Impacket:
Enable with CME:
Usage:
Last updated
Was this helpful?