Git Product home page Git Product logo

Comments (3)

alextwothousand avatar alextwothousand commented on May 22, 2024 1

Never mind, was able to figure it out!

from libmem.

rdbo avatar rdbo commented on May 22, 2024

These are all already possible on version 3.3.3
They will also be possible on V4.0 once I finish it.
The respective API calls are gonna be:
LM_ProtectMemory(Ex)
LM_SetMemory(Ex)
LM_DetourCode(Ex)

LM_ProtectMemory allows you to protect memory and save the old protection so you can restore it later
LM_SetMemory sets a memory region to a single byte (in the case of x86 NOP'ing, you have to set to 0x90)
LM_DetourCode allows you to place a hook somewhere with multiple methods, such as JMP, CALL, RET

The version 3 API calls are:
mem_(in/ex)_protect
mem_(in/ex)_set
mem_(in/ex)_detour

By the way, I appreciate the help, you are the first one to offer. Just gotta finish porting V3 to V4, adding support to ARM/ARM64, documentation, etc. I think I might finish V4 soon, so stayed tuned

from libmem.

alextwothousand avatar alextwothousand commented on May 22, 2024

Thank you! and not a worry at all.

Could you provide me with an example for mem_in_detour? I'm not so sure if its able to install a RETN patch - the confusing part is what I should use as the destination, haha

from libmem.

Related Issues (20)

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.