Teach2Breach 06d6091e2a update LICENSE
2024-12-02 09:36:56 -06:00
2024-12-01 21:47:08 -06:00
2024-11-26 17:14:02 -06:00
2024-12-01 20:55:14 -06:00
2024-12-02 09:36:56 -06:00
2024-12-02 09:23:23 -06:00

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

S
Description
Automated archival mirror of github.com/Teach2Breach/snapinject_rs
Readme MIT 89 KiB
Languages
Rust 100%