ida ¤
Talks to an XMLRPC server running inside of an active IDA Pro instance, in order to query it about the database. Allows symbol resolution and interactive debugging.
Classes:
-
IDC– -
IdaProvider–
Functions:
-
ida_config_changed– -
ensure_disabled– -
try_init_ida_rpc_client–Try to connect to the IDA RPC client.
-
enabledIDA–If we have a connection to Ida, call the function.
-
establish_connection–If we already had a connection, or succeed in creating a new one, return True.
-
withIDA–Try to connect to Ida before running the decorated function.
-
withHexrays– -
takes_address– -
returns_address– -
l2r– -
r2l– -
remote–Runs the provided function in IDA's interpreter.
-
base– -
Comment– -
Name– -
GetFuncOffset– -
GetFuncAttr– -
GetType– -
here– -
Jump– -
Anterior– -
GetBreakpoints– -
GetBptQty– -
GetBptEA– -
UpdateBreakpoints– -
SetColor– -
Auto_Color_PC– -
Auto_UnColor_PC– -
LocByName– -
PrevHead– -
NextHead– -
GetFunctionName– -
GetFlags– -
isASCII– -
ArgCount– -
SaveBase– -
GetIdbPath– -
has_cached_cfunc– -
decompile– -
decompile_context– -
get_ida_versions– -
GetStrucQty– -
GetStrucId– -
GetStrucName– -
GetStrucSize– -
GetFrameId– -
GetMemberQty– -
GetMemberSize– -
GetMemberId– -
GetMemberName– -
GetMemberOffset– -
GetMemberFlag– -
GetStrucNextOff– -
print_member– -
print_structs–
Attributes:
-
ida_rpc_host– -
ida_rpc_port– -
ida_timeout– -
P– -
T– -
colored_pc– -
idc– -
ida_replacements–
ida_rpc_host module-attribute ¤
ida_rpc_port module-attribute ¤
ida_timeout module-attribute ¤
ida_replacements module-attribute ¤
ida_replacements = {
"__int64": "signed long long int",
"__int32": "signed int",
"__int16": "signed short",
"__int8": "signed char",
"__uint64": "unsigned long long int",
"__uint32": "unsigned int",
"__uint16": "unsigned short",
"__uint8": "unsigned char",
"_BOOL_1": "unsigned char",
"_BOOL_2": "unsigned short",
"_BOOL_4": "unsigned int",
"_BYTE": "unsigned char",
"_WORD": "unsigned short",
"_DWORD": "unsigned int",
"_QWORD": "unsigned long long",
"__pure": "",
"__hidden": "",
"__return_ptr": "",
"__struct_ptr": "",
"__array_ptr": "",
"__fastcall": "",
"__cdecl": "",
"__thiscall": "",
"__userpurge": "",
}
IDC ¤
IdaProvider ¤
Bases: IntegrationProvider
Methods:
-
get_symbol– -
get_versions– -
is_in_function– -
get_comment_lines– -
decompile– -
get_func_type– -
disable– -
get_stack_var_name–Gets the name of a stack variable based on only the address of the variable.
get_stack_var_name ¤
Gets the name of a stack variable based on only the address of the variable.
try_init_ida_rpc_client ¤
Try to connect to the IDA RPC client.
If the connection succeeds, or we were already connected, return True. Otherwise, False.
An appropriate message will be also printed to the user.
enabledIDA ¤
If we have a connection to Ida, call the function.
Otherwise, return None. Thus, all functions decorated with this must have "| None" in their return signature.
This will not try to open a connection if it doesn't already exist. No messages will be printed.
establish_connection ¤
If we already had a connection, or succeed in creating a new one, return True. Otherwise False.
withIDA ¤
Try to connect to Ida before running the decorated function.
If we fail connecting to Ida, return None. Thus, all functions decorated with this must have "| None" in their return signature.
Use this for user-initiated stuff like pwndbg.commands.ida.save_ida().
takes_address ¤
remote ¤
Runs the provided function in IDA's interpreter.
The function must be self-contained and not reference any global variables.