summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2015-02-07 20:35:45 -0700
committermo khan <mo@mokhan.ca>2015-02-07 20:35:45 -0700
commit941027693b8392cc9068fc81969686f0856f3056 (patch)
treedbf8808da0662aa4e9051ea5422662d7826a420b
parent2bbe4091b513ab40b0540a1315c8946ade21b476 (diff)
add example of virus total v2 api.
-rw-r--r--bin/virus_total.sh7
1 files changed, 4 insertions, 3 deletions
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 .