Crate read_process_memory [] [src]

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 OS X. 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 = try!(pid.try_into_process_handle());
let bytes = try!(copy_address(address, size, &handle));

Traits

CopyAddress

A trait that provides a method for reading memory from another process.

TryIntoProcessHandle

Attempt to get a process handle for a running process.

Functions

copy_address

Copy length bytes of memory at addr from source.

Type Definitions

Pid

On Linux a Pid is just a libc::pid_t.

ProcessHandle

On Linux a ProcessHandle is just a libc::pid_t.