Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.23 KB

README.md

File metadata and controls

40 lines (30 loc) · 1.23 KB

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.