Using Have I Been Pwned to see if your email address has been breached? Most of us have more than one email address which can make plunking each address into the site painful. But, fear not, there’s an API here
There’s a million ways to use it and a crappy little bash script works just fine.
File with email addresses
Create a text file with one email address per line. I called mine emailaddys. Something like:
Write a one-liner like this. I called mine check_haveibeepwned.sh:
curl -A "Some identifying user agent" https://haveibeenpwned.com/api/v2/breachedaccount/$1?truncateResponse=true
Loop it all together
for addy in `cat emailaddys`;do ./check_haveibeepwned.sh $addy; sleep 2;done
Note: The rate limiting is not specified in the API docs, but I found that
sleep 2 was necessary to avoid tripping it. A User Agent is also required.
Did it work?
Breaches look like this (that’s 4 separate breaches):
Clean addys return nothing at all.
ExpressVPN is one the highest rated and fastest VPNs. Debian strains of Linux such as Ubuntu, Linux Mint, and Debian itself are the most widely used desktop distros in the world. Putting these two things together provides fast downloads with a very high degree of anonymity and privacy.
ExpressVPN supports Windows, Linux, and macOS. The Windows and macOS versions are fairly similar for both, but the Linux version is a wide departure. It is a command line tool instead of a polished graphical application and comes in 32-bit and 64-bit flavours to accommodate both types of processors typically seen in PCs today. You can run the following command to see what the bitness of your Linux distribution is:
Anything with ‘64’ in the output is running a 64-bit Linux distribution and you should use the 64-bit ExpressVPN download. If you’re running a 32-bit distribution you’ll likely see something with ‘i386’ in the output. For example, my 64-bit system looks uname output is this (note the 64):
While Ubuntu, Linux Mint, and Debian are all based on the same package manager system, there are some differences in installation. I used 64-bit versions of Ubuntu 16.10, Linux Mint 18, and Debian 8.6.0 for this article.
ExpressVPN is available from http://expressvpn.com. You’ll need to login to your ExpressVPN account and navigate to the setup page.
Linux should be preselected for you so you’ll just have to ensure you get one of the Ubuntu downloads.
Ubuntu 16.10 installation
Continue reading “Using ExpressVPN with Ubuntu, Linux Mint or Debian Linux”