Skip to content

Package for node that reads bytes from memory for a given process

License

Notifications You must be signed in to change notification settings

joffe97/node_memory_reader

Repository files navigation

Node memory reader

This is a package for node that reads data from memory from a given process.

Methods

readMemory

readMemory(pid: number, address: number, length: number) -> number[]
Arguments
  • pid: Process id of the process that are being read
  • address: Relative memory address of the first byte
  • length: Number of bytes
Return

The returned value is an array of length amount of bytes; starting from the relative address in the process with process id pid.

Example
import * as nodeMemoryReader from "node_memory_reader";
let memory: number[] = nodeMemoryReader.readMemory(41462, 0x4052a0, 20);

readMemoryWithDataSize

readMemoryWithDataSize(pid: number, address: number, length: number, dataTypeSize: DataTypeSize) -> number[]
Arguments
  • pid: Process id of the process that are being read
  • address: Relative memory address of the first byte
  • length: Number of bytes
  • dataTypeSize: Size of the returned data size
Return

The returned value is an array of length amount of values with the size of dataTypeSize; starting from the relative address in the process with process id pid.

Example
import * as nodeMemoryReader from "node_memory_reader";
let memory: number[] = nodeMemoryReader.readMemoryWithDataSize(41462, 0x4052a0, 1, nodeMemoryReader.B32);

Note

This package is compatible with Linux and Windows.

MacOS support is not considered at the moment.

About

Package for node that reads bytes from memory for a given process

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages