Skip to content
Snippets Groups Projects
Commit 505e2772 authored by clc5q's avatar clc5q
Browse files

Add script to suppress ASM generation to save time.

Former-commit-id: d7bdf90f5f65fe9eba085b0a2cedaff526be1bd0
parent c58908ab
No related branches found
No related tags found
No related merge requests found
...@@ -55,6 +55,7 @@ scripts/Makefile.in -text ...@@ -55,6 +55,7 @@ scripts/Makefile.in -text
scripts/SMP.idc -text scripts/SMP.idc -text
scripts/SMP6.idc -text scripts/SMP6.idc -text
scripts/SMP7.idc -text scripts/SMP7.idc -text
scripts/SMP7noasm.idc -text
scripts/plugin.script -text scripts/plugin.script -text
scripts/rebuild_for_multiple_idas -text scripts/rebuild_for_multiple_idas -text
src/Makefile.in -text src/Makefile.in -text
......
//
// Sample IDC program to automate IDA Pro.
//
// IDA Pro can be run from the command line in the
// batch (non-interactive) mode.
//
// If IDA is started with
//
// idag -A -Sanalysis.idc file
//
// then this IDC file will be executed. It performs the following:
//
// - the code segment is analyzed
// - the output file is created
// - IDA exits to OS
//
// Feel free to modify this file as you wish
// (or write your own script/plugin to automate IDA)
//
// Since the script calls the Exit() function at the end,
// it can be used in the batch files (use text mode idaw.exe)
//
// NB: "idag -B file" is equivalent to the command line above
//
#include <idc.idc>
static main()
{
auto file;
// turn on coagulation of data in the final pass of analysis
// The #if below is not supported. Left in as documentation.
// #if __IDA_SDK_VERSION__ < 700
// SetShortPrm(INF_AF2, GetShortPrm(INF_AF2) | AF2_DODATA);
//#else
set_inf_attr(INF_AF, get_inf_attr(INF_AF) | AF_DODATA | AF_FINAL);
//#endif
Batch(0);
Wait();
file = GetInputFile();
Message("INFO: Input file name %s \n", file);
auto DebugFile = "stubtest.idaoutput";
auto fd = fopen(DebugFile, "w");
fprintf(fd, "Input file name: %s \n", file);
fclose(fd);
// file = substr(file,0,strstr(file,".")) + ".asm";
// WriteTxt(file, 0, BADADDR); // create the assembler file
// if (!RunPlugin("SMPStaticAnalyzer", 1))
// Message("Could not load SMPStaticAnalyzer plugin.\n");
Exit(0); // exit to OS, error code 0 - success
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment