memscan

Crates.iomemscan
lib.rsmemscan
version0.1.0
sourcesrc
created_at2021-09-15 04:09:19.888007
updated_at2021-09-15 04:09:19.888007
descriptionA pattern-based memory scanner
homepage
repositoryhttps://github.com/MrElectrify/memscan
max_upload_size
id451666
size23,193
(MrElectrify)

documentation

https://docs.rs/crate/memscan

README

memscan

A simple pattern-based memory scanning tool. Provides support for both slices as patterns with 0x00 as wildcards, and IDA-format (? as wildcard)

Usage

  • Create a Pattern with Pattern::from_str("aa bb ? dd ee").expect("Index of parse falure") or Pattern::from(&[0xaa, 0xbb, 0x00, 0xdd, 0xee])
  • Check if that pattern matches a slice with find_pattern(slice, &pattern), returning each matching slice

Example

fn multi_match() {
    let buf = &[1, 2, 3, 4, 3, 2, 1, 2, 3];
    let pattern = Pattern::from(&[1, 2, 0x00][..]);
    assert_eq!(find_pattern(buf, pattern).len(), 2);
}
Commit count: 7

cargo fmt