frida-rs 0.1.0

Write Frida scripts in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::plumbing::cpu::CpuContext;
use wasm_bindgen::prelude::*;

#[wasm_bindgen]
extern "C" {
    #[wasm_bindgen(js_name = ThreadDetails)]
    pub type ThreadDetails;

    #[wasm_bindgen(method, getter)]
    pub fn id(this: &ThreadDetails) -> u32;

    #[wasm_bindgen(method, getter)]
    pub fn state(this: &ThreadDetails) -> String;

    #[wasm_bindgen(method, getter)]
    pub fn context(this: &ThreadDetails) -> CpuContext;
}