> For the complete documentation index, see [llms.txt](https://notes.cavementech.com/pentesting-quick-reference/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.cavementech.com/pentesting-quick-reference/port-3389-rdp.md).

# Port 3389 - RDP

### Identifying non deafult port as RDP with aux scanner

```
msfconsole
use auxiliary/scanner/rdp/rdp_scanner
set RHOSTS demo.ine.local
set RPORT 3333
exploit
```

We can Identify RDP endpoints using an auxiliary module on port 3333 if it’s running RDP.

<figure><img src="/files/wnLIgd88G6ZeSaO2Ebd4" alt=""><figcaption></figcaption></figure>

### Bruteforcing RDP (hydra)

```
hydra -L /usr/share/metasploit-framework/data/wordlists/common_users.txt -P /usr/share/metasploit-framework/data/wordlists/unix_passwords.txt rdp://demo.ine.local -s 3333
```

<figure><img src="/files/R7TghRELtEdT6sjI4n08" alt=""><figcaption></figcaption></figure>

### XFREERDP

```
xfreerdp /u:administrator /p:qwertyuiop /v:demo.ine.local:3333
```

### Detecting RDP Attacks

{% embed url="<https://www.thedfirspot.com/post/lateral-movement-remote-desktop-protocol-rdp-event-logs>" %}

### CVE-2019-0708 Bluekeep

Fails if NW authentication is enabled

The BlueKeep vulnerability affects multiple versions of Windows:

* XP
* Vista
* Windows 7
* Windows Server 2008 & R2

<figure><img src="/files/LKGXe02YeEoCxtveq1L9" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/iIy6MmMgVgD9y3umh2UF" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://notes.cavementech.com/pentesting-quick-reference/port-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.
