about summary refs log tree commit diff stats
path: root/example/unpack_upx.py
diff options
context:
space:
mode:
authorserpilliere <devnull@localhost>2011-08-10 11:14:17 +0200
committerserpilliere <devnull@localhost>2011-08-10 11:14:17 +0200
commit6cb249e18cf968a51379b821ca803b6ef49a5965 (patch)
treed333ee376337744902a9262ab3fa37481d57336c /example/unpack_upx.py
parent2cc5ad926bec6ef0513aa969dc82439ae34388e1 (diff)
downloadmiasm-6cb249e18cf968a51379b821ca803b6ef49a5965.tar.gz
miasm-6cb249e18cf968a51379b821ca803b6ef49a5965.zip
Add dll loader using readl dll addresses
Diffstat (limited to 'example/unpack_upx.py')
-rw-r--r--example/unpack_upx.py3
1 files changed, 2 insertions, 1 deletions
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