Giter Site home page Giter Site logo

password-generators's Introduction

Data-Driven Password Guessing Tools

These are a collection of data driven (based on data) password-guessing tools written in Python. The tools will get smarter as I update them.
There are a number of datasets out there but here, I used the most common one 'rockyou.txt' which can be downloaded from here

Use pre-trained

2-gram model

The model is based on bi-gram, collects a sequence of two characters, and calculates probabilities. It has embedded passwords and calculates probabilities on the fly as the number of passwords is small relatively.

Run 'python3 password_generator_v1.py m n' ( n passwords of length m )

4-gram model

This is a better version that is an extention of the first one. It is based on 4-gram.

-Download a trained 4-gram dic dump (pkl file) here
-pip3 install requirments.txt # (it just contains numpy in case you dont have it)
-python3 password_generator_v1.py m n # n amount of passwords with length m

Train your own n-gram model

If you want to train your own model, with you own database:

-train_n_gram.py -o 'output path' -n 'lenght n- gram default is 4' -t 'path to trainset, default is rockyou.txt'
-It outputs a pkl dump of normalized dict file
-For inference ngram_inference.py file above
-To get help, type in python train_n_gram.py -h
-To run the trained, python3 ngram_inference.py m n m n # n amount of passwords with length m


To be posted soon


-Training your own dataset for all methods
-PASSGAN inference based on the [paper](https://arxiv.org/abs/1709.00440)
-RNN and LSTM-based password guessing for inference
-GPT-based password guessing for inference

password-generators's People

Contributors

mube1 avatar

Watchers

 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.