Skip to content

GetProcAddress implementation in C# walking the PEB using only ReadProcessMemory

Notifications You must be signed in to change notification settings

ricardojoserf/GetProcAddress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

GetProcAddress - C# implementation

It works like the GetProcAddress WinAPI: it takes a DLL handle and a function name or ordinal, walks the PEB structure and returns the function address.

It only uses the NtReadVirtualMemory 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