yidas/brute-force-attacker
Composer 安装命令:
composer require yidas/brute-force-attacker
包简介
Brute-force attack tool for generating all possible string and executing function
README 文档
README
Brute Force Attacker for PHP
Brute-force attack tool for generating all possible string and executing function
OUTLINE
DEMONSTRATION
\yidas\BruteForceAttacker::run([ 'length' => 2, 'callback' => function ($string) { echo "{$string} "; }, ]); /* Result AA AB AC ... AX AY AZ Aa Ab Ac ... Ax Ay Az A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 BA ... */
Generates 0-9 string and matches target string:
\yidas\BruteForceAttacker::run([ 'length' => 6, 'charMap' => range('0', '9'), 'callback' => function ($string, $count) { if ($string=="264508") { echo "Matched `{$string}` with {$count} times\n"; return true; } }, ]);
REQUIREMENTS
This library requires the following:
- PHP 5.4.0+|7.0+|8.0+
INSTALLATION
Run Composer in your project:
composer require yidas/brute-force-attacker
Then you could call it after Composer is loaded depended on your PHP framework:
require __DIR__ . '/vendor/autoload.php'; use yidas\BruteForceAttacker;
USAGE
Call the run() static method and bring in the options to start:
\yidas\BruteForceAttacker::run(array $options)
Options
Setting all options including skip mechanism:
$hash = '5b7476628919d2d57965e25ba8b2588e94723b76'; \yidas\BruteForceAttacker::run([ 'length' => 8, 'charMap' => array_merge(range('A', 'Z'), range('a', 'z'), range('0', '9'), ["+", "/"]), 'callback' => function ($key, & $count) use ($hash) { if (sha1($key) == $hash) { echo "Matched `{$key}` | Hash: {$hash}\n"; exit; } // Display key every some times if ($count == 0 || $count > 10000000) { echo "{$key} | " . date("H:i:s") . "\n"; $count = 0; } }, 'startFrom' => 'AABAAAAA', // Start from `AABAAAAA` -> `AABAAAAB` ... 'skipLength' => 8, // Select 8st character for skipCount 'skipCount' => 1, // Start from `B` (Skip 1 arrangement form charMap) ]);
length
String length for generating
charMap
Character map used to generate strings
callback
Customized function for performing brute-force attack
function (string $key, integer & $count)
startFrom
Start running from the givien charset string
skipLength
String length for skipping based on skipCount setting
skipCount
Skip count of the charMap based on skipLength
yidas/brute-force-attacker 适用场景与选型建议
yidas/brute-force-attacker 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.99k 次下载、GitHub Stars 达 8, 最近一次更新时间为 2019 年 07 月 31 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「tool」 「brute force attack」 「cryptanalytic」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 yidas/brute-force-attacker 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 yidas/brute-force-attacker 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 yidas/brute-force-attacker 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Backend Google Sign On for Magento 2
An app setting manager tool for laravel nova
Tresholds Governor, aims to facilitate the protection of authentication against brute force and dictionary attacks
Peerj User Security Bundle
CCDN User Security Bundle
The Message Submission Agent Diagnostics tool (msadiag) facilitates testing the compatibility of third party message submission agents.
统计信息
- 总下载量: 1.99k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 16
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-07-31