Skip to content
ida-generate-source.py 345 B
Newer Older
Andrea Gussoni's avatar
Andrea Gussoni committed
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)