Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/blacha/memoryscanner
- Owner: blacha
- License: mit
- Created: 2022-05-09T09:19:14.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T18:12:20.000Z (almost 2 years ago)
- Last Synced: 2025-01-05T13:03:10.617Z (10 days ago)
- Language: TypeScript
- Size: 261 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Security: SECURITY.md
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' },
])
```