GithubHelp home page GithubHelp logo

5l1v3r1 / phrases Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tampe125/phrases

0.0 1.0 0.0 20 KB

Create passphrases based on a input file

License: GNU General Public License v3.0

Python 100.00%

phrases's Introduction

Phrases generator

How can we create password candidates for passphrases?
Well, we can scrape Twitter to harvest some slang words, but what if the user was using quotes from a text (a book or a movie)?
For example, what if the user chose a password like this:
godcreatedtheheaven

20 chars are simply too many for a brute-force attempt. What if we start to create phrases containing N words, based on a specific text?
For example, using a wordlist based on the Bible and with phrases containing from 4 to 7 words lead to these craked passwords:

25 withhisstripeswearehealed
23 amnotashamedofthegospel
22 rejoiceinthelordalways
21 wonderswithoutnumbers
20 theearthisthelords11
20 lordofheavenandearth
20 fearnotiwillhelpthee
20 andthewordwaswithgod
19 onehourwiththebeast
19 hardennotyourhearts

Requirements

No external libraries are required.

Usage

python phrases.py [OPTIONS] original_file.txt
The script will start to crawl the original text and output phrases with the selected amount of words, one per line.
For example, running the following command on the Bible, will produce something like this:

python phrases.py -w 4 -o bible4words.txt bible.txt

In the beginning God
the beginning God created
beginning God created the
God created the heaven
created the heaven and
the heaven and the
heaven and the earth

From this base text, you can tweak the final output using Hashcat rules.

Options

Phrases Generator has some options for fine tuning:

-o OUTFILE --outfile OUTFILE  Output file (default to phrases.txt)
-w WORDS   --words   WORDS    Number of words for each row (default to 4)

Bug report

Feel free to open an issue and, if confirmed, create a Pull Request!

phrases's People

Contributors

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