diff options
| author | serpilliere <devnull@localhost> | 2012-03-20 10:42:05 +0100 |
|---|---|---|
| committer | serpilliere <devnull@localhost> | 2012-03-20 10:42:05 +0100 |
| commit | b410b90f5a6192da950746357ac7693780fe73cd (patch) | |
| tree | 4ecdc93fe84389cc58fd9e0da5ca6a8488a31eb3 /example/asm_x86.py | |
| parent | 7601496221d54e2c67d3138675ffa7dab91eff36 (diff) | |
| download | miasm-b410b90f5a6192da950746357ac7693780fe73cd.tar.gz miasm-b410b90f5a6192da950746357ac7693780fe73cd.zip | |
example: add asm box
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(): |