EDRs | repo contains information about EDRs that can be
kandi X-RAY | EDRs Summary
kandi X-RAY | EDRs Summary
This repo contains information about EDRs that can be useful during red team exercise.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of EDRs
EDRs Key Features
EDRs Examples and Code Snippets
Community Discussions
Trending Discussions on EDRs
QUESTION
I'm Trying to understand the PE Format & the source code of "hook_finder" in here "https://github.com/Mr-Un1k0d3r/EDRs/blob/main/hook_finder64.c"
in this snippet I now it's trying to calculate Export_Table offset:
...ANSWER
Answered 2022-Jan-07 at 10:54The function DumpListOfExport
assumes that NtHeaders
start at the offset 0x3c from the base but, this is not always the case depending on the size of the DOS stub. Probably, this code makes that assumption for ntdll.dll
.
And in the function GetBytesByName
, if first byte of the procedure starts with a JMP
(in that case, it is near, relative jmp whose opcode starts with "E9") instruction and the procedure name is not in the false positives list, then the function makes decision that the function is hooked.
Let be the value of the 4-bytes pointed to by opcode
0xca0e4be9, left shifting it by 24 will result in 0xe9000000, and then right shifting by 24 the result will be 0x000000e9 which is the value of the first byte at ptr
.
That procedure can be simplified as follows.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install EDRs
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page