Skip to content

Commit

Permalink
fixes bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Te-k committed Jan 16, 2018
1 parent 2b957a8 commit a89ec1b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions harpoon/commands/ip.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,11 +318,12 @@ def run(self, conf, args, plugins):
})
if "detected_referrer_samples" in res['results']:
for r in res['results']['detected_referrer_samples']:
malware.append({
'hash': r['sha256'],
'date': parse(r['date']),
'source' : 'VT'
})
if "date" in r:
malware.append({
'hash': r['sha256'],
'date': parse(r['date']),
'source' : 'VT'
})
else:
vt_e = False

Expand Down

0 comments on commit a89ec1b

Please sign in to comment.