read-write-memory-rs
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.
Adding the library
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;
Install the example binary
cargo install process-read-write
> NOTE
pid
is a number example 1234
addr
is a number in format of hex example 0x1234567
Read memory
sudo cargo run read <pid> <addr>
Write memory
sudo cargo run write <pid> <addr>
Watch process
sudo ~/.cargo/bin/process-read-write watch <pid>