> For the complete documentation index, see [llms.txt](https://ivalexev.gitbook.io/rednote/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ivalexev.gitbook.io/rednote/utility/service/rdp-3389.md).

# RDP (3389)

<details>

<summary>Protocol Information</summary>

RDP is a remote access protocol with GUI developed by Microsoft and is used to connect and interact remotely with a Windows system.\
Access is possible only if the host has Network level authentication ([NLA](https://en.wikipedia.org/wiki/Network_Level_Authentication)), and by credentials.

</details>

## Port

<table data-header-hidden><thead><tr><th width="166">Port</th><th>Description</th></tr></thead><tbody><tr><td><mark style="color:green;"><strong>3389</strong></mark><strong> TCP</strong></td><td>RDP</td></tr></tbody></table>

## Interact

{% tabs %}
{% tab title="Linux" %}

<table><thead><tr><th width="160">Tools</th><th>Details</th></tr></thead><tbody><tr><td><a href="https://github.com/FreeRDP/FreeRDP">xfreerdp</a></td><td><code>xfreerdp /u:&#x3C;USER> /p:&#x3C;PASS> /v:&#x3C;IP>:&#x3C;PORT> [/dynamic-resolution /drive:linux,&#x3C;PATH_DIR_SHARE>]</code> <br><em>(<code>net use</code> to view the location of our redirected drive)</em></td></tr><tr><td><a href="https://github.com/rdesktop/rdesktop">rdesktop</a></td><td><code>rdesktop -u &#x3C;USER> -p &#x3C;PASS></code></td></tr></tbody></table>
{% endtab %}

{% tab title="Windows" %}

<table><thead><tr><th width="160">Tools</th><th>Details</th></tr></thead><tbody><tr><td>mstsc.exe</td><td>On Windows locally</td></tr></tbody></table>
{% endtab %}

{% tab title="Other" %}
[Other](https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/remote-desktop-clients)

<table><thead><tr><th width="160">Tools</th><th>Details</th></tr></thead><tbody><tr><td><a href="https://remmina.org/">remmina</a></td><td>Alternative</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

## Attacks

### [BlueKeep](/rednote/pentesting-process/cve/windows.md#bluekeep)

CVE-2019-0708

BlueKeep is a critical security vulnerability that affects the Microsoft Windows Remote Desktop Protocol (RDP) service. This security flaw allows an attacker to execute remote code on a vulnerable system without the need for authentication, simply by sending specially constructed requests to the active RDP service. If successfully exploited, BlueKeep can allow the complete compromise of the system, including complete control of the machine.

### Disable Restricted Admin Mode

If Restricted Admin Mode is enabled, to disable it you need to run this command on the host.

{% code overflow="wrap" %}

```powershell
reg add HKLM\System\CurrentControlSet\Control\Lsa /t REG_DWORD /v DisableRestrictedAdmin /d 0x0 /f
```

{% endcode %}


---

# 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, and the optional `goal` query parameter:

```
GET https://ivalexev.gitbook.io/rednote/utility/service/rdp-3389.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
