Quick fix to the invalid hash types offered on all returned hashes, hopefully fixes #162

pull/165/head
Andras Iklody 5 years ago committed by GitHub
parent 37ea090cba
commit 978903f911
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      misp_modules/modules/expansion/virustotal.py

@ -152,7 +152,7 @@ def getMoreInfo(req, key):
# Get all hashes first
hashes = []
hashes = findAll(req, ["md5", "sha1", "sha256", "sha512"])
r.append({"types": ["md5", "sha1", "sha256", "sha512"], "values": hashes})
r.append({"types": ["freetext"], "values": hashes})
for hsh in hashes[:limit]:
# Search VT for some juicy info
try:

Loading…
Cancel
Save