Skip to content

Instantly share code, notes, and snippets.

@chadmando
Last active January 13, 2020 21:20
Show Gist options
  • Save chadmando/d6c4ccab01c3588422bd035920a5d7dd to your computer and use it in GitHub Desktop.
Save chadmando/d6c4ccab01c3588422bd035920a5d7dd to your computer and use it in GitHub Desktop.
PowerShell snippet for submitting to urlscan.io - By Nicholas Gipson -- Modified
[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