Code Monkey home page Code Monkey logo

memcury's Introduction

memcury.h

A simple single header solution for memory manipulation in C++.

Usage

Just #include "memcury.h" in your code!.

Check example for code examples.

The current supported platform is Windows only, no plans for supporting more platforms, and c++23 or above.

This project was intented to be used internaly (from a dynamic link library).

The pitch

  • Containers:

    • PE::Address: A pointer container.
    • PE::Section: Portable executable section container for internal usage.
  • Modules:

    • Scanner:

      • Constructors:

        • Default: Takes a pointer to start the scanning from.
        • FindPattern: Finds a pattern in memory.
        • FindStringRef: Finds a string reference in memory, supports all types of strings.
      • Functions:

        • SetTargetModule: Sets the target module for the scanner.
        • ScanFor: Scans for a byte(s) near the current address.
        • FindFunctionBoundary: Finds the boundary of a function near the current address.
        • RelativeOffset: Gets the relative offset of the current address.
        • AbsoluteOffset: Gets the absolute offset of the current address.
        • GetAs: Gets the current address as a type.
        • Jump: Follow any jump instruction.
        • Get: Gets the current address as an int64.
    • TrampolineHook:

      • Constructors:
        • Default: Takes a pointer pointer to the target function and a pointer to the hook function.
      • Functions:
        • Commit: Commits the hook.
        • Revert: Reverts the hook.
        • Toggle: Toggles the hook on\off.
    • VEHHook:

      • Functions:
        • Init: Initializes the VEH Hook system.
        • AddHook: Adds a hook to the VEH Hook system.
        • RemoveHook: Removes a hook from the VEH Hook system.

memcury's People

Contributors

kem0x avatar kyiro avatar matty45 avatar ramok0 avatar thenaeem avatar

Stargazers

Michael Eaton avatar

Forkers

sariohara

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.