Skip to main content
  1. Blog Posts/

Finding pwned emails with HIBP and Powershell

·116 words·1 min

This small project uses Troy Hunts’ Have I Been Pwned fantastic (API) service along side a PS module which parses the JSON from the API. The purpose of this script is to read in emails addresses from file and then check them against HIBP to see if they are apart of any breaches or public pastes.

You will need a API key to make use of this API, but they are inexpensive. This script came about because I wanted to generate a custom report on a number of emails and because it was fun to make.

The script makes a number of CSVs which detail the breaches found and if there are any public pastes found.

Output from the script.
Joshua Robbins
Author
Joshua Robbins
I write about the things I’m building, learning, breaking and fixing across Computer Science and Cyber Security.