Add Copam detector (no information)

This commit is contained in:
RichardG867
2022-04-18 14:22:22 -03:00
parent 790c156fc6
commit 4e447a41b2
2 changed files with 11 additions and 0 deletions

View File

@@ -502,6 +502,7 @@ def analyze_process(queue, formatter, scan_base, debug):
analyzers.ChipsAnalyzer(),
analyzers.CommodoreAnalyzer(),
analyzers.CompaqAnalyzer(),
analyzers.CopamAnalyzer(),
analyzers.CorebootAnalyzer(),
analyzers.DTKGoldStarAnalyzer(),
analyzers.GeneralSoftwareAnalyzer(),

View File

@@ -1323,6 +1323,16 @@ class CompaqAnalyzer(NoInfoAnalyzer):
return b'Copyright COMPAQ Computer Corporation' in file_data and (b'Insert DIAGNOSTIC diskette in Drive ' in file_data or b'Insert COMPAQ DOS diskette' in file_data or b'You must load COMPAQ BASIC' in file_data)
class CopamAnalyzer(NoInfoAnalyzer):
def __init__(self, *args, **kwargs):
super().__init__('Copam', *args, **kwargs)
self._pattern = re.compile(b'''THIS IS NOT IBM BIOS COPAM\\(C\\) [0-9]{4}''')
def has_strings(self, file_data):
return self._pattern.search(file_data)
class CorebootAnalyzer(Analyzer):
def __init__(self, *args, **kwargs):
super().__init__('coreboot', *args, **kwargs)