定制 lovenunu/rainbowphp 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

lovenunu/rainbowphp

Composer 安装命令:

composer require lovenunu/rainbowphp

包简介

Rainbow table generator and exploiter written in PHP 5.5

README 文档

README

RainbowPHP is a set of tools for building rainbow tables and use them to retrieve hash real values.

Install RainbowPHP

To install RainbowPHP, you have to get composer:

$ curl -sS https://getcomposer.org/install |sh

Then create a projet:

$ php composer.phar create-project lovenunu/rainbowphp path/ dev-master

Then install dependencies:

$ php composer.phar install

Build a rainbow table

To build a rainbow table, you have to use the command rainbow:generate:

$ bin/rainbowphp rainbow:generate -m 1 -e 8 -c "::Alpha::::numeric::&é\"'\(-è_çà\)=$ù\*\!\:\;\,\<\>\\" md5

The -m option allow you to precise the minimal size of the string. Default: 1

The -e option allow you to precise the maximal size to generate. Default: 8

The -c option allow you define your own character list to generate the table, you can use ::alpha:: for lowercase alphabet, ::ALPHA:: for uppercase, ::Alpha:: for both and ::numeric:: for numbers. Default: ::Alpha::::numeric::

md5 is the hash method to apply.

For now, here are available methods:

  • md5
  • sha1
  • mysql_password

But you can chain them: if you want to generate the md5 of a md5 of a sha1, type md5,md5,sha1

You can use the option -f to give the file to write in instead of the STDOUT.

Build a rainbow table from a dictionary

To build a rainbow table from a dictionary, use rainbow:generate with the -d option.

Example:

$ bin/rainbowphp rainbow:generate -d my_dictionary.txt sha1

Guess a hash type

You can try to guess a hash type with rainbow:guess

All the possible results will be displayed.

Example:

$ bin/rainbowphp rainbow:guess foobar
The hash 'foo' seems to be not supported
$ bin/rainbowphp rainbow:guess 3858f62230ac3c915f300c664312c63f
1 type of hash has been found for the hash '3858f62230ac3c915f300c664312c63f': md5

Find a hash in a rainbow table

To find a hash, you have to use the rainbow:lookup command with the -r option.

Give the generated table to the -r option, and give the hash as the command argument.

You can use the -d|--deep-search option to find all the results in the table for the hash. If two values have the same hash, only the first found will be return without this option

You can use the -p|--partial option if you only have a partial hash. Combined with -d, you can get all the possible values for the partial hash.

Example:

$ bin/rainbowphp rainbow:lookup -r table.txt 3858f62230ac3c915f300c664312c63f
$ bin/rainbowphp rainbow:lookup -r table.txt -pd 3858f62230ac3c915f300c664312c

统计信息

  • 总下载量: 40
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-v3
  • 更新时间: 2015-05-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固