about summary refs log tree commit diff stats
path: root/example/asm
diff options
context:
space:
mode:
Diffstat (limited to 'example/asm')
-rw-r--r--example/asm/shellcode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/asm/shellcode.py b/example/asm/shellcode.py
index 11cf9a4d..f31c88c2 100644
--- a/example/asm/shellcode.py
+++ b/example/asm/shellcode.py
@@ -71,7 +71,7 @@ symbol_pool.set_offset(symbol_pool.getby_name("main"), addr_main)
 
 if args.PE:
     symbol_pool.set_offset(symbol_pool.getby_name_create("MessageBoxA"),
-                           pe.DirImport.get_funcvirt('MessageBoxA'))
+                           pe.DirImport.get_funcvirt('USER32.dll', 'MessageBoxA'))
 
 # Print and graph firsts blocs before patching it
 for bloc in blocs: