1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import requests
 
url = 'https://www.virustotal.com/vtapi/v2/file/report'
apikey = 'virustotal 본인 apikey'
resource_value = '검사하고자 하는 value'
params = {'apikey': apikey, 'resource' : resource_value}
response = requests.get(url, params=params)
result = response.json()
ct = 0
 
for x in result["scans"]:
    if result["scans"][x]["detected"]:
        ct = ct + 1
        print("{0:22} : {1}".format(x, result['scans'][x]['result']))
 
print("detected :{0}".format(ct))
cs

 

 

다음과 같이 잘 작동된다.

BELATED ARTICLES

more