Skip to content

Replacing GetModuleHandle & GetProcAddress as a God

License

Notifications You must be signed in to change notification settings

SolomonSklash/ApiHashing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ApiHashing: just a stable replacement, that is fast and efficient.

  • no imported functions
  • easy to use
  • compile time seed / string hashes (different hashes everybuild with no need to change anything)
  • saves the module handle by hash, for the next possible api, so that it wont search for the module in peb, but by hash in our map
  • handles forwarded functions

Example:

PVOID pVirtualAlloc = FastGetProcAddress(HASH(kernel32.dll), HASH(VirtualAlloc));
// kernel32.dll handle is now saved, so the next call wont go through the peb one more time ...
PVOID pVirtualProtect = FastGetProcAddress(HASH(kernel32.dll), HASH(VirtualProtect));

Thanks for:

About

Replacing GetModuleHandle & GetProcAddress as a God

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published