Comments (3)
Never mind, was able to figure it out!
from libmem.
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.
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)
- Fix GitHub Action getting stuck when assertion fails in Unit Test (Windows)
- Add table in README containing supported platforms, languages, etc
- Remove injector library
- Don't stop unit tests on first failure
- Consider using WMI to get the boot time on Windows
- Consider better typedef for lm_bool_t HOT 1
- Check if libkvm is actually necessary on FreeBSD HOT 1
- Test if `owner_pid` from `lm_thread_t` matches the actual process ID in Unit tests HOT 1
- Fix crash in `winutils.c` when attempting to convert strings with `NULL`
- Test `LM_EnumSymbols` for external processes
- Consider adding function to retrieve page size (and rewrite code that retrieves page size)
- Clean up files
- Do better cross compiling (remove `LIBMEM_ARCH` option)
- Remove mounting procfs in FreeBSD on README HOT 1
- Include Capstone's detail in `lm_inst_t` HOT 4
- Skip undefined symbols on LM_EnumSymbols HOT 1
- Error build on ubuntu 22 aarch64
- Add methods for comparing memory, similar to memcmp
- Add function for getting page size
- Make `LM_DeepPointer(Ex)` 1:1 to Cheat Engine's pointer maps/pointer scans
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libmem.