Files
Whitecat18 28e7fac1d3 Upload
Rust-for-Malware-Development is an collection of proof of concepts with techniques and advanced evasion methods
2026-06-06 14:53:10 +05:30
..
2026-06-06 14:53:10 +05:30
2026-06-06 14:53:10 +05:30
2026-06-06 14:53:10 +05:30

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

  1. File Mapping

    • Creates file mapping object
    • Maps view of file into process address space
    • Sets appropriate memory protection flags
  2. Memory Operations

    • Memory mapping
    • Shellcode copying
    • Memory protection manipulation
  3. Thread Management

    • Thread creation
    • Thread synchronization
    • Handle cleanup

Usage

  1. Build the project using Cargo:

    cargo build --release
    
  2. 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