diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2017-07-05 13:42:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-05 13:42:38 +0200 |
| commit | e40e9a70b6693a0de4bffa7d83ae4a7adb410c0a (patch) | |
| tree | 1049b3ec144bc7aaa1b7d439b61f1f25e6954d20 /example/ida/symbol_exec.py | |
| parent | c7718a8d0c1263771ca8e0a31b3717c7063d50e4 (diff) | |
| parent | 81ba101de2fd128d4fbc99efdac02600d8fcb06f (diff) | |
| download | miasm-e40e9a70b6693a0de4bffa7d83ae4a7adb410c0a.tar.gz miasm-e40e9a70b6693a0de4bffa7d83ae4a7adb410c0a.zip | |
Merge pull request #576 from commial/feature/ida-menu
Feature/ida menu
Diffstat (limited to 'example/ida/symbol_exec.py')
| -rw-r--r-- | example/ida/symbol_exec.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/example/ida/symbol_exec.py b/example/ida/symbol_exec.py index 70e1cfc1..7599dde7 100644 --- a/example/ida/symbol_exec.py +++ b/example/ida/symbol_exec.py @@ -84,7 +84,7 @@ def symbolic_exec(): machine = guess_machine() mdis = machine.dis_engine(bs) - start, end = SelStart(), SelEnd() + start, end = idc.SelStart(), idc.SelEnd() mdis.dont_dis = [end] blocks = mdis.dis_multibloc(start) @@ -115,10 +115,11 @@ def symbolic_exec(): view.Show() -idaapi.CompileLine('static key_F3() { RunPythonStatement("symbolic_exec()"); }') -idc.AddHotkey("F3", "key_F3") +if __name__ == "__main__": + idaapi.CompileLine('static key_F3() { RunPythonStatement("symbolic_exec()"); }') + idc.AddHotkey("F3", "key_F3") -print "=" * 50 -print """Available commands: - symbolic_exec() - F3: Symbolic execution of current selection -""" + print "=" * 50 + print """Available commands: + symbolic_exec() - F3: Symbolic execution of current selection + """ |