Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warn user if they hadn't changed API key #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion vt.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@
import json, urllib, urllib2, argparse, hashlib, re, sys
from pprint import pprint


class vtAPI():
def __init__(self):
self.api = '<--------------PRIVATE-API-KEY-GOES-HERE----->'
your_private_api_key = '<--------------PRIVATE-API-KEY-GOES-HERE----->'
assert "KEY-GOES-HERE" not in your_private_api_key
self.api = your_private_api_key
self.base = 'https://www.virustotal.com/vtapi/v2/'

def getReport(self,md5):
Expand Down
5 changes: 4 additions & 1 deletion vtlite.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@
import json, urllib, urllib2, argparse, hashlib, re, sys
from pprint import pprint


class vtAPI():
def __init__(self):
self.api = '<--------------PUBLIC-API-KEY-GOES-HERE----->'
your_public_api_key = '<--------------PUBLIC-API-KEY-GOES-HERE----->'
assert "KEY-GOES-HERE" not in your_public_api_key
self.api = your_public_api_key
self.base = 'https://www.virustotal.com/vtapi/v2/'

def getReport(self,md5):
Expand Down