GithubHelp home page GithubHelp logo

cambero / pwned-passwords Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stefanscherer/pwned-passwords

0.0 1.0 0.0 37 KB

Docker image to search for pwned passwords

License: GNU General Public License v3.0

Dockerfile 19.82% Shell 80.18%

pwned-passwords's Introduction

pwned-passwords

CircleCI This image on DockerHub

This Docker image can be used to search through the 320 million pwned passwords. See https://haveibeenpwned.com/Passwords for details.

If you want to check your passwords locally in a secure environment, use this Docker image. It will download the huge pwned-passwords files and will extract it for you.

Once the files are downloaded you can run the container again and again with your passwords that you also are currently using. No passwords or SHA1 sums will leave your computer. If you don't trust me, run the container without a network.

Build the image:

docker build -t pwned-passwords .

Usage

Mac / Linux

$ mkdir pwned
$ cd pwned
$ docker run --rm -v $(pwd):/data stefanscherer/pwned-passwords yourpassword
Hash is B48CF0140BEA12734DB05EBCDB012F1D265BED84
Found 1 occurrences in /data/pwned-passwords-1.0.txt

Run the container without network and with read-only mounted volume (works after you have downloaded all files).

$ docker run --rm -v $(pwd):/data:ro --network none stefanscherer/pwned-passwords yourpassword

Paranoid mode

Typing passwords in your terminal stores them in your shell history. You can remove that from your shell history, for example with sed -i 's/docker run.*pwned-passwords.*//' ~/.bash_history on Linux.

You can also run the container interactively to work inside a save place. The commands you type into the container isn't leaked to the host's shell history.

$ docker run --rm -it --entrypoint sh --network none -v $(pwd):/data:ro stefanscherer/pwned-passwords
/ # search secret
Hash is E5E9FA1BA31ECD1AE84F75CAAA474F3A663F05F4
Oh no - pwned! Found 1 occurences in /data/pwned-passwords-1.0.txt
/ # search supersecret123
Hash is 21DDE79B804497E122F38DABC393F8E94F103CA6
Oh no - pwned! Found 1 occurences in /data/pwned-passwords-1.0.txt
/ # search absolutesupersecret123
Hash is 9F14B0EBAE2CF106A8C8998B669BDC75DE5E1A2B
Good news - no pwnage found!
/ # exit

Windows

PowerShell

mkdir pwned
cd pwned
docker run --rm -v "$(pwd):/data" stefanscherer/pwned-passwords yourpass

CMD Shell

mkdir pwned
cd pwned
docker run --rm -v "%cd%:/data" stefanscherer/pwned-passwords yourpass

Acknowledgement

pwned-passwords's People

Contributors

stefanscherer avatar thomasleveil avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.