about summary refs log tree commit diff stats
path: root/example/asm_x86.py
diff options
context:
space:
mode:
authorserpilliere <devnull@localhost>2012-03-20 10:42:05 +0100
committerserpilliere <devnull@localhost>2012-03-20 10:42:05 +0100
commitb410b90f5a6192da950746357ac7693780fe73cd (patch)
tree4ecdc93fe84389cc58fd9e0da5ca6a8488a31eb3 /example/asm_x86.py
parent7601496221d54e2c67d3138675ffa7dab91eff36 (diff)
downloadmiasm-b410b90f5a6192da950746357ac7693780fe73cd.tar.gz
miasm-b410b90f5a6192da950746357ac7693780fe73cd.zip
example: add asm box
Diffstat (limited to 'example/asm_x86.py')
-rwxr-xr-xexample/asm_x86.py7
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():