Crates.io | process-read-write |
lib.rs | process-read-write |
version | 0.1.3 |
source | src |
created_at | 2024-10-28 22:14:17.903245 |
updated_at | 2024-10-28 22:47:48.899397 |
description | process-read-write allow you to read and write bytes from another processes, it also enables you to monitor a specefic process using ptrace, geting a real-time list a list of all the system calls made by that process. |
homepage | |
repository | https://github.com/FatSquare/read-write-memory-rs |
max_upload_size | |
id | 1426119 |
size | 86,329 |
read-write-memory-rs is a fast memory read/write, capable of reading and writing memory to any process
it also allow process inspection. you can't attach it to a process and it will give you a real-time list of all the system calls that process made.
cargo add process-read-write
please check the examples.
// all examples can be found at https://github.com/FatSquare/read-write-memory-rs/tree/main/examples
use process_read_write;
fn main(){
let pid:i32 = 1234; // id of app
let addr:usize = 0x70eb856006c0; // address of value to read
//let pid = get_proc_by_name("SomeRandomGame");
let pid = process_read_write::get_proc_by_id(pid);
let health = process_read_write::read_addr(pid,addr,4);
println!("READING MEMORY: {:?}",health);
}
cargo install process-read-write
pid
is a number example 1234
addr
is a number in format of hex example 0x1234567
sudo cargo run read <pid> <addr>
sudo cargo run write <pid> <addr>
sudo ~/.cargo/bin/process-read-write watch <pid>