hook-inject 0.1.0

Cross-platform process injection via Frida Core.
1
2
3
4
5
6
7
8
9
10
11
12
13
#[test]
fn spawn_resume_smoke() {
    use hook_inject::{Program, spawn};

    if !cfg!(target_os = "linux") {
        eprintln!("skipping spawn smoke test (non-linux)");
        return;
    }

    let program = Program::new("/usr/bin/true");
    let suspended = spawn(program).expect("spawn suspended");
    let _child = suspended.resume().expect("resume");
}