For batch mode, IDA must be invoked with the following command line: ida -B input-file
the 64 bit aware version of IDA for Linux is started with the following command line:
idal64
batch mode. IDA will generate .IDB and .ASM files automatically
-B
compress database (create zipped idb)
-P+
python 获取当前 py 文件 的文件名 os.path.basename(sys.argv[0]).split(".")[0]
sys.argv[1].split('.')[0]
-S### Execute a script file when the database is opened. The script file extension is used to determine which extlang will run the script. It is possible to pass command line arguments after the script name. For example: -S"myscript.idc argument1 \"argument 2\" argument3" The passed parameters are stored in the "ARGV" global IDC variable. Use "ARGV.count" to determine the number of arguments. The first argument "ARGV[0]" contains the script name
subprocess.call([IDAQ_PATH,"-OExporterModule:" + name_one,"-S\"" + bindiff_script_path +"\"", name_one + ".idb"])
subprocess.call([IDAQ_PATH,"-B","-P+",sys.argv[1]])
differ
Comments