Crate injex[][src]

This library helps injecting dynamic libraries into processes and manipulating the memory of these processes. Currently only Linux is supported but support for other platforms (freebsd, windows) is coming.

use injex::prelude::*;


let anon = AnonManipulator::new("game_name")?;
inject(&anon, anon.pid(), "path/to/dynamic_library")?;
// 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();
       }
   });
}

Modules

error
external
injection
internal
memory
prelude
process