Skip to content

Commit aa67b7e

Browse files
committed
Update virustotal.py
1 parent c417afa commit aa67b7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

virustotal.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def out(self, xformat):
5656
self._output = "json"
5757

5858
# Sending and scanning files
59-
def filescan(self, file):
59+
def scanfile(self, file):
6060
url = self.api_url + "file/scan"
6161
files = {'file': open(file, 'rb')}
6262
headers = {"apikey": self.api_key}
@@ -80,7 +80,7 @@ def filescan(self, file):
8080
print 'generic exception: ' + traceback.format_exc()
8181

8282
# Sending and scanning URLs
83-
def urlscan(self, link):
83+
def scanurl(self, link):
8484
url = self.api_url + "url/scan"
8585
parameters = {"url": link, "apikey": self.api_key}
8686
data = urllib.urlencode(parameters)

0 commit comments

Comments
 (0)