0.0.5 • Published 2 years ago
memoryscanner v0.0.5
memoryscanner
WIP this is still a work in progress APIs may not exist and not work correctly.
Multithreaded process memory scanner
import { findProcess } from 'memoryscanner';
const proc = findProcess('process_name');
/* Scan a process with multiple threads looking for a pattern of bytes*/
const ret = await proc.scan('01 02 ?? f3 a4');
/**
* List of offsets for where the pattern occurs
* [
* 0x4bffa03d
* 0x5f0763fa
* 0x1030fa61
* ]
*/
Advanced usage, scan with byte criteria
const ret = await proc.scan('01 02 ?? f3 a4 ?? ?? ?? ?? ', [
// byte 2 '??' is a u8 between 0x01 and 0x20
{ offset: 0x02, min: 1, max: 32, format: 'u8' },
// bytes 5-8 is a little endian 32bit number between 1000, and 5,000,000
{ offset: 0x05, min: 1_000, max: 5_000_000, format: 'lu32' },
])
0.0.5
2 years ago