コマンドライン で Virus totalへファイルを送る方法
- VirusTotalにアカウントを作成し, 自分のAPIキーを調べておく.
- ファイル $filename を提出するには, curl -s -F "apikey=$apikey" -F "file=@$filename" https://www.virustotal.com/vtapi/v2/file/scan
- レポートを見るには, SHA256値を openssl dgst -sha256 等で計算させ, curl -s -F "apikey=$apikey" -F "resource=$sha256sum" https://www.virustotal.com/vtapi/v2/file/report
- 判定結果の数は "positives:" の要素