From 6cb249e18cf968a51379b821ca803b6ef49a5965 Mon Sep 17 00:00:00 2001 From: serpilliere Date: Wed, 10 Aug 2011 11:14:17 +0200 Subject: Add dll loader using readl dll addresses --- example/unpack_upx.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'example') diff --git a/example/unpack_upx.py b/example/unpack_upx.py index f3d941b5..34a5e8ce 100644 --- a/example/unpack_upx.py +++ b/example/unpack_upx.py @@ -146,7 +146,8 @@ vm_add_memory_page(0x40000000, PAGE_READ|PAGE_WRITE, "\x00"*stack_size) vm_load_pe(e) -runtime_dll, dll_dyn_funcs = preload_lib(e) +runtime_dll = libimp(0x71111111) +dll_dyn_funcs = preload_lib(e, runtime_dll) dll_dyn_ad2name = dict([(x[1], x[0]) for x in dll_dyn_funcs.items()]) from miasm.tools import win_api -- cgit 1.4.1