Advertisement
Guest User

Untitled

a guest
May 26th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. import postfile
  2. host = "www.virustotal.com"
  3. selector = "https://www.virustotal.com/vtapi/v2/file/scan"
  4. fields = [("apikey", "-- YOUR API KEY --")]
  5. file_to_send = open("test.txt", "rb").read()
  6. files = [("file", "test.txt", file_to_send)]
  7. json = postfile.post_multipart(host, selector, fields, files)
  8. print json
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement