mirror of
https://codeberg.org/smukx/Rust-for-Malware-Development
synced 2026-06-06 20:22:59 +00:00
28e7fac1d3
Rust-for-Malware-Development is an collection of proof of concepts with techniques and advanced evasion methods
Local Mapping Injection
A Rust implementation of local mapping injection technique, demonstrating advanced memory manipulation and process injection methods. This project showcases the use of Windows API for file mapping and memory operations.
Features
- File mapping creation and manipulation
- Memory mapping and protection
- Thread creation and management
- Shellcode execution
- Error handling and status reporting
Technical Details
The project implements:
- Windows File Mapping API usage
- Memory mapping and protection
- Thread creation and synchronization
- Shellcode injection through mapping
- Handle management
Key Components
-
File Mapping
- Creates file mapping object
- Maps view of file into process address space
- Sets appropriate memory protection flags
-
Memory Operations
- Memory mapping
- Shellcode copying
- Memory protection manipulation
-
Thread Management
- Thread creation
- Thread synchronization
- Handle cleanup
Usage
-
Build the project using Cargo:
cargo build --release -
Run the executable:
cargo run --release
Dependencies
- winapi: Windows API bindings with specific features:
- errhandlingapi
- handleapi
- memoryapi
- processthreadsapi
- synchapi
- winbase
- winnt
References
Author
Created by @5mukx