new: Add missing types in ssfetcher

pull/17/head
Raphaël Vinot 2022-01-04 14:15:59 +01:00
parent 240fafa110
commit 612cd12058
1 changed files with 5 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class ShadowServerFetcher():
self.index_page = 'https://dl.shadowserver.org/reports/index.php' self.index_page = 'https://dl.shadowserver.org/reports/index.php'
self.vendor = 'shadowserver' self.vendor = 'shadowserver'
self.known_list_types = ('blacklist', 'blocklist', 'botnet', 'cc', 'cisco', 'cwsandbox', self.known_list_types = ('blacklist', 'blocklist', 'botnet', 'cc', 'cisco', 'cwsandbox',
'device', 'drone', 'event4', 'malware', 'scan6', 'device', 'drone', 'event4', 'malware', 'scan6', 'event6', 'netis',
'microsoft', 'scan', 'sinkhole6', 'sinkhole', 'outdated', 'microsoft', 'scan', 'sinkhole6', 'sinkhole', 'outdated',
'compromised', 'hp', 'darknet', 'ddos') 'compromised', 'hp', 'darknet', 'ddos')
self.first_available_day: Optional[date] = None self.first_available_day: Optional[date] = None
@ -138,6 +138,10 @@ class ShadowServerFetcher():
config['impact'] = 1 config['impact'] = 1
elif main_type == 'event4': elif main_type == 'event4':
config['impact'] = 2 config['impact'] = 2
elif main_type == 'event6':
config['impact'] = 2
elif main_type == 'netis':
config['impact'] = 2
else: else:
config['impact'] = 1 config['impact'] = 1