leprechaunA simple rainbow table generator#############
Leprechaun.py
#############
A simple rainbow table generator written in Python.
********
Synopsis
********
Leprechaun.py is a simple Python program used for generating cryptographic
rainbow tables. This script can compute hashes using the MD5, SHA1, SHA256 and
SHA512 algorithms. Leprechaun.py can use either the default wordlist, or a user
supplied wordlist, optionally appending an arbitrary number of digits to the
word before computing the hash.
*****
Usage
*****
``leprechaun [-h] [-n NUMBER] [-w WORDLIST] [-g] [-l LENGTH] [-o OUTPUT] [-d] [-m] [-s] [-s2] [-s5]``
**arguments:** ::
(Optional Arguments)
-h, --help Show this help message and exit
-n NUMBER, --number NUMBER The number of integers to append to the end of the password string (default=0)
(Wordlist Arguments)
-w WORDLIST, --wordlist WORDLIST The wordlist to hash (default=wordlist.txt)
-g, --generate-wordlist Generate a wordlist automatically
-l LENGTH, --word-length LENGTH The maximum length of the words to be generated (default=8)
(Output Arguments)
-o OUTPUT, --output OUTPUT Name of the rainbow table file, without the file extension (default=rainbow)
-d, --use-database Save the output to an SQLite DB instead of a plaintext file
(Hashing Arguments)
-m, --md5 Generate MD5 hashes of given passwords (default)
-s, --sha1 Generate SHA1 hashes of given passwords
-s2, --sha256 Generate SHA256 hashes of given passwords
-s5, --sha512 Generate SHA512 hashes of given passwords
********
Examples
********
Below are a few simple examples on using Leprechaun.py. While not an exaustive
compilation of use cases, the program itself is quite simple to figure out on
one's own. ::
# Generate MD5 hashes from the included wordlist.
leprechaun
# Generate SHA1 hashes from the included wordlist.
leprechaun -s
# Generate SHA1 hashes from the included wordlist, saving the output to an
# SQLite DB.
leprechaun -s -d
# Generate SHA1 hashes from your own wordlist.
leprechaun -s -w YOUR_WORDLIST.txt
# Generate SHA1 hashes from your own wordlist, appending 2 digits to the word
# before hashing, and outputting to your own rainbow table file.
leprechaun -s -n 2 -w YOUR_WORDLIST.txt -o YOUR_RAINBOW_TABLE
*******
License
*******
The MIT License (MIT)
Copyright (c) 2013 Zach Dziura
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.Zach Dziuraaa2608dbe2de5336627971fb55338432d695bd9b2.0.1