Last active
January 13, 2020 21:20
-
-
Save chadmando/d6c4ccab01c3588422bd035920a5d7dd to your computer and use it in GitHub Desktop.
PowerShell snippet for submitting to urlscan.io - By Nicholas Gipson -- Modified
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
$uri = "https://urlscan.io/api/v1/scan/" | |
$apikey = #insert secure method to retreive api key | |
$url = #insert suspect url here | |
$header = @{ | |
"API-Key" = $apikey | |
} | |
$body = @{ | |
"url"=$url | |
} | |
$Invoke = Invoke-WebRequest -Headers $header -Method Post -Body $body -Uri $uri -ContentType application/json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment