Skip to content

Commit

Permalink
Scan test
Browse files Browse the repository at this point in the history
  • Loading branch information
cpey committed Jun 16, 2024
1 parent 7cde329 commit d5069a1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions chipsec/modules/tools/smm/smm_ptr.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ def is_outlier(self, value):
return ret

def skip(self):
#return self.outliers or self.confirmed
return False
return self.outliers or self.confirmed
#return False

def found_outlier(self):
return bool(self.outliers)
Expand Down Expand Up @@ -589,14 +589,14 @@ def test_fuzz(self, thread_id, smic_start, smic_end, _addr, _addr1, scan_mode=Fa
for smi_code in range(smic_start, smic_end + 1, 1):
_smi_desc.smi_code = smi_code
for smi_data in range(MAX_SMI_DATA):
#_smi_desc.smi_data = smi_data
_smi_desc.smi_data = 0x00
_smi_desc.smi_data = smi_data
#_smi_desc.smi_data = 0x00
self.logger.log(f'\n[*] Fuzzing SMI# 0x{smi_code:02X} (data: 0x{smi_data:02X})')
if FUZZ_SMI_FUNCTIONS_IN_ECX:
for _rcx in range(MAX_SMI_FUNCTIONS):
self.logger.log(f' >> Function (RCX): 0x{_rcx:016X}')
#_smi_desc.gprs['rcx'] = _rcx
_smi_desc.gprs['rcx'] = 0x00
_smi_desc.gprs['rcx'] = _rcx
#_smi_desc.gprs['rcx'] = 0x00
if PTR_IN_ALL_GPRS or scan_mode:
if self.smi_fuzz_iter(thread_id, _addr, _smi_desc, False, True, scan):
bad_ptr_cnt += 1
Expand Down

0 comments on commit d5069a1

Please sign in to comment.