Upgrade censys_enrich module to new api version - fix test error

pull/542/head
Silvian I 2022-01-07 19:04:34 +01:00
parent ef543a3fa8
commit 950a76a3ad
1 changed files with 3 additions and 3 deletions

View File

@ -150,7 +150,7 @@ def parse_response(censys_output, attribute):
print("Error !") print("Error !")
if serv.get('ssh') and serv.get('service_name').lower() == 'ssh': if serv.get('ssh') and serv.get('service_name').lower() == 'ssh':
try: try:
# cert = serv.get('ssh').get('server_host_key').get('fingerprint_sha256') cert = serv.get('ssh').get('server_host_key').get('fingerprint_sha256')
# TODO enable once the type is merged # TODO enable once the type is merged
# misp_event.add_attribute(type='hasshserver-sha256', value=cert['fingerprint_sha256']) # misp_event.add_attribute(type='hasshserver-sha256', value=cert['fingerprint_sha256'])
except KeyError: except KeyError: