![]() |
IDA Domain
|
Class to build and manage IDA command line options. Provides a fluent interface to set options and generate command lines for IDA Pro/IDA Free based on the available command line switches. More...
#include <ida_command_builder.hpp>
Public Member Functions | |
IdaCommandBuilder () | |
Initialize IDA command line options. More... | |
IdaCommandBuilder & | use_text_mode () |
Use idat (text interface) instead of ida. More... | |
IdaCommandBuilder & | auto_analysis (bool enabled=true) |
Enable or disable auto analysis. More... | |
IdaCommandBuilder & | autonomous (bool enabled=true) |
Enable or disable autonomous mode (no dialog boxes). More... | |
IdaCommandBuilder & | set_loading_address (unsigned int address) |
Set loading address in paragraphs (hexadecimal). More... | |
IdaCommandBuilder & | new_database (bool enabled=true) |
Disassemble a new file (delete old database). More... | |
IdaCommandBuilder & | set_compiler (const std::string &name, const std::string &abi="") |
Set compiler in format name:abi. More... | |
IdaCommandBuilder & | add_first_pass_directive (const std::string &directive) |
Add a configuration directive processed at first pass. More... | |
IdaCommandBuilder & | add_second_pass_directive (const std::string &directive) |
Add a configuration directive processed at second pass. More... | |
IdaCommandBuilder & | disable_fpp_instructions (bool disabled=true) |
Disable FPP instructions (IBM PC only). More... | |
IdaCommandBuilder & | set_entry_point (unsigned int address) |
Set program entry point (hex). More... | |
IdaCommandBuilder & | set_jit_debugger (bool enabled=true) |
Set IDA as just-in-time debugger. More... | |
IdaCommandBuilder & | set_log_file (const std::string &filename) |
Set the name of the log file. More... | |
IdaCommandBuilder & | disable_mouse (bool disabled=true) |
Disable mouse (text mode only). More... | |
IdaCommandBuilder & | set_plugin_options (const std::string &options) |
Set options to pass to plugins. More... | |
IdaCommandBuilder & | set_output_database (const std::string &path) |
Specify the output database (implies -c). More... | |
IdaCommandBuilder & | set_processor (const std::string &processor_type) |
Set processor type. More... | |
IdaCommandBuilder & | compress_database () |
Compress database (create zipped idb). More... | |
IdaCommandBuilder & | pack_database () |
Pack database (create unzipped idb). More... | |
IdaCommandBuilder & | no_pack_database () |
Do not pack database (not recommended). More... | |
IdaCommandBuilder & | run_debugger (const std::string &options="") |
Immediately run the built-in debugger with optional parameters. More... | |
IdaCommandBuilder & | load_resources (bool enabled=true) |
Load MS Windows exe file resources. More... | |
IdaCommandBuilder & | run_script (const std::string &script_file, const std::vector< std::string > &args={}) |
Execute a script file when the database is opened. More... | |
IdaCommandBuilder & | set_file_type (const std::string &file_type, const std::string &member="") |
Interpret the input file as the specified file type. More... | |
IdaCommandBuilder & | empty_database (bool enabled=true) |
Create an empty database. More... | |
IdaCommandBuilder & | set_windows_directory (const std::string &directory) |
Specify MS Windows directory. More... | |
IdaCommandBuilder & | no_segmentation (bool enabled=true) |
Do not create segmentation (used with Dump database command). More... | |
IdaCommandBuilder & | set_debug_flags (unsigned int flags) |
Set debug flags using a raw integer value. More... | |
IdaCommandBuilder & | set_debug_flags (const std::vector< std::string > &flag_names) |
Set debug flags using a list of flag names. More... | |
std::string | build_args () const |
Build the command line arguments based on the set options. More... | |
bool | get_auto_analysis () const |
Get auto-analysis option status. More... | |
Class to build and manage IDA command line options. Provides a fluent interface to set options and generate command lines for IDA Pro/IDA Free based on the available command line switches.
IdaCommandBuilder::IdaCommandBuilder | ( | ) |
Initialize IDA command line options.
IdaCommandBuilder & IdaCommandBuilder::add_first_pass_directive | ( | const std::string & | directive | ) |
Add a configuration directive processed at first pass.
directive | Directive string (e.g., "VPAGESIZE=8192") |
IdaCommandBuilder & IdaCommandBuilder::add_second_pass_directive | ( | const std::string & | directive | ) |
Add a configuration directive processed at second pass.
directive | Directive string |
IdaCommandBuilder & IdaCommandBuilder::auto_analysis | ( | bool | enabled = true | ) |
Enable or disable auto analysis.
enabled | True to enable, false to disable |
IdaCommandBuilder & IdaCommandBuilder::autonomous | ( | bool | enabled = true | ) |
Enable or disable autonomous mode (no dialog boxes).
enabled | True to enable, false to disable |
std::string IdaCommandBuilder::build_args | ( | ) | const |
Build the command line arguments based on the set options.
IdaCommandBuilder & IdaCommandBuilder::compress_database | ( | ) |
Compress database (create zipped idb).
IdaCommandBuilder & IdaCommandBuilder::disable_fpp_instructions | ( | bool | disabled = true | ) |
Disable FPP instructions (IBM PC only).
disabled | True to disable, false to enable |
IdaCommandBuilder & IdaCommandBuilder::disable_mouse | ( | bool | disabled = true | ) |
Disable mouse (text mode only).
disabled | True to disable, false to enable |
IdaCommandBuilder & IdaCommandBuilder::empty_database | ( | bool | enabled = true | ) |
Create an empty database.
enabled | True to enable, false to disable |
|
inline |
Get auto-analysis option status.
IdaCommandBuilder & IdaCommandBuilder::load_resources | ( | bool | enabled = true | ) |
Load MS Windows exe file resources.
enabled | True to enable, false to disable |
IdaCommandBuilder & IdaCommandBuilder::new_database | ( | bool | enabled = true | ) |
Disassemble a new file (delete old database).
enabled | True to enable, false to disable |
IdaCommandBuilder & IdaCommandBuilder::no_pack_database | ( | ) |
Do not pack database (not recommended).
IdaCommandBuilder & IdaCommandBuilder::no_segmentation | ( | bool | enabled = true | ) |
Do not create segmentation (used with Dump database command).
enabled | True to enable, false to disable |
IdaCommandBuilder & IdaCommandBuilder::pack_database | ( | ) |
Pack database (create unzipped idb).
IdaCommandBuilder & IdaCommandBuilder::run_debugger | ( | const std::string & | options = "" | ) |
Immediately run the built-in debugger with optional parameters.
options | Optional debugger parameters |
IdaCommandBuilder & IdaCommandBuilder::run_script | ( | const std::string & | script_file, |
const std::vector< std::string > & | args = {} |
||
) |
Execute a script file when the database is opened.
script_file | Path to the script file |
args | Optional list of arguments for the script |
IdaCommandBuilder & IdaCommandBuilder::set_compiler | ( | const std::string & | name, |
const std::string & | abi = "" |
||
) |
Set compiler in format name:abi.
name | Compiler name |
abi | Optional ABI specification |
IdaCommandBuilder & IdaCommandBuilder::set_debug_flags | ( | const std::vector< std::string > & | flag_names | ) |
Set debug flags using a list of flag names.
flag_names | List of flag names |
IdaCommandBuilder & IdaCommandBuilder::set_debug_flags | ( | unsigned int | flags | ) |
Set debug flags using a raw integer value.
flags | Integer with debug flags |
IdaCommandBuilder & IdaCommandBuilder::set_entry_point | ( | unsigned int | address | ) |
Set program entry point (hex).
address | Entry point address |
IdaCommandBuilder & IdaCommandBuilder::set_file_type | ( | const std::string & | file_type, |
const std::string & | member = "" |
||
) |
Interpret the input file as the specified file type.
file_type | File type prefix as seen in 'load file' dialog |
member | Optional archive member (e.g., "classes.dex" for ZIP) |
IdaCommandBuilder & IdaCommandBuilder::set_jit_debugger | ( | bool | enabled = true | ) |
Set IDA as just-in-time debugger.
enabled | True to enable, false to disable |
IdaCommandBuilder & IdaCommandBuilder::set_loading_address | ( | unsigned int | address | ) |
Set loading address in paragraphs (hexadecimal).
address | Loading address in paragraphs (16 bytes each) |
IdaCommandBuilder & IdaCommandBuilder::set_log_file | ( | const std::string & | filename | ) |
Set the name of the log file.
filename | Log file name |
IdaCommandBuilder & IdaCommandBuilder::set_output_database | ( | const std::string & | path | ) |
Specify the output database (implies -c).
path | Path to the output database |
IdaCommandBuilder & IdaCommandBuilder::set_plugin_options | ( | const std::string & | options | ) |
Set options to pass to plugins.
options | Options string |
IdaCommandBuilder & IdaCommandBuilder::set_processor | ( | const std::string & | processor_type | ) |
Set processor type.
processor_type | Processor type string |
IdaCommandBuilder & IdaCommandBuilder::set_windows_directory | ( | const std::string & | directory | ) |
Specify MS Windows directory.
directory | Windows directory path |
IdaCommandBuilder & IdaCommandBuilder::use_text_mode | ( | ) |
Use idat (text interface) instead of ida.