0.3.2 • Published 7 years ago

hijack-process v0.3.2

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

hijack-process

npm version downloads

This package can be used to inspect and manipulate the memory of running processes. Please note that most platforms restrict virtual memory access to priviliged users.

Table of Contents

  • hijack(id) - hijack a process
  • process.read(address, size) - read a byte array
  • process.write(address, bytes) - write a byte array

Documentation

# hijack(id)

Attaches to the process with the specified id.

var hijack = require('hijack-process');

var thisProcess = hijack(process.pid);
// => { handle: 1234 }

# process.read(address, size)

Read size bytes from the specified address.

var hijack = require('hijack-process');

var thisProcess = hijack(process.pid);

var bytes = thisProcess.read(0xDEADBEEF, 8);
// => [ 0, 1, 2, 3, 4, 5, 6, 7 ]

# process.write(address, bytes)

Write an array of bytes to the specific address.

var hijack = require('hijack-process');

var thisProcess = hijack(process.pid);

var ascending = thisProcess.read(0xDEADBEEF, 8);
// => [ 0, 1, 2, 3, 4, 5, 6, 7 ]

thisProcess.write(0xDEADBEEF, [ 7, 6, 5, 4, 3, 2, 1, 0 ]);

var descending = thisProcess.read(0xDEADBEEF, 8);
// => [ 7, 6, 5, 4, 3, 2, 1, 0 ]
0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago