Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/blacha/memoryscanner

Multi threaded memory scanner for nodejs
https://github.com/blacha/memoryscanner

Last synced: about 18 hours ago
JSON representation

Multi threaded memory scanner for nodejs

Awesome Lists containing this project

README

        

# memoryscanner

Multithreaded process memory scanner

```typescript
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

```typescript
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' },
])
```