Crates.io | proxyify |
lib.rs | proxyify |
version | 0.4.1 |
source | src |
created_at | 2023-11-07 01:16:02.359866 |
updated_at | 2023-11-07 15:55:01.128922 |
description | A DLL proxy generator written in Rust. Note: I have renamed this crate to proxygen. Contact me if you'd like this crate name |
homepage | |
repository | https://github.com/WarrenHood/proxyify/ |
max_upload_size | |
id | 1027479 |
size | 54,263 |
A DLL proxy generator written in Rust. Easily proxy any DLL.
Features:
A DLL export dumper and proxy generator
Usage: proxyify <COMMAND>
Commands:
dump-exports Prints out the exported functions from a given PE file
generate Generate a new proxy DLL project for the given DLL file
merge Merges the given DLL's new exports into an existing DLL proxy project
update Updates an exisitng DLL proxy project's exports based on the intercepted exports
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
Note: Generated projects need to be built with nightly Rust.
proxyify generate path/to/some_library.dll my_some_library_proxy
And just like that, you have a ready to compile DLL proxy Rust project.
Then add some exports you want to replace to intercepted_exports.rs
.
Eg. Something like:
#[no_mangle]
pub extern "C" fn some_dll_export(x: u64, y: u64) -> u64 {
println!("Proxy some_dll_export function called...");
5
}
And then update your exports by running this in the root of the project before building:
proxyify update .
Build the DLL using Rust nightly:
cargo +nightly build --release
Next, rename the original DLL and add an underscore to the end. Copy the dll from the target folder into the same folder as the original DLL.
Run the program and you should see a console appear. Anything you send to stdout or stderr will appear in that console.