一个简单的彩虹表生成器

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如何强制用户在允许访问活动之前处理对话框?我的许可证代码怎么了?   java ArraysList作为JSON   mysql如何在java中创建包含多个可选where子句的搜索语句?   java如何让Apache Camel在“直接”路径的末尾删除文件?   使用socket在两个Androids之间进行java实时数据传输。IO(websocket)和4G   如何在java中实现两个CORBA服务器之间的通信   会话树xml表示为java对象   java Skype4Java编号swtwin323325   java RecyclerView getAdapterPosition()不工作:第一次单击返回正确位置,第二次单击返回1   java在$TOMCAT/conf/context上为JNDI设置资源。xml   java为什么第二个矩形冲突在第一个矩形冲突时不起作用?   JScrollPane上的java JTextArea未出现在JPanel上   java如何将实现的PriorityQueue打印为字符串?   jpa使用Jersey更新用户角色RESTJava(JAXRS)