access9/mastercrack
Composer 安装命令:
composer require access9/mastercrack
包简介
A PHP class to help calculate the combination to your masterlock combination lock.
关键字:
README 文档
README
_,,....,,_
,:`,11fLG1i:;;`.
,,101,:ti:;i::f0i;: A PHP class to calculate the
,,0t:: :,C01i combination for a masterlock.
:;0t: :f01;
iLGL; t0Li, Uses a technique by Samy Kamkar
tL0L1 1L01;
1L0Li iL8f;
tL0L; iL0L;
tL0L; iL8Li
1L01t.:..,::,i1::;i,:,8Li
iL,:1:;1tt:;;;,CCf1iiiiLi
.,it1t;,,.,if0fi:,;;iii11:.
,:t,,,,t00tG;G;G;G1GGtii;1fti
:f;,,10f0LGGGGGfGGGGC0LG0t;i1t1
1f;.;GGiG0L0GGGLiGGG0000fG0Gti1t1
:Ltit80C0:ftt0CCCGGG000C1G8880ti1f,
tL1f088800LCLLGLCCCG8GC880808G0t1f1
LtttG888888 ~~~~~~~~~~~ 888880Gt111
:ttC008:i00 MASTERCRACK 0tLC0GCCii:
.::LGC0:fGG ~~~~~~~~~~~ GG:1GLGL;:.
,:i8LCGGGCCCGGGGGGGGG0GGGGGG18i::
,:f0:GGLfCGGGGGGGGGGGt1GGG,0L::
,:f8;GCfLfGGGGG0GG0i;;LGt81;:
::GCG;GGGGGGfLG0000GG0C;i
,;f8f0t0G0:010i0t8fii
'.ii1LG888GLii1:'
Installation
Prerequisites
MasterCrack requires PHP 5.4 or higher.
Composer (directly)
The easiest way to install this tool is via composer
composer require access9/mastercrack
Composer (via your composer.json)
Add the following to your composer.json
"access9/mastercrack": "*"
When either of the two composer installation methods completes, you can run mastercrack with:
vendor/bin/mastercrack
Cloning
Of course you can always clone the repository:
git clone https://github.com/bglover/mastercrack.git
Make sure you get the required vendor dependencies using composer:
composer update -o --prefer-dist
Usage
vendor/bin/mastercrack 1. Find the "First Locked Position" 1. Set the dial to 0. 2. Apply full pressure upward on the shackle as if trying to open it. 3. Rotate dial to the left (towards 10) hard until the dial gets locked. 4. Notice how the dial is locked into a small groove. a. If you're directly between two digits such as 3 and 4, release the shackle and turn the dial left further until you're into the next locked groove. b. However, if the dial is between two half digits (e.g., 2.5 and 3.5), then enter the digit in-between (e.g., 3) into First Locked Position below. First Locked Position: 4 2. Find the "Second Locked Position" Do all of the above again until you find the second digit below 11 that is between two half digits (e.g., 5.5 and 6.5), and enter the whole number (e.g., 7) into Second Locked Position below. Second Locked Position: 7 3. Find the "Resistant Location" 1. Apply half as much pressure to the shackle so that you can turn the dial. 2. Rotate dial to the right until you feel resistance. - Rotate the dial to the right several more times to ensure you're feeling resistance at the same exact location. 3. Enter this number into Resistant Location below. - If the resistance begins at a half number, such as 14.5, enter 14.5. Resistant Location: 27 First: 32 Second: 2, 6, 10, 14, 18, 22, 26, 30, 34, 38 Third: 4, 24
Credits
Only the PHP code was written by me. The formula and help text were taken from the website How to crack any master combination lock in 8 tries or less
access9/mastercrack 适用场景与选型建议
access9/mastercrack 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 53 次下载、GitHub Stars 达 23, 最近一次更新时间为 2015 年 04 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cli」 「masterlock」 「lock crack」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 access9/mastercrack 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 access9/mastercrack 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 access9/mastercrack 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Redis distributed locks for laravel
Simple to use mutex implementation that can use flock, memcache, memcached, mysql or redis for locking
Symfony lock Tarantool store
PhpPlaisio: Named Lock
PhpPlaisio: Core Named Lock
PhpPlaisio: Core Entity Lock
统计信息
- 总下载量: 53
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 23
- 点击次数: 22
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-04-29