aancw / DllProxy-rs

Rust Implementation of SharpDllProxy for DLL Proxying Technique

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Rust 78.9%Language:Batchfile 12.4%Language:C 6.9%Language:C++ 1.8%