From 941027693b8392cc9068fc81969686f0856f3056 Mon Sep 17 00:00:00 2001 From: mo khan Date: Sat, 7 Feb 2015 20:35:45 -0700 Subject: add example of virus total v2 api. --- bin/virus_total.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/virus_total.sh b/bin/virus_total.sh index 6c0978a..52ccbfb 100644 --- a/bin/virus_total.sh +++ b/bin/virus_total.sh @@ -1,5 +1,6 @@ API_KEY=$VIRUS_TOTAL_API_KEY -HASH=8a468d8671ededf24e04628913acc82665f3c14ad898cda33687716a3fed1c14 +CLEAN_SHA=8c4d49445d0050884e0703571f187338b10c7836b08ed822cc5fc6cf15ac76b0 +MAL_SHA=000c78b44246fe6a0016dd3bb67802abb200509d943a1ea3d749b0b11d768cf4 -#curl -vvv https://www.virustotal.com/vtapi/v2/file/report -X POST --form resource="$HASH" --form apiKey="$API_KEY" -curl https://www.virustotal.com/api/get_file_report.json -X POST --form resource="$HASH" --form key="$API_KEY" | jq . +#curl https://www.virustotal.com/api/get_file_report.json -X POST --form resource="$MAL_SHA" --form key="$API_KEY" | jq . +curl https://www.virustotal.com/vtapi/v2/file/report --form apikey=$API_KEY --form resource=$MAL_SHA | jq . -- cgit v1.2.3