Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import postfile
- host = "www.virustotal.com"
- selector = "https://www.virustotal.com/vtapi/v2/file/scan"
- fields = [("apikey", "-- YOUR API KEY --")]
- file_to_send = open("test.txt", "rb").read()
- files = [("file", "test.txt", file_to_send)]
- json = postfile.post_multipart(host, selector, fields, files)
- print json
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement