def __init__(self): BaseModule.__init__(self) self.interrupts = Interrupts( self.cs ) self.is_check_memory = True self.test_ptr_in_buffer = False self.fill_byte = _MEM_FILL_VALUE self.fill_size = _MEM_FILL_SIZE
def __init__(self): BaseModule.__init__(self) self.vmm = VMM(self.cs) self.random_order = True self.gprs = GPRS self.vector_reg = None self.iterations = DEFAULT_RANDOM_ITERATIONS self.maxval = DEFAULT_MAXVAL_RANDOM
def __init__(self): BaseModule.__init__(self) self._uefi = UEFI(self.cs) nv = EFI_VARIABLE_NON_VOLATILE bs = EFI_VARIABLE_BOOTSERVICE_ACCESS rt = EFI_VARIABLE_RUNTIME_ACCESS ta = EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS self.uefispec_vars = { #### From UEFI Spec Table 11 "Global Variables" "LangCodes": bs | rt, "Lang": nv | bs | rt, "Timeout": nv | bs | rt, "PlatformLangCodes": bs | rt, "PlatformLang": nv | bs | rt, "ConIn": nv | bs | rt, "ConOut": nv | bs | rt, "ErrOut": nv | bs | rt, "ConInDev": bs | rt, "ConOutDev": bs | rt, "ErrOutDev": bs | rt, "Boot0001": nv | bs | rt, "Boot0002": nv | bs | rt, "BootOrder": nv | bs | rt, "BootNext": nv | bs | rt, "BootCurrent": bs | rt, "BootOptionSupport": bs | rt, "Driver0001": nv | bs | rt, "DriverOrder": nv | bs | rt, "Key0001": nv | bs | rt, "HwErrRecSupport": nv | bs | rt, # HwErrRecSupport should be RO "SetupMode": bs | rt, # SetupMode should be RO "KEK": nv | bs | rt | ta, "PK": nv | bs | rt | ta, "SignatureSupport": bs | rt, # RO "SecureBoot": bs | rt, # RO "KEKDefault": bs | rt, # RO "PKDefault": bs | rt, # RO "dbDefault": bs | rt, # RO "dbxDefault": bs | rt, # RO "dbtDefault": bs | rt, # RO "OsIndicationsSupported": bs | rt, # RO "OsIndications": nv | bs | rt, "VendorKeys": bs | rt # RO } self.uefispec_ro_vars = ("HwErrRecSupport", "SetupMode", "SignatureSupport", "SecureBoot", "KEKDefault", "PKDefault", "dbDefault", "dbxDefault", "dbtDefault", "OsIndicationsSupported", "VendorKeys")
def __init__(self): BaseModule.__init__(self) self._interrupts = Interrupts(self.cs) # SMI code to be written to I/O port 0xB2 self.smic_start = 0x00 self.smic_end = SMI_CODE_LIMIT # SMI data to be written to I/O port 0xB3 self.smid_start = 0x00 self.smid_end = SMI_DATA_LIMIT # SMI handler "function" often supplied in ECX register self.smif_start = 0x00 self.smif_end = SMI_FUNC_LIMIT # SMM communication buffer often supplied in EBX register self.comm = 0x00 self.reloc_mmio = None
def __init__(self): BaseModule.__init__(self)
def __init__(self): BaseModule.__init__(self) self.spi = SPI( self.cs )
def __init__(self): BaseModule.__init__(self)
def __init__(self): BaseModule.__init__(self) self.res = ModuleResult.NOTAPPLICABLE
def __init__(self): BaseModule.__init__(self) self.uefi = UEFI(self.cs) self.image = None self.efi_list = None self.suspect_modules = {}
def __init__(self): BaseModule.__init__(self) self.uefi = UEFI(self.cs) self.cfg_name = 'blacklist.json' self.image = None self.efi_blacklist = None
def __init__(self): BaseModule.__init__(self) self._uefi = UEFI( self.cs )
def __init__(self): BaseModule.__init__(self) self._acpi = ACPI(self.cs)
def __init__(self): BaseModule.__init__(self) self.is_enable_set = False self.is_debug_set = False self.is_lock_set = True
def __init__(self): BaseModule.__init__(self) self.uefi = UEFI(self.cs) self.image = None self.vt_threshold = 10 self.vt = None
def __init__(self): BaseModule.__init__(self) self.res = ModuleResult.PASSED
def __init__(self): BaseModule.__init__(self) self.debug = False self.promt = ''
def __init__(self): BaseModule.__init__(self) self.read_from_file = False self.par = []
def __init__(self): BaseModule.__init__(self) self.cmos = CMOS(self.cs) self.user_request = False self.test_offset = 0x38 self.test_value = 0xAA
def __init__(self): BaseModule.__init__(self) self.helper = self.cs.helper self.res = ModuleResult.PASSED
def __init__(self): BaseModule.__init__(self) self.logger.HAL = True self._uefi = UEFI(self.cs) self.bootscript_PAs = None self.parsed_scripts = None