pub fn write_addr(pid: Pid, addr: usize, data: &[u8])Expand description
write_addr is used to write a buffer of n bytes into the memory of process pid at addr
§Backend
this function invokes the process_vm_writev syscall, enabling direct memory writing into a specified address in the target process.
§Examples
use process_read_write;
fn main(){
let pid:i32 = 1234; // id of app
let addr:usize = 0x70eb856006c0; // address of value to change
let new_value = [0xff,0xff,0xff,0x7f]; // the value the insert into the new address
//let pid = process_read_write::get_proc_by_name("SomeRandomGame");
let pid = process_read_write::get_proc_by_id(pid);
process_read_write::write_addr(pid,addr,&new_value);
}