EnumDesktopsA Demo
A Rust implementation demonstrating the use of Windows API’s EnumDesktopsA function to iterate through all desktops associated with the calling process’s window station. This project showcases advanced Windows API usage and shellcode execution techniques.
Features
- Desktop enumeration using Windows API
- Shellcode execution demonstration
- Memory allocation and manipulation
- Process window station interaction
Technical Details
The project implements:
- Windows Desktop enumeration
- Memory allocation for shellcode
- Shellcode execution through desktop enumeration
- Process window station management
Key Components
- Desktop Enumeration
- Uses EnumDesktopsA to list all desktops
- Interacts with process window station
- Executes shellcode through enumeration callback
- Memory Management
- Allocates memory for shellcode
- Uses RtlMoveMemory for safe memory operations
- Sets appropriate memory protection flags
Usage
- Build the project using Cargo:
- Run the executable:
Dependencies
- winapi: Windows API bindings with specific features:
Warning
This tool is for educational and research purposes only. Use with caution and only in controlled environments where you have proper authorization.
Author
Created by @5mukx
License
This project is for educational and demonstration purposes only.