Skip to content

Rust Implementation of SharpDllProxy for DLL Proxying Technique

License

Notifications You must be signed in to change notification settings

aancw/DllProxy-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DllProxy-rs

Rust Implementation of SharpDllProxy for DLL Proxying Technique

Features

  • Everything in SharpDllProxy
  • Automatic compile and build DLL

Requirements

Build Instructions

  1. Install Rust and cargo
  2. Install cargo-make
cargo install --force cargo-make
  1. Build release app
cargo make -p release build-release
  1. Run the app as described at Usage section.

Usage

Before you can use it, you need to build first. Please read build instructions

  • Help Information
PS C:>.\dll_proxy_rs.exe -h
DllProxy-rs 1.0
Petruknisme <me@petruknisme.com>
Rust Implementation of SharpDllProxy for DLL Proxying Technique

USAGE:
    dll_proxy_rs.exe [OPTIONS] --dll <DLL> --payload <PAYLOAD>

OPTIONS:
    -a, --auto                 Automatic DLL compilation
    -d, --dll <DLL>            Dll File Location to hijack
    -h, --help                 Print help information
    -p, --payload <PAYLOAD>    Shellcode file to insert in the hijacked dll
    -V, --version              Print version information
  • Run without automatic dll compilation
.\dll_proxy_rs.exe -d <path/to/file.dll> -p <path/to/shellcode.bin>
  • Run with automatic dll compilation
.\dll_proxy_rs.exe -d <path/to/file.dll> -p <path/to/shellcode.bin> -a

Note: For this example, I'm just using msfvenom to generate the payload

msfvenom -a x64 --platform windows -p windows/x64/messagebox TEXT="DLL Proxy Loading using Rust worked!" -f raw > shellcode.bin

Demo

Thanks to

References

License

MIT License

About

Rust Implementation of SharpDllProxy for DLL Proxying Technique

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published