Created
June 2, 2018 20:30
-
-
Save BanterBoy/601bee776825823ca6c7bf3dcf3de97f to your computer and use it in GitHub Desktop.
Quick script to check an Email address against https://haveibeenpwned.com/api also creates object $Pwned which can then be interrogated further.
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 | |
$PwnedSite = "https://haveibeenpwned.com/api/v2/breachedaccount/" | |
$PwnedAddress = Read-Host "Email Address" | |
Invoke-RestMethod -Uri ($PwnedSite + $PwnedAddress) -OutVariable Pwned |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment