diff options
| author | serpilliere <devnull@localhost> | 2011-09-05 13:26:15 +0200 |
|---|---|---|
| committer | serpilliere <devnull@localhost> | 2011-09-05 13:26:15 +0200 |
| commit | ef7c41c81f612fb225b79cb646f1d6eb8c8b722e (patch) | |
| tree | 208b836afc3bd87c1e237f2f4534cc23f055b25a /example/disas_and_graph.py | |
| parent | 271cc69e7f8f4411b2021830efbddca305cd690f (diff) | |
| download | miasm-ef7c41c81f612fb225b79cb646f1d6eb8c8b722e.tar.gz miasm-ef7c41c81f612fb225b79cb646f1d6eb8c8b722e.zip | |
fix disasm graph tipo
Diffstat (limited to 'example/disas_and_graph.py')
| -rwxr-xr-x | example/disas_and_graph.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/disas_and_graph.py b/example/disas_and_graph.py index 1984bd49..23c92d0d 100755 --- a/example/disas_and_graph.py +++ b/example/disas_and_graph.py @@ -34,7 +34,7 @@ if data.startswith("MZ"): if len(sys.argv) <=2: ad_to_dis = e.rva2virt(e.Opthdr.AddressOfEntryPoint) else: - ad_to_dis = int(sys.argv[1], 16) + ad_to_dis = int(sys.argv[2], 16) in_str = bin_stream.bin_stream(e.virt) try: dll_dyn_funcs = get_import_address(e) @@ -47,7 +47,7 @@ elif data.startswith("\x7fELF") : if len(sys.argv) <=2: ad_to_dis = e.Ehdr.entry else: - ad_to_dis = int(sys.argv[1], 16) + ad_to_dis = int(sys.argv[2], 16) in_str = bin_stream.bin_stream(e.virt) try: dll_dyn_funcs = get_import_address_elf(e) |