A bash script for searching Troy Hunt's pwnedpasswords
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis.yml
CHANGE.md
LICENSE.md
Makefile
README.md
pwnedpasswords.sh

README.md

pwnedpasswords.sh

Build Status

A simple bash script for searching Troy Hunt's pwnedpasswords API.

pwnedpasswords.sh

Usage

This is a simple bash script for searching Troy Hunt's pwnedpassword API using the k-anonymity algorithm

Usage

  ./pwnedpasswords.sh [options] PASSWORD

Options:

    -h, --help    Shows this message

Arguments:

        PASSWORD    Provide the password as the first argument or leave blank to provide via STDINT or prompt

Functionality

This is a very simple script that allows you to check if a password has been pwned. You can provide the password via one of the following options.

  • Provide a password as an argument:
    $ /pwnedpasswords.sh "P@ssw0rd"
    
  • Provide a password via stdin:
    $ echo "P@ssw0rd" | ./pwnedpasswords.sh
    
  • Provide a password via explicit prompt:
    $ ./pwnedpasswords.sh
    Enter password:
    This password has appeared 47205 times in data breaches.