Skip to content

Commit

Permalink
#805 #806 fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Oct 19, 2020
1 parent bc35ffa commit 2af9b23
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions analyzers/CIRCLPassiveSSL/circl_passivessl.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,18 +95,8 @@ def artifacts(self, raw):
if 'certificates' in raw:
for c in raw.get('certificates'):
tags = []
tags.append("Certificate:{}".format(
[a
for a in c.get('subject').split(', ')
if a.startswith('O=')][0]
)
)
tags.append("Certificate:{}".format(
[a
for a in c.get('subject').split(', ')
if a.startswith('CN=')][0]
)
)
tags += ["Certificate:{}".format(a) for a in c.get('subject').split(', ') if a.startswith('CN=')]
tags += ["Certificate:{}".format(a) for a in c.get('subject').split(', ') if a.startswith('O=')]
artifacts.append(
self.build_artifact(
'hash',
Expand Down

0 comments on commit 2af9b23

Please sign in to comment.