Skip to content

Commit

Permalink
Update VirusTotal.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
HotCakeX committed Oct 13, 2024
1 parent 2e48661 commit 8da0b5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/Workflowstuff/VirusTotal.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function Get-VirusTotalReport {
[System.String]$VoteURL = "https://www.virustotal.com/api/v3/files/$($JsonResponse.meta.file_info.sha256)/votes"
[System.Collections.Hashtable]$VoteHeaders = @{}
$VoteHeaders.Add('accept', 'application/json')
$VoteHeaders.Add('x-apikey', '9d1701a03cb1836dcc4378a168d48c0f210b17203683822183586845e00686fd')
$VoteHeaders.Add('x-apikey', $ApiKey)
$VoteHeaders.Add('content-type', 'application/json')
$VoteResponse = Invoke-WebRequest -Uri $VoteURL -Method POST -Headers $VoteHeaders -ContentType 'application/json' -Body '{"data":{"type":"vote","attributes":{"verdict":"harmless"}}}'
if ($VoteResponse.StatusCode -ne '200') {
Expand Down

0 comments on commit 8da0b5a

Please sign in to comment.