mirror of https://github.com/MISP/misp-modules
Update virustotal.py
parent
15c3f0d482
commit
d7b33532eb
|
@ -136,6 +136,14 @@ def getMoreInfo(req, key):
|
|||
params = {"hash":hsh, "apikey":key})
|
||||
|
||||
malsample = sample.content
|
||||
if isset(data, "submission_names"):
|
||||
r.append({"types":["malware-sample"],
|
||||
"categories":["Payload delivery"],
|
||||
"values":data["submission_names"],
|
||||
"data": str(base64.b64encode(malsample), 'utf-8')
|
||||
}
|
||||
)
|
||||
else:
|
||||
r.append({"types":["malware-sample"],
|
||||
"categories":["Payload delivery"],
|
||||
"values":data["submission_names"],
|
||||
|
|
Loading…
Reference in New Issue