Carregar ficheiros para "patterns"

This commit is contained in:
2025-05-29 17:18:50 +00:00
parent bd2b15503d
commit 454a56e768
5 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,9 @@
PATTERNS_COMMON = {
'Ecu Family': r'\b((?:MEDC|EDC|MDG|MD1)[A-Z0-9_]+)',
'Possible Software Number': r'\b(1037\d{6}|1039\d{6}|10SW\d{6}|28SA\d{6}|39S0\d{6})',
'VIN': r'\b([A-HJ-NPR-Z0-9]{17})\b',
'Possible PIN': r'\b([A-Z0-9]{4,8})\b', # Special counting logic for this pattern name is handled in the main analyzer function
'Bosch SW': r'\b103[79]\d{6}\b|\b02[68]\d{7}\b|\b10SW\d{6}',
}
INITIAL_ANALYSIS_PATTERNS_KEYS = ['Ecu Family', 'Possible Software Number']