MacExt
Mac memory management made simple through rust
Usage
use macext::*;
fn main() {
let pid = get_pid("your_program");
let base_address = get_base_address(pid);
let offsets = vec![0x1d9ef0, 0x0, 0x418]; let mut value: u64 = 0; let final_value: u64 = 9999;
value = read(&offsets, base_address, pid); patch(&offsets, base_address, pid, final_value); }
Running
To access process memory, you must run the program as root.
sudo cargo run
Installation
Add the following to your Cargo.toml
file:
[dependencies]
macext = "0.2.0"
Or run the following command:
cargo add macext