dll-syringe 0.2.1

A windows dll injection library written in rust.
Documentation

dll-syringe

CI crates.io Documentation dependency status MIT

A windows dll injection library written in Rust.

Supported scenarios

Injector Process Target Process Supported?
32-bit 32-bit Yes
32-bit 64-bit No
64-bit 32-bit Yes (requires feature into_x86_from_x64)
64-bit 64-bit Yes

Example

use dll_syringe::{Syringe, Process};

// find target process by name
let target_process = Process::find_first_by_name("target_process").unwrap();

// create new syringe (reuse for better performance)
let syringe = Syringe::new();

// inject the payload into the target process
let injected_payload = syringe.inject(&target_process, "injection_payload.dll").unwrap();

// do something else

// eject the payload from the target (optional)
syringe.eject(injected_payload).unwrap();

License

Licensed under MIT license (LICENSE or http://opensource.org/licenses/MIT)