728x90
728x90
728x90
import requests, os, pprint

def Filescan(file):
    files = {'file': open(file, 'rb')}
    response = requests.post(virustotal_url, files=files, params=params)
    return response.json()

virustotal_url = "https://www.virustotal.com/vtapi/v2/file/scan"
api_key = "" # Your api_key
params = {'apikey': api_key}

filepath = "."+os.path.sep
filename = ""
file = filepath+filename

result = Filescan(file)
pprint.pprint(result)

 

728x90
728x90

'ETC > Script' 카테고리의 다른 글

Get Alexa Topsites on Alexa  (0) 2019.09.15
Get Verified Phishing url on Phishtank  (0) 2019.09.14
AES CBC-128 with iv in Python  (0) 2019.08.21

+ Recent posts