ricardojoserf / GetModuleHandle

GetModuleHandle implementation in C# using only NtQueryInformationProcess by walking the PEB

Home Page:https://ricardojoserf.github.io/getmodulehandle/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GetModuleHandle - Custom implementation in C#

It works like the GetModuleHandle WinAPI: it takes a DLL name, walks the PEB structure and returns the DLL base address.

It only uses the NtQueryInformationProcess native API call, without using structs.

It works in both 32-bit and 64-bit processes. You can test this using the binaries in the Releases section:

img


Sources

About

GetModuleHandle implementation in C# using only NtQueryInformationProcess by walking the PEB

https://ricardojoserf.github.io/getmodulehandle/


Languages

Language:C# 100.0%