IDAPython 8.4
Loading...
Searching...
No Matches
ida_loader.py File Reference

Classes

class  qvector_snapshotvec_t
 Proxy of C++ qvector< snapshot_t * > class. More...
 
class  loader_t
 Proxy of C++ loader_t class. More...
 
class  idp_name_t
 Proxy of C++ idp_name_t class. More...
 
class  idp_desc_t
 Proxy of C++ idp_desc_t class. More...
 
class  plugin_info_t
 Proxy of C++ plugin_info_t class. More...
 
class  snapshot_t
 Proxy of C++ snapshot_t class. More...
 

Namespaces

namespace  ida_loader
 

Functions

"bool" load_binary_file (*args)
 load_binary_file(filename, li, _neflags, fileoff, basepara, binoff, nbytes) -> bool Load a binary file into the database.
 
"qstring *" process_archive (*args)
 process_archive(temp_file, li, module_name, neflags, defmember, loader) -> str Calls loader_t::process_archive() For parameters and return value description look at loader_t::process_archive().
 
"int" gen_file (*args)
 gen_file(otype, fp, ea1, ea2, flags) -> int Generate an output file.
 
"int" file2base (*args)
 file2base(li, pos, ea1, ea2, patchable) -> int Load portion of file into the database.
 
"int" base2file (*args)
 base2file(fp, pos, ea1, ea2) -> int Unload database to a binary file.
 
"filetype_t" get_basic_file_type (*args)
 get_basic_file_type(li) -> filetype_t Get the input file type.
 
"size_t" get_file_type_name (*args)
 get_file_type_name() -> str Get name of the current file type.
 
"void" set_import_ordinal (*args)
 set_import_ordinal(modnode, ea, ord) Set information about the ordinal import entry.
 
"void" set_import_name (*args)
 set_import_name(modnode, ea, name) Set information about the named import entry.
 
"int" load_ids_module (*args)
 load_ids_module(fname) -> int Load and apply IDS file.
 
"char const *" get_plugin_options (*args)
 get_plugin_options(plugin) -> char const * Get plugin options from the command line.
 
"plugin_t *" find_plugin (*args)
 find_plugin(name, load_if_needed=False) -> plugin_t * Find a user-defined plugin and optionally load it.
 
"qoff64_t" get_fileregion_offset (*args)
 get_fileregion_offset(ea) -> qoff64_t Get offset in the input file which corresponds to the given ea.
 
"ea_t" get_fileregion_ea (*args)
 get_fileregion_ea(offset) -> ea_t Get linear address which corresponds to the specified input file offset.
 
"int" gen_exe_file (*args)
 gen_exe_file(fp) -> int Generate an exe file (unload the database in binary form).
 
"bool" reload_file (*args)
 reload_file(file, is_remote) -> bool Reload the input file.
 
"bool" build_snapshot_tree (*args)
 build_snapshot_tree(root) -> bool Build the snapshot tree.
 
"int" flush_buffers (*args)
 flush_buffers() -> int Flush buffers to the disk.
 
"bool" is_trusted_idb (*args)
 is_trusted_idb() -> bool Is the database considered as trusted?
 
"bool" save_database (*args)
 save_database(outfile, flags, root=None, attr=None) -> bool Save current database using a new file name.
 
"bool" is_database_flag (*args)
 is_database_flag(dbfl) -> bool Get the current database flag
 
"void" set_database_flag (*args)
 set_database_flag(dbfl, cnd=True) Set or clear database flag
 
"void" clr_database_flag (*args)
 clr_database_flag(dbfl)
 
"char const *" get_path (*args)
 get_path(pt) -> char const * Get the file path
 
"void" set_path (*args)
 set_path(pt, path) Set the file path
 
"char const *" get_elf_debug_file_directory (*args)
 get_elf_debug_file_directory() -> char const * Get the value of the ELF_DEBUG_FILE_DIRECTORY configuration directive.
 
"int" mem2base (*args)
 mem2base(py_mem, ea, fpos=-1) -> int Load database from the memory.
 
"PyObject *" load_plugin (*args)
 load_plugin(name) -> PyCapsule or None Loads a plugin
 
"bool" run_plugin (*args)
 run_plugin(plg, arg) -> bool Runs a plugin
 
"bool" load_and_run_plugin (*args)
 load_and_run_plugin(name, arg) -> bool Load & run a plugin.
 
"PyObject *" extract_module_from_archive (*args)
 extract_module_from_archive(fname, is_remote=False) -> (NoneType, NoneType), (str, str) Extract a module for an archive file.
 

Variables

 LDRF_RELOAD = _ida_loader.LDRF_RELOAD
 
 LDRF_REQ_PROC = _ida_loader.LDRF_REQ_PROC
 
 ACCEPT_ARCHIVE = _ida_loader.ACCEPT_ARCHIVE
 
 ACCEPT_CONTINUE = _ida_loader.ACCEPT_CONTINUE
 
 ACCEPT_FIRST = _ida_loader.ACCEPT_FIRST
 
 NEF_SEGS = _ida_loader.NEF_SEGS
 
 NEF_RSCS = _ida_loader.NEF_RSCS
 
 NEF_NAME = _ida_loader.NEF_NAME
 
 NEF_MAN = _ida_loader.NEF_MAN
 
 NEF_FILL = _ida_loader.NEF_FILL
 
 NEF_IMPS = _ida_loader.NEF_IMPS
 
 NEF_FIRST = _ida_loader.NEF_FIRST
 
 NEF_CODE = _ida_loader.NEF_CODE
 
 NEF_RELOAD = _ida_loader.NEF_RELOAD
 
 NEF_FLAT = _ida_loader.NEF_FLAT
 
 NEF_MINI = _ida_loader.NEF_MINI
 
 NEF_LOPT = _ida_loader.NEF_LOPT
 
 NEF_LALL = _ida_loader.NEF_LALL
 
 DLLEXT = _ida_loader.DLLEXT
 
 LOADER_DLL = _ida_loader.LOADER_DLL
 
 OFILE_MAP = _ida_loader.OFILE_MAP
 
 OFILE_EXE = _ida_loader.OFILE_EXE
 
 OFILE_IDC = _ida_loader.OFILE_IDC
 
 OFILE_LST = _ida_loader.OFILE_LST
 
 OFILE_ASM = _ida_loader.OFILE_ASM
 
 OFILE_DIF = _ida_loader.OFILE_DIF
 
 GENFLG_MAPSEG = _ida_loader.GENFLG_MAPSEG
 
 GENFLG_MAPNAME = _ida_loader.GENFLG_MAPNAME
 
 GENFLG_MAPDMNG = _ida_loader.GENFLG_MAPDMNG
 
 GENFLG_MAPLOC = _ida_loader.GENFLG_MAPLOC
 
 GENFLG_IDCTYPE = _ida_loader.GENFLG_IDCTYPE
 
 GENFLG_ASMTYPE = _ida_loader.GENFLG_ASMTYPE
 
 GENFLG_GENHTML = _ida_loader.GENFLG_GENHTML
 
 GENFLG_ASMINC = _ida_loader.GENFLG_ASMINC
 
 FILEREG_PATCHABLE = _ida_loader.FILEREG_PATCHABLE
 
 FILEREG_NOTPATCHABLE = _ida_loader.FILEREG_NOTPATCHABLE
 
 PLUGIN_DLL = _ida_loader.PLUGIN_DLL
 
 MODULE_ENTRY_LOADER = _ida_loader.MODULE_ENTRY_LOADER
 
 MODULE_ENTRY_PLUGIN = _ida_loader.MODULE_ENTRY_PLUGIN
 
 MODULE_ENTRY_IDP = _ida_loader.MODULE_ENTRY_IDP
 
 IDP_DLL = _ida_loader.IDP_DLL
 
 MAX_DATABASE_DESCRIPTION = _ida_loader.MAX_DATABASE_DESCRIPTION
 
 SSF_AUTOMATIC = _ida_loader.SSF_AUTOMATIC
 
 SSUF_DESC = _ida_loader.SSUF_DESC
 
 SSUF_PATH = _ida_loader.SSUF_PATH
 
 SSUF_FLAGS = _ida_loader.SSUF_FLAGS
 
 DBFL_KILL = _ida_loader.DBFL_KILL
 
 DBFL_COMP = _ida_loader.DBFL_COMP
 
 DBFL_BAK = _ida_loader.DBFL_BAK
 
 DBFL_TEMP = _ida_loader.DBFL_TEMP
 
 PATH_TYPE_CMD = _ida_loader.PATH_TYPE_CMD
 
 PATH_TYPE_IDB = _ida_loader.PATH_TYPE_IDB
 
 PATH_TYPE_ID0 = _ida_loader.PATH_TYPE_ID0