![]() |
IDA Domain
|
Provides access and control over the loaded IDA database. More...
#include <database.hpp>
Public Member Functions | |
Database () | |
Constructs a new interface to the IDA database. More... | |
bool | open (const std::string &db_path, const IdaCommandBuilder &db_args=IdaCommandBuilder()) |
Opens a database from the specified file path. More... | |
bool | is_open () const |
Checks if the database is loaded. More... | |
void | close (bool save) |
Closes the currently open database. More... | |
ea_t | get_entry_point () const |
Retrieves the entry point address of the binary. More... | |
bool | set_current_ea (const ea_t ea) const |
Sets the current effective address (equivalent to the "screen EA" in IDA GUI). More... | |
ea_t | get_current_ea () const |
Get the current effective address (equivalent to the "screen EA" in IDA GUI). More... | |
ea_t | get_minimum_ea () const |
Get the minimum effective address from this database. More... | |
ea_t | get_maximum_ea () const |
Get the maximum effective address from this database. More... | |
std::map< std::string, std::string > | get_metadata () const |
Retrieves a map of key-value metadata about the current database. More... | |
Public Attributes | |
const Segments | segments |
Handler that provides access to memory segment-related operations. More... | |
const Functions | functions |
Handler that provides access to function-related operations. More... | |
const BasicBlocks | basic_blocks |
Handler that provides access to basic block-related operations. More... | |
const Instructions | instructions |
Handler that provides access to instruction-related operations. More... | |
const Comments | comments |
Handler that provides access to user comment-related operations. More... | |
const Strings | strings |
Handler that provides access to string-related operations. More... | |
const Names | names |
Handler that provides access to name-related operations. More... | |
const Types | types |
Handler that provides access to type-related operations. More... | |
const Bytes | bytes |
Handler that provides access to byte-level memory operations. More... | |
const SignaturesFiles | signature_files |
Handler that provides access to signature file operations. More... | |
const Xrefs | xrefs |
Handler that provides access to cross-reference (xref) operations. More... | |
Provides access and control over the loaded IDA database.
Database::Database | ( | ) |
Constructs a new interface to the IDA database.
void Database::close | ( | bool | save | ) |
Closes the currently open database.
save | If true, saves changes before closing; otherwise, discards them. |
ea_t Database::get_current_ea | ( | ) | const |
Get the current effective address (equivalent to the "screen EA" in IDA GUI).
ea_t Database::get_entry_point | ( | ) | const |
Retrieves the entry point address of the binary.
ea_t Database::get_maximum_ea | ( | ) | const |
Get the maximum effective address from this database.
std::map<std::string, std::string> Database::get_metadata | ( | ) | const |
Retrieves a map of key-value metadata about the current database.
Metadata includes information such as architecture, bitness, format, or load time.
ea_t Database::get_minimum_ea | ( | ) | const |
Get the minimum effective address from this database.
bool Database::is_open | ( | ) | const |
Checks if the database is loaded.
bool Database::open | ( | const std::string & | db_path, |
const IdaCommandBuilder & | db_args = IdaCommandBuilder() |
||
) |
Opens a database from the specified file path.
db_path | Path to the input file. |
db_args | Command builder responsible for passing arguments to IDA kernel. |
bool Database::set_current_ea | ( | const ea_t | ea | ) | const |
Sets the current effective address (equivalent to the "screen EA" in IDA GUI).
const BasicBlocks Database::basic_blocks |
Handler that provides access to basic block-related operations.
const Bytes Database::bytes |
Handler that provides access to byte-level memory operations.
const Comments Database::comments |
Handler that provides access to user comment-related operations.
const Functions Database::functions |
Handler that provides access to function-related operations.
const Instructions Database::instructions |
Handler that provides access to instruction-related operations.
const Names Database::names |
Handler that provides access to name-related operations.
const Segments Database::segments |
Handler that provides access to memory segment-related operations.
const SignaturesFiles Database::signature_files |
Handler that provides access to signature file operations.
const Strings Database::strings |
Handler that provides access to string-related operations.
const Types Database::types |
Handler that provides access to type-related operations.
const Xrefs Database::xrefs |
Handler that provides access to cross-reference (xref) operations.