File tree Expand file tree Collapse file tree 2 files changed +5
-29
lines changed
intelmq/bots/parsers/shadowserver Expand file tree Collapse file tree 2 files changed +5
-29
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -263,19 +263,19 @@ def force_base64(value: Optional[str]) -> Optional[str]:
263263
264264
265265def scan_exchange_taxonomy (field ):
266- if field == 'exchange; webshell' :
266+ if ' webshell' in field :
267267 return 'intrusions'
268268 return 'vulnerable'
269269
270270
271271def scan_exchange_type (field ):
272- if field == 'exchange; webshell' :
272+ if ' webshell' in field :
273273 return 'system-compromise'
274- return 'infected -system'
274+ return 'vulnerable -system'
275275
276276
277277def scan_exchange_identifier (field ):
278- if field == 'exchange; webshell' :
278+ if ' webshell' in field :
279279 return 'exchange-server-webshell'
280280 return 'vulnerable-exchange-server'
281281
@@ -321,7 +321,7 @@ def reload():
321321 return
322322 else :
323323 if not __config .test_mode :
324- raise ValueError ("The schema file does not exist." )
324+ raise ValueError ("The schema file does not exist: %r." , __config . schema_file )
325325
326326 if __config .schema_mtime == 0.0 and mtime == 0.0 and __config .auto_update :
327327 update_schema ()
You can’t perform that action at this time.
0 commit comments