#process #memory #read #julia #extern

bin+lib read-process-memory

Read memory from another process

3 releases

Uses old Rust 2015

0.1.2 Dec 21, 2017
0.1.1 Feb 17, 2017
0.1.0 Oct 12, 2016
Download history 34/week @ 2021-02-26 29/week @ 2021-03-05 32/week @ 2021-03-12 32/week @ 2021-03-19 30/week @ 2021-03-26 22/week @ 2021-04-02 29/week @ 2021-04-09 37/week @ 2021-04-16 33/week @ 2021-04-23 28/week @ 2021-04-30 19/week @ 2021-05-07 21/week @ 2021-05-14 31/week @ 2021-05-21 29/week @ 2021-05-28 34/week @ 2021-06-04 35/week @ 2021-06-11

133 downloads per month
Used in rbspy-testdata

MIT license

19KB
303 lines

Build Status Build status crates.io

A crate to read memory from another process. Code originally taken from Julia Evans' excellent ruby-stacktrace project.

Example

extern crate read_process_memory;

use std::io;
use read_process_memory::{Pid, TryIntoProcessHandle, CopyAddress, copy_address};

// Try to read `size` bytes at `address` from the process `pid`.
fn read_some_memory(pid: Pid, address: usize, size: usize) -> io::Result<()> {
    let handle = pid.try_into_process_handle()?;
    let _bytes = copy_address(address, size, &handle)?;
    println!("Read {} bytes", size);
    Ok(())
}

fn main() {
    read_some_memory(123 as Pid, 0x100000, 100).unwrap();
}

Documentation

https://docs.rs/read-process-memory

Dependencies

~190KB