Skip to content

Instantly share code, notes, and snippets.

View sss's full-sized avatar

SASAKI Suguru sss

  • Kyoto, Japan
View GitHub Profile
#!/usr/bin/env ruby
require 'rubygems'
require 'json'
require 'rest-client'
require 'mechanize'
agent = Mechanize.new
res = agent.post( 'https://www.virustotal.com/api/get_file_report.json',
'key' => 'your key',
'resource' => 'file hash(md5/sha1/sha256)' )