about summary refs log tree commit diff stats
path: root/example/ida/symbol_exec.py
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2018-06-19 17:53:45 +0200
committerGitHub <noreply@github.com>2018-06-19 17:53:45 +0200
commit0adddb12a7410c4bbdd6ee79252e9bf05ca22818 (patch)
tree92facadca71fc07d7760c60d2ca877774c73579b /example/ida/symbol_exec.py
parent8f5ca332780cf9e08761060e9903bc085dbc8430 (diff)
parentf1b32ba2b8db22a5f92a2734af55e9a5dba2271e (diff)
downloadmiasm-0adddb12a7410c4bbdd6ee79252e9bf05ca22818.tar.gz
miasm-0adddb12a7410c4bbdd6ee79252e9bf05ca22818.zip
Merge pull request #770 from serpilliere/ida_guess_machine_addr
Example/ida: use addr to guess arch
Diffstat (limited to 'example/ida/symbol_exec.py')
-rw-r--r--example/ida/symbol_exec.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/example/ida/symbol_exec.py b/example/ida/symbol_exec.py
index 49c6fdb6..0d8c63c2 100644
--- a/example/ida/symbol_exec.py
+++ b/example/ida/symbol_exec.py
@@ -128,11 +128,12 @@ def symbolic_exec():
 
     from utils import guess_machine
 
+    start, end = idc.SelStart(), idc.SelEnd()
+
     bs = bin_stream_ida()
-    machine = guess_machine()
+    machine = guess_machine(addr=start)
 
     mdis = machine.dis_engine(bs)
-    start, end = idc.SelStart(), idc.SelEnd()
 
     if start == idc.BADADDR and end == idc.BADADDR:
         start = idc.ScreenEA()