Comments (2)
Thank you.i try to memcmp the first opcode of rtladdvectoredexceptionhandler, if it equals 0xE9,I read the origin code from disk then jmp to rtladdvectoredexceptionhandler+5 i think it would be a solution
from polyhook_2_0.
You could try doing a memcmp in a loop and comparing the bytes on disk from kernel32.dll to those loaded in memory. If that check results in a difference, then memcpy the bytes from disk into memory to overwrite any hooks other people have placed. This is the typical way to defeat inline hooks.
If that's not sufficient you could follow the hook that's already placed on rtladdvectoredexceptionhandler and hook that callback, forcing the third party hook to return early before it does whatever checks it's doing.
Whatever you choose your bypass will have to be specific to your target I'm afraid.
from polyhook_2_0.
Related Issues (20)
- delete this shit from github HOT 1
- VTableSwapHook race condition
- The lib file `asmtk.lib` not install to folder `_install/lib` HOT 7
- Syscalls when NTVirtualProtect is hooked? HOT 2
- HWBreakPointHook call original function? HOT 1
- how to hook a non static member function in the class? HOT 1
- Updating VCPKG version HOT 7
- Outdated example HOT 2
- In the unHook function, m_userTrampVar is clear, cause crash when hook again HOT 2
- `VirtualAlloc2` with `MEM_ADDRESS_REQUIREMENTS` must respect min/max application addresses HOT 3
- dll doesnt attach to process HOT 3
- PLH::findPattern fails due to issue with _alloca HOT 1
- [Question] PreHook, PostHook HOT 4
- [Question, Help Wanted, Feature Request] Hooking a class member function HOT 1
- Including polyhook makes my code crash on launch HOT 7
- Expose m_hooked boolean HOT 1
- Non DS segment relative memory operands crash reading destination HOT 1
- Disassembler may go out of bounds into unmapped region HOT 1
- Detours getting automatically removed HOT 9
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 polyhook_2_0.