MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / get_func_addr

Function get_func_addr

windows/utils/winutils.py:21–28  ·  view source on GitHub ↗
(dll_name, func_name)

Source from the content-addressed store, hash-verified

19# Function resolution !
20# should be in winproxy ?
21def get_func_addr(dll_name, func_name):
22 # Load the DLL
23 ctypes.WinDLL(dll_name)
24 modules = windows.current_process.peb.modules
25 if not dll_name.lower().endswith(".dll"):
26 dll_name += ".dll"
27 mod = [x for x in modules if x.name == dll_name][0]
28 return mod.pe.exports[func_name]
29
30
31def get_remote_func_addr(target, dll_name, func_name):

Callers 1

is_wow_64Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected