> For the complete documentation index, see [llms.txt](https://gurpreet-portfolio.gitbook.io/gurpreet06/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gurpreet-portfolio.gitbook.io/gurpreet06/projects/rdp-stealer.md).

# RDP-Stealer

RDP-Stealer is C++ malware that targets Remote Desktop Protocol (RDP) processes. It acts as a keystroke logger, capturing credentials provided by users in RDP and sending back encrypted data to a C2 server.

### Features

* Basic Sandbox Evasion
* Executes without a visible window (in the background).
* Captures keystrokes in RDP processes using the context of `mstsc.exe` and `CredentialUIBroker.exe`.
* Encrypts the captured data using `XOR` and `BASE64`.
* Sends data to a C2 server.

### Usage

1. Create a recvData folder in the directory.
2. Before running the `RDPStealer.exe` on the victim machine, first run the `server.php`.

```php
php -S 0.0.0.0:8000
```

4. Run the `RDPStealer.exe` on the victim machine and enjoy :).

```bash
.\RDPStealer.exe
```

> Note ⚠️

* It is better to use an `HTTPS server` instead of an `HTTP server`.

### POC

{% embed url="<https://github.com/Gurpreet06/RDP-Stealer/assets/74554439/117a655e-63eb-409e-a62c-4682eab4a772>" %}


---

# 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://gurpreet-portfolio.gitbook.io/gurpreet06/projects/rdp-stealer.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.
