mirror of
https://github.com/Teach2Breach/snapinject_rs
synced 2026-06-06 16:54:26 +00:00
06d6091e2aa3661ea64563bb4c7143355c11d131
snapinject_rs
A process injection using process snapshotting based on https://gitlab.com/ORCA000/snaploader , in rust.
This is a PoC version. It does not use dynamic resolution of API calls, etc...
Usage
This program can be compiled as an exe, or used as a dll. It can also be used as a library in other rust programs.
To use as an exe or dll, swap the SHELL_CODE in main.rs with your own shellcode.
To use as a library, add the following to your Cargo.toml:
[dependencies]
snapinject_rs = { git = "https://github.com/Teach2Breach/snapinject_rs" }
Call the inject_shellcode function with your process name and shellcode.
snapinject_rs::inject_shellcode(&process_name, &SHELL_CODE).unwrap();
Notes
I left a bunch of commented out code in the main.rs that shows how to use some of the functions individually. I also left in a bunch of commented out print statements that may be useful for debugging and understanding the code.
Credits
- ORCA000 for the original snaploader project.
Languages
Rust
100%