mirror of https://github.com/MISP/misp-modules
Removed calls to print
parent
a53c43701a
commit
9db9247e55
|
@ -49,7 +49,6 @@ def handler(q=False):
|
||||||
|
|
||||||
def getIP(ip, key, do_not_recurse = False):
|
def getIP(ip, key, do_not_recurse = False):
|
||||||
global limit
|
global limit
|
||||||
print("Getting info for {}".format(ip))
|
|
||||||
toReturn = []
|
toReturn = []
|
||||||
req = requests.get("https://www.virustotal.com/vtapi/v2/ip-address/report",
|
req = requests.get("https://www.virustotal.com/vtapi/v2/ip-address/report",
|
||||||
params = {"ip":ip, "apikey":key}
|
params = {"ip":ip, "apikey":key}
|
||||||
|
@ -70,8 +69,6 @@ def getIP(ip, key, do_not_recurse = False):
|
||||||
|
|
||||||
def getDomain(domain, key, do_not_recurse=False):
|
def getDomain(domain, key, do_not_recurse=False):
|
||||||
global limit
|
global limit
|
||||||
|
|
||||||
print("Getting info for {}".format(domain))
|
|
||||||
toReturn = []
|
toReturn = []
|
||||||
req = requests.get("https://www.virustotal.com/vtapi/v2/domain/report",
|
req = requests.get("https://www.virustotal.com/vtapi/v2/domain/report",
|
||||||
params = {"domain":domain, "apikey":key}
|
params = {"domain":domain, "apikey":key}
|
||||||
|
@ -112,7 +109,6 @@ def isset(d, key):
|
||||||
|
|
||||||
def getMoreInfo(req, key):
|
def getMoreInfo(req, key):
|
||||||
global limit
|
global limit
|
||||||
print("Getting extra info for {}".format(req))
|
|
||||||
r = []
|
r = []
|
||||||
#Get all hashes first
|
#Get all hashes first
|
||||||
hashes = []
|
hashes = []
|
||||||
|
@ -139,7 +135,6 @@ def getMoreInfo(req, key):
|
||||||
sample = requests.get("https://www.virustotal.com/vtapi/v2/file/download",
|
sample = requests.get("https://www.virustotal.com/vtapi/v2/file/download",
|
||||||
params = {"hash":hsh, "apikey":key})
|
params = {"hash":hsh, "apikey":key})
|
||||||
|
|
||||||
print(sample)
|
|
||||||
malsample = sample.content
|
malsample = sample.content
|
||||||
r.append({"types":["malware-sample"],
|
r.append({"types":["malware-sample"],
|
||||||
"categories":["Payload delivery"],
|
"categories":["Payload delivery"],
|
||||||
|
|
Loading…
Reference in New Issue