interface_extract.py为idapython脚本,需要配合使用idat使用,相当于接口,调用使用以下语句
cmd=f''' {idat64_path} -A -B -S"interface_extract.py" {file} '''
test.py是调用interface_extract.py的脚本,使用提取的时候都是用test.py来提取
执行命令
python test.py -e idat64_path file <Extract_Functions>
python test.py -h
提取结果包含c文件(extract.c)、结构体文件(Estruct.json)
提取结果保存在result文件夹下
提取c的文件格式为 提取二进制文件名+"_extract.c"
提取结构体文件格式为 提取二进制文件名+"_Estruct.json"
json包含三个信息
结构体名称:"name"
结构体大小:"size"
结构体定义:"info"
Description
Languages
Python
100%


