diff options
Diffstat (limited to 'example/asm_x86.py')
| -rwxr-xr-x | example/asm_x86.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/example/asm_x86.py b/example/asm_x86.py index 79b61886..bbccf25e 100755 --- a/example/asm_x86.py +++ b/example/asm_x86.py @@ -10,7 +10,9 @@ import struct my_mn = x86_mn - +""" +asm a linux shell code in a windows PE +""" my_mn = x86_mn @@ -67,7 +69,8 @@ open("graph.txt" , "w").write(g) print "symbols" print symbol_pool #dont erase from start to shell code padading -resolved_b, patches = asmbloc.asm_resolve_final(my_mn, all_bloc[0], symbol_pool) +resolved_b, patches = asmbloc.asm_resolve_final(my_mn, all_bloc[0], symbol_pool, + constrain_pos=True) print patches for offset, raw in patches.items(): |