Skip to content

Commit

Permalink
Merge branch 'circlpassivessl_uncaught_exception' of https://github.c…
Browse files Browse the repository at this point in the history
…om/0xmilkmix/Cortex-Analyzers into 0xmilkmix-circlpassivessl_uncaught_exception
  • Loading branch information
jeromeleonard committed Oct 18, 2020
2 parents 0af2a09 + 4dc8f80 commit ba418d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion analyzers/CIRCLPassiveSSL/circl_passivessl.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,15 @@ def query_ip(self, ip):
certificates = []
else:
certificates = list(result.get(ip).get('certificates'))
subjects = result.get(ip).get('subjects', dict({}))

newresult = {'ip': ip,
'certificates': []}
for cert in certificates:
if cert not in subjects:
continue
newresult['certificates'].append({'fingerprint': cert,
'subject': result.get(ip).get('subjects').get(cert).get('values')[0]})
'subject': subjects.get(cert).get('values')[0]})
return newresult

def query_certificate(self, cert_hash):
Expand Down

0 comments on commit ba418d8

Please sign in to comment.