Skip to content

Instantly share code, notes, and snippets.

@mikebronner
Last active March 25, 2019 20:51
Show Gist options
  • Save mikebronner/2273cacd50658b7928454d392a000f23 to your computer and use it in GitHub Desktop.
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.
#!/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