def __init__(self):
self.is_windows = sys.platform.startswith('win')
self.is_ida64 = GetIdbPath().endswith(".i64") # hackhackhack - check if we're ida64 or ida32
logger.debug("[+] is_windows: %r" % self.is_windows)
logger.debug("[+] is_ida64: %r" % self.is_ida64)
self.my_path = os.path.abspath(__file__)
self.temp_path = None
self._init_target()
# settings (form)
# todo: load from configfile if available.
self.output_path = None
self.chk_annotate_stackvar_size = False
self.chk_annotate_xrefs = False
self.chk_decompile_imports = False
self.chk_decompile_imports_recursive = False
self.chk_decompile_alternative = False
# self.ida_home = idaapi.idadir(".")
self.ida_home = GetIdaDirectory()
# wait for ida analysis to finish
self.wait_for_analysis_to_finish()
if not idaapi.init_hexrays_plugin():
logger.warning("forcing hexrays to load...")
self.load_plugin_decompiler()
if not idaapi.init_hexrays_plugin():
raise Exception("hexrays decompiler is not available :(")
ida_batch_decompile.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录