osxmem
Read and write process memory on macOS using the Mach kernel APIs.
Requirements
- macOS only
- Must be ran with root
Usage
use Process;
use ;
// attach by name or PID
let process = open_by_name.unwrap;
// or: Process::open(1234).unwrap();
let address: usize = 0x7060E5800;
let health: f32 = .unwrap;
println!;
.unwrap;
read_mem and write_mem are generic over any Copy type, so u8, i32, f64, structs, etc. all work the same way.
License
MIT