# 3389 - RDP

A user need to be part of the "Remote Desktop Users" in order to login to the host via RDP.

## Enumeration

### Nmap

Find encryption type:

`nmap -p 3389 --script rdp-enum-encryption <target>`

Enumerates information from remote RDP services with CredSSP (NLA) authentication enabled:

`nmap -p 3389 --script rdp-ntlm-info <target>`

Check if vulnerable to MS12-020:

`nmap -sV --script=rdp-vuln-ms12-020 -p 3389 <target>`

## Brute force access

### RDPassSpray

RDPassSpary is a python tool to perform password spray attack in a Microsoft domain environment.

Link: <https://github.com/xFreed0m/RDPassSpray>

Usage:

```
python3 RDPassSpray.py -u [USERNAME] -p [PASSWORD] -d [DOMAIN] -t [TARGET IP]
```

### Crowbar

Link: <https://github.com/galkan/crowbar>

`./crowbar.py -b rdp -s 10.xx.xx.xx/32 -u sectest@TESTDOMAIN.local -C /root/Desktop/tests/hyda_rdp/rock.txt`

### Hydra:

`hydra -t 1 -V -f -l administrator -P rockyou.txt rdp://192.168.1.1`

## Connect to RDP

Please see this section on [how to connect ](/infrastructure-testing/gaining-access/remote-desktop.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://infra.newerasec.com/infrastructure-testing/enumeration/services-ports/3389-rdp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
