diff options
| author | Camille Mougey <commial@gmail.com> | 2018-06-19 17:53:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-19 17:53:45 +0200 |
| commit | 0adddb12a7410c4bbdd6ee79252e9bf05ca22818 (patch) | |
| tree | 92facadca71fc07d7760c60d2ca877774c73579b /example/ida/symbol_exec.py | |
| parent | 8f5ca332780cf9e08761060e9903bc085dbc8430 (diff) | |
| parent | f1b32ba2b8db22a5f92a2734af55e9a5dba2271e (diff) | |
| download | miasm-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.py | 5 |
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() |