Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Binary Information

DaiC provides a set of functions to query information about the binary currently being analyzed.
This can be useful when writing analysis or reverse-engineering oriented plugins.

Get Imported Functions

The function:

DaiCCore.get_imports()

Returns a list of imported functions. Each imported function is represented using the following C++ structure:

struct ImportedFn {
    unsigned offset;        // Offset of the function in memory
    std::string file_name;  // Library or object file providing the symbol
    std::string fonction_name; // Name of the imported function
};

In Python, the result is automatically converted into a list of objects with equivalent fields.

Example

imports = DaiCCore.get_imports()
for fn in imports:
    print(f"0x{fn.offset:x} {fn.file_name}::{fn.fonction_name}")