Skip to content

Commit

Permalink
exception resolved in ipv6 address (#21)
Browse files Browse the repository at this point in the history
Co-authored-by: Dan Prantl <[email protected]>
  • Loading branch information
2 people authored and nusantara-self committed Feb 10, 2025
1 parent 60ad3a6 commit 10d64b3
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions analyzers/DShield/DShield_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,19 @@ def run(self):
results['firstseen'] = info['mindate'] if isinstance(info['mindate'], str) else 'None'
results['updated'] = info['updated'] if isinstance(info['updated'], str) else 'None'
results['comment'] = info['comment'] if isinstance(info['comment'], str) else 'None'
results['asabusecontact'] = info['asabusecontact'] if isinstance(info['asabusecontact'], str) else 'Unknown'
results['as'] = info['as']
results['asname'] = info['asname']
results['ascountry'] = info['ascountry']
results['assize'] = info['assize']
results['network'] = info['network']
if 'asabusecontact' in info:
results['asabusecontact'] = info['asabusecontact'] if isinstance(info['asabusecontact'], str) else 'Unknown'
if 'as' in info:
results['as'] = info['as']
if 'asname' in info:
results['asname'] = info['asname']
if 'ascountry' in info:
results['ascountry'] = info['ascountry']
if 'assize' in info:
results['assize'] = info['assize']
if 'network' in info:
results['network'] = info['network']

results['threatfeedscount'] = 0
if 'threatfeeds' not in info:
results['threatfeeds'] = ''
Expand Down

0 comments on commit 10d64b3

Please sign in to comment.