#process #memory #read #julia #extern

bin+lib benfred-read-process-memory

Read memory from another process

3 unstable releases

Uses old Rust 2015

0.2.1 Mar 22, 2021
0.2.0 Aug 10, 2019
0.1.4 Jul 16, 2019
0.1.3 Aug 25, 2018
Download history 532/week @ 2021-01-16 99/week @ 2021-01-23 126/week @ 2021-01-30 698/week @ 2021-02-06 470/week @ 2021-02-13 413/week @ 2021-02-20 314/week @ 2021-02-27 581/week @ 2021-03-06 826/week @ 2021-03-13 1254/week @ 2021-03-20 2244/week @ 2021-03-27 9764/week @ 2021-04-03 4668/week @ 2021-04-10 4105/week @ 2021-04-17 3910/week @ 2021-04-24 2453/week @ 2021-05-01

1,684 downloads per month
Used in 5 crates (via remoteprocess)

MIT license

21KB
375 lines

Build Status Build status [Build status] crates.io Coverage Status

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

Example

extern crate benfred_read_process_memory as read_process_memory;

use std::convert::TryInto;
use std::io;
use read_process_memory::{Pid, ProcessHandle, 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: ProcessHandle = pid.try_into()?;
    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

~150KB