Exemple #1
0
 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
Exemple #2
0
    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
Exemple #3
0
    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
Exemple #5
0
 def __init__(self):
     BaseModule.__init__(self)
Exemple #6
0
 def __init__(self):
     BaseModule.__init__(self)
     self.spi    = SPI( self.cs )
Exemple #7
0
 def __init__(self):
     BaseModule.__init__(self)
Exemple #8
0
 def __init__(self):
     BaseModule.__init__(self)
     self.res = ModuleResult.NOTAPPLICABLE
Exemple #9
0
 def __init__(self):
     BaseModule.__init__(self)
     self.uefi = UEFI(self.cs)
     self.image = None
     self.efi_list = None
     self.suspect_modules = {}
Exemple #10
0
 def __init__(self):
     BaseModule.__init__(self)
     self.uefi = UEFI(self.cs)
     self.cfg_name = 'blacklist.json'
     self.image = None
     self.efi_blacklist = None
Exemple #11
0
 def __init__(self):
     BaseModule.__init__(self)
     self._uefi = UEFI( self.cs )
Exemple #12
0
 def __init__(self):
     BaseModule.__init__(self)
     self._acpi = ACPI(self.cs)
Exemple #13
0
 def __init__(self):
     BaseModule.__init__(self)
     self.is_enable_set = False
     self.is_debug_set = False
     self.is_lock_set = True
Exemple #14
0
 def __init__(self):
     BaseModule.__init__(self)
     self.uefi = UEFI(self.cs)
     self.image = None
     self.vt_threshold = 10
     self.vt = None
Exemple #15
0
 def __init__(self):
     BaseModule.__init__(self)
     self.res = ModuleResult.PASSED
Exemple #16
0
 def __init__(self):
     BaseModule.__init__(self)
     self.debug = False
     self.promt = ''
Exemple #17
0
 def __init__(self):
     BaseModule.__init__(self)
     self.read_from_file = False
     self.par = []
Exemple #18
0
 def __init__(self):
     BaseModule.__init__(self)
     self.cmos = CMOS(self.cs)
     self.user_request = False
     self.test_offset = 0x38
     self.test_value = 0xAA
Exemple #19
0
 def __init__(self):
     BaseModule.__init__(self)
     self.helper = self.cs.helper
     self.res = ModuleResult.PASSED
Exemple #20
0
 def __init__(self):
     BaseModule.__init__(self)
     self.logger.HAL = True
     self._uefi = UEFI(self.cs)
     self.bootscript_PAs = None
     self.parsed_scripts = None