Crates.io | injex |
lib.rs | injex |
version | 0.1.0 |
source | src |
created_at | 2021-04-25 11:45:38.124639 |
updated_at | 2021-04-25 11:45:38.124639 |
description | Gives users the possibility to inject into and manipulate processes |
homepage | |
repository | https://github.com/mordragt/injex.git |
max_upload_size | |
id | 389264 |
size | 48,601 |
use injex::prelude::*;
use std::error::Error;
fn main() -> Result<(), Box<dyn Error>> {
let anon = AnonManipulator::new("game_name")?;
inject(&anon, anon.pid(), "path/to/dynamic_library")?;
Ok(())
}
// Dynamic Library in its own crate
use std::thread;
use injex::prelude::*;
#[link_section = ".init_array"]
static INITIALIZE: fn() = init;
fn init() {
thread::spawn(move || -> thread::Result<()> {
let manipulator = InternalManipulator {}
println!("{:?}", manipulator.memory_maps());
let address = manipulator.find(0, 1024, &[0, 3, 10, 32, 1]).unwrap();
loop {
manipulator.write(address, &[255, 255, 255, 255]).unwrap();
}
});
}
https://github.com/DavidBuchanan314/dlinject