SkillAgentSearch skills...

GetModuleHandle

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

Install / Use

/learn @ricardojoserf/GetModuleHandle
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

View on GitHub
GitHub Stars7
CategoryDevelopment
Updated1y ago
Forks1

Languages

C#

Security Score

60/100

Audited on Mar 13, 2025

No findings