一个简单的彩虹表生成器

leprechaun的Python项目详细描述


一个用python 3编写的简单彩虹表生成器。

概要

py是一个简单的python程序,用于生成加密 彩虹桌。这个脚本可以使用md5、sha1、sha256和 SHA512算法。leprechaun可以散列任意数量的明文文件, 只要它们在同一个目录中。或者,如果你是个正常人 如果没有一个包含单词列表的大目录,您可以散列一个文件。 选择权在你!

安装

leprechaun可以使用pip从pypi下载,就像 其他一切!

$ mkdir DIRECTORY
$ cd DIRECTORY
$ virtualenv -p python3 .
$ pip install leprechaun

用法

leprechaun [-h][-g][-l LENGTH] [-d][-o OUTPUT] [-m][-s][-s2][-s5] WORDLIST

参数:

(Positional Arguments)
WORDLIST                          The file name of the wordlist to hash,
                                  without the file extension

(Optional Arguments)
-h, --help                        Show this help message and exit

(Wordlist Arguments)
-f, --wordlist-folder             Hash all of the plaintext files in a
                                  folder, rather than a single file. The
                                  name of the folder will be set by the
                                  WORDLIST argument
-g, --generate-wordlist           Generate a wordlist dynamically instead
                                  of using a pre-built one; the name of the
                                  dynamically generated wordlist will be set
                                  by the WORDLIST argument
-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

示例

下面是一些使用leprechaun.py的简单示例。虽然不夸张 编译用例,程序本身很容易理解 自己的。

# Create a rainbow table using the MD5 hashing algorithm.
leprechaun /path/to/your/wordlist.txt

# Create a rainbow table using the SHA-1 hashing algorithm.
leprechaun -s /path/to/your/wordlist.txt

# Create a rainbow table using the SHA-1 hashing algorithm, saving the
# output in an SQLite database.
leprechaun -s -d /path/to/your/wordlist.txt

# Create a rainbow table using the SHA-256 hashing algorithm, hashing all of
# the plaintext files in a given directory, saving the output in an SQLite
# database.
leprechaun -s2 -d -f /path/to/your/wordlists

# Create a rainbow table using the SHA-256 hashing algorithm, hashing all of
# the plaintext files in a given directory, saving the output in an SQLite
# database named "patty"
leprechaun -s2 -d -o patty -f /path/to/your/wordlists

字表

因为任何一个好的单词表都包含几百万行单词 百万行的任何东西都占用了很大的空间 已分发的单词列表不再被分发。但别担心!我已经 把同一个单词表上传到网上,让大家都喜欢。你可以 找到它here

许可证

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.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
我们可以使用java for loop with switch语句。。?   java如何从具有循环关系的数据集生成树?   使用s:mvcUrl标记时java Spring启动问题   javascript Wicket调色板水平滚动条在firefox中不显示   java如何清理Maven插件绑定?   java将文件从设备发送到计算机不起作用(文件被破坏)   Java GPU编程的性能   java字符串标记器问题   连接Java LDAP断开连接   java Android GridView将无法确定正确的位置   java AlarmManager在指定时间未显示toast消息   MVC中的java测试外观|断言返回类型   logcat上的java Android运行时错误   java Building Workspace在Eclipse中遇到错误   堆栈溢出尾部递归遗传算法抛出“awteventque0”java。StackOverflowerr语言   java ArrayOutOfBounds测试代码不工作   java有没有像Moodle这样流行的课程管理系统?   java如何从jsp获取xml文件作为响应