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