GithubHelp home page GithubHelp logo

marioparaschiv / nullbyte Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 0.0 680 KB

Write empty bytes to provided memory patterns by memory patching.

C++ 100.00%
byte bytes empty js memory null patch patching ts typings

nullbyte's Introduction

nullbyte

Write empty bytes to provided memory patterns by memory patching.

Usage

import { patch } from 'nullbyte';

/**
 * @param {Number} pid - Process ID to attach to
 * @param {string[]} patterns - Array of memory patterns to null out
 * @param {boolean=false} matchOne - Whether to consider the patch successful if atleast one of the patterns match
 */

// Requires both patterns to be patched to consider the patch successful
patch(process.pid, ['D3 FT 55 ? 29', 'pattern2']);

// Requires only one of the patterns to be patched to consider the patch successful
patch(process.pid, ['D3 FT 55 ? 29', 'pattern2'], true);

Installation

Any node package manager works.

  • npm i nullbyte
  • pnpm i nullbyte
  • yarn add nullbyte

Platform specific:

  • npm i nullbyte@win32
  • npm i nullbyte@linux

How it works

You may see what nullbyte is up to behind the scenes. When patch is called, nullbyte will attempt to null out the bytes of the patterns you provided (will freeze the javascript thread, so nothing else will work until its done, this is more useful for patching out bytes before an app launches).

How will I know if it was successful

If all of the conditions listed below are met, nullbyte's patch will return a boolean indicating whether or not the patch was successful.

Successful conditions

nullbyte is very strict on what "success" means. nullbyte will need the following conditions to be met for the patch to be successful:

  • Process ID is a number
  • Patterns is an array
  • Process ID is a valid running process

If matchOne is not specified or is false, the following is also required:

  • All patterns are successfuly found in memory (if one doesn't get found, nullbyte will deem the patch unsuccessful, even if one pattern was patched)

nullbyte's People

Contributors

marioparaschiv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.