Newer
Older
import idaapi
import idc
import os
import sys
outputfile = idc.ARGV[1]
# Load the right plugin
is_ida64 = GetIdbPath().endswith(".i64") # hackhackhack - check if we're ida64 or ida32
print(is_ida64)
if is_ida64:
idaapi.load_plugin('hexx64')
else:
idaapi.load_plugin('hexarm')
idaapi.decompile_many(outputfile, None, 0)
idc.Exit(0)