Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Experimental: integrated Hex-Rays Decompiler bindings that were con…
…tributed by EiNSTeiN: https://github.com/EiNSTeiN-/hexrays-python - Added '--with-hexrays' switch to the build script so it wrap Hex-Rays Decompiler API - Added one Hex-Rays decompiler sample: vds1.py
- Loading branch information
elias.bachaalany@gmail.com
committed
Jul 3, 2013
1 parent
ce06fdd
commit db58b31
Showing
13 changed files
with
3,221 additions
and
1,928 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import idaapi | ||
|
||
def main(): | ||
if not idaapi.init_hexrays_plugin(): | ||
return False | ||
|
||
print "Hex-rays version %s has been detected" % idaapi.get_hexrays_version() | ||
|
||
f = idaapi.get_func(idaapi.get_screen_ea()); | ||
if f is None: | ||
print "Please position the cursor within a function" | ||
return True | ||
|
||
cfunc = idaapi.decompile(f); | ||
if cfunc is None: | ||
print "Failed to decompile!" | ||
return True | ||
|
||
sv = cfunc.get_pseudocode(); | ||
for i in xrange(0, sv.size()): | ||
line = idaapi.tag_remove(str(sv[i])); | ||
print line | ||
|
||
return True | ||
|
||
if main(): | ||
idaapi.term_hexrays_plugin(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.