Skip to content

jamesridgway/pwnedpasswords.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.
    

About

A bash script for searching Troy Hunt's pwnedpasswords

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published