Crate read_process_memory
source ·Expand description
Read memory from another process’ address space.
This crate provides a trait—CopyAddress
,
and a helper function—copy_address
that
allow reading memory from another process.
Note: you may not always have permission to read memory from another
process! This may require sudo
on some systems, and may fail even with
sudo
on macOS. You are most likely to succeed if you are attempting to
read a process that you have spawned yourself.
Examples
use read_process_memory::*;
let handle: ProcessHandle = pid.try_into()?;
let bytes = copy_address(address, size, &handle)?;
Structs
- A handle to a running process. This is not a process ID on all platforms.
Traits
- A trait that provides a method for reading memory from another process.
Functions
- Copy
length
bytes of memory ataddr
fromsource
.
Type Definitions
- A process ID. On Linux a
Pid
is just alibc::pid_t
.