Wednesday, March 5, 2014

VirusTotal API Submission - Submit URL

Found this to be helpful:


import json
import simplejson
import urllib
import urllib2
import sys

url = ""

if (len(sys.argv) > 1):
        submitURL = sys.argv[1]
        parameters = {"url": submitURL, "apikey": "---API Key---"}
        data = urllib.urlencode(parameters)
        req = urllib2.Request(url,data)
        response = urllib2.urlopen(req)
        output = json.loads(
        print json.dumps(output, indent=4)
        print "Usage: ./submitURL <url>"

No comments:

Post a Comment

Powershell - Gather Mapped Drives from a List of Computer Names

I created the following Powershell script to gather remotely the mapped drives that users had in their profiles.  I had to create the script...