Last active
March 25, 2019 20:51
-
-
Save mikebronner/2273cacd50658b7928454d392a000f23 to your computer and use it in GitHub Desktop.
Check a file with a list of email addresses (one email address per line) to see if you have been owned, and save the results in a file.
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
#!/bin/bash | |
while read | |
do | |
addy=$(tr -d '\r' <<< "$REPLY") | |
response=$(curl --silent https://haveibeenpwned.com/api/v2/breachedaccount/$addy?$ | |
echo "$addy,'$response'" | |
sleep 2 | |
done < membership.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment