Crates.io | memscan |
lib.rs | memscan |
version | 0.1.0 |
source | src |
created_at | 2021-09-15 04:09:19.888007 |
updated_at | 2021-09-15 04:09:19.888007 |
description | A pattern-based memory scanner |
homepage | |
repository | https://github.com/MrElectrify/memscan |
max_upload_size | |
id | 451666 |
size | 23,193 |
A simple pattern-based memory scanning tool. Provides support for both slices as patterns with 0x00 as wildcards, and IDA-format (? as wildcard)
Pattern
with Pattern::from_str("aa bb ? dd ee").expect("Index of parse falure")
or Pattern::from(&[0xaa, 0xbb, 0x00, 0xdd, 0xee])
find_pattern(slice, &pattern)
, returning each matching slicefn 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);
}