Skip to content

Commit

Permalink
add support for idasdk83, fix logs in run() function
Browse files Browse the repository at this point in the history
  • Loading branch information
yeggor committed Oct 7, 2024
1 parent 6fde36f commit d3bd633
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions efiXplorer/efi_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ ea_list_t efi_utils::get_xrefs_to_array(ea_t addr) {
//--------------------------------------------------------------------------
// wrapper for op_stroff function
bool efi_utils::op_stroff(ea_t addr, std::string type) {
#if IDA_SDK_VERSION >= 840
tinfo_t tinfo;
if (!tinfo.get_named_type(get_idati(), type.c_str())) {
return false;
Expand All @@ -310,6 +311,9 @@ bool efi_utils::op_stroff(ea_t addr, std::string type) {
if (tid == BADADDR) {
return false;
}
#else
tid_t tid = get_struc_id(type.c_str());
#endif

insn_t insn;
decode_insn(&insn, addr);
Expand Down
6 changes: 3 additions & 3 deletions efiXplorer/efixplorer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@ bool idaapi run(size_t arg) {
warning("%s: input file is UEFI firmware, analysis can be time consuming\n",
g_plugin_name);
if (get_machine_type() == AARCH64) {
efi_utils::log("[%s] analyse ARM64 modules\n");
efi_utils::log("analyse ARM64 modules\n");
efi_analysis::efi_analyse_main_aarch64();
} else {
efi_utils::log("[%s] analyse AMD64 modules\n", g_plugin_name);
efi_utils::log("analyse AMD64 modules\n");
efi_analysis::efi_analyse_main_x86_64();
}
} else if (arch == arch_file_type_t::aarch64) {
efi_utils::log("[%s] input file is ARM 64-bit module\n");
efi_utils::log("input file is ARM 64-bit module\n");
efi_analysis::efi_analyse_main_aarch64();
}

Expand Down

0 comments on commit d3bd633

Please sign in to comment.