(dll_name, func_name)
| 19 | # Function resolution ! |
| 20 | # should be in winproxy ? |
| 21 | def 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 | |
| 31 | def get_remote_func_addr(target, dll_name, func_name): |