Giter VIP home page Giter VIP logo

hasthisbeenpwned's Introduction

Has This Been Pwned ?

A quick and crummy python script, letting you check a password against the haveibeenpwned.com database, without letting the password or hash leave your machine. This can be usefull for compliance, in airgapped machines or when you're stuck in "the field" witht a bunch of hashes and no connection.

Getting Started

Step 1: Clone this repo

$ git clone https://github.com/Veticus/hasthisbeenpwned.git

Step 2: Use pip to install pyspin

$ pip install pyspin

Note: on some OS'es you need to specify that you want to use python3, when using pip. If your system has both python2 and python3 just run pip3 install pyspin

Step 3: Get the list

The file can be found here: Have I Been Pwned: Pwned Passwords I urge you to use the torrent file, to get the file. Alternatively you can download it directly.

$ wget https://downloads.pwnedpasswords.com/passwords/pwned-passwords-sha1-ordered-by-hash-v6.7z

Step 4: Extract the list

Any 7zip compatible unarchivers can do this for you. You probably already know how to do that. If you dont - i recommend 7za or p7zip for this. They're easy to use.

Usage

Now for the good part. Let's say you want to use hunter18 as your next password, but want to check if it has been leaked.

$ python3 hasthisbeenpwned.py hunter18

The script will then show you a little spinner, and once a match is found, tell you in how many leaks the password has appeared.

Here's a little video to see it in action: asciicast

As you can see, the password hunter18 has been in 3468 leaks, submitted to haveibeenpwned.com - Making this a horrible password. Well, amongst other reasons.

Author

  • Tim Engel - Initial work - Veticus

License

This project is licensed under the WTFPL license - see more here: wtfpl.net

Acknowledgments

Badges

Progress

hasthisbeenpwned's People

Watchers

 avatar  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.