This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# IDAPython script to apply enum values from MACRO_EFI to analysed EFI modules | |
from typing import Optional, List | |
import ida_allins | |
import ida_bytes | |
import ida_ida | |
import ida_typeinf | |
import ida_ua | |
import idaapi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Populating the guids.json with GUIDs from the LVFS public database | |
# https://github.com/fwupd/fwupd/issues/5869 | |
import json | |
import re | |
import struct | |
import uuid | |
import requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# IDAPython script to resolve functions in UEFI firmware | |
# loaded with efiXloader | |
import ida_bytes | |
import ida_funcs | |
import ida_idaapi | |
import idautils | |
import idc | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ida_frame | |
import ida_funcs | |
import idc | |
FUNC_ADDRESS = 0x0000000080002BC0 | |
VAR_NAME = "EfiSmmBase2Protocol" | |
def get_member_by_name(pframe, var_name): | |
for mid in range(pframe.memqty): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import platform | |
import subprocess | |
import time | |
from concurrent.futures import ProcessPoolExecutor, as_completed | |
import click | |
from elftools.elf.elffile import ELFFile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This file was generated by the Hex-Rays decompiler. | |
Copyright (c) 2007-2020 Hex-Rays <[email protected]> | |
Detected compiler: GNU C++ | |
Changed: manual error resolve + clang formatting | |
*/ | |
#include "defs.h" |