Added virustotal module

pull/45/head
Hannah Ward 2016-08-17 09:30:15 +01:00
parent 393b637514
commit 042bf2bb2f
No known key found for this signature in database
GPG Key ID: BA89E572EE1B4C5F
1 changed files with 5 additions and 2 deletions

View File

@ -35,8 +35,11 @@ def handler(q=False):
if "domain" in q:
r["results"] += getDomain(q["domain"], key)
with open("/home/hward/debug.txt", "w") as f:
f.write(json.dumps(r))
uniq = []
for res in r["results"]:
if res not in uniq:
uniq.append(res)
r["results"] = uniq
return r
def getIP(ip, key, do_not_recurse = False):