0.2.1 |
|
---|---|
0.2.0 |
|
0.1.1 |
|
0.1.0 |
|
#5 in #cracker
每月200次下载
45KB
1K SLoC
BaseCracker
BaseCracker是一个编码、解码和解密编码数据的工具。它在破解CTF中的某些随机编码字符串时非常有用。
[!重要] 已存档,因为Ciphey 在此方面已经好得多...
安装
从crates.io
cargo install basecracker
当前支持的编码
- base2 / 二进制(用8填充)
- base10 / 十进制
- 十六进制
- base32 (RFC4648)
- base36
- base58
- base62
- base64
- base85
选项
Encode, Decode and Crack encoded data, useful to crack some random encoded strings in CTFs.
Usage: basecracker [OPTIONS] <COMMAND>
Commands:
encode Encode given plaintext/file using the specified bases
decode Decode given cipher/file using the specified bases
crack Crack given cipher/file
help Print this message or the help of the given subcommand(s)
Options:
-q, --quiet
Quiet mode, don't print anything except results
-v, --verbose
Verbose mode
-m, --min-printable-percentage <MIN_PRINTABLE_PERCENTAGE>
Minimum printable percentage to consider a result valid [default: 0.9]
-n, --no-newline
Do not output the trailing newline
-h, --help
Print help
-V, --version
Print version
示例
$ basecracker encode "Awsome CTF tool" b64,b85,hex,b32,b62,b58
2eSHB3WFgFiySPWP47oyrMrT6Vb4WXTEv5ZyWdmWWJNJ4H65n2auRW4ZFutQPtXegrNimoCAeUfiQwMAnb4UYg6grcK2WUCTL9LquGa4564JBJK2jAbRfPVjKx9sCgUVdrsUfyMuMR6MipKYERRr
$ basecracker decode 2eSHB3WFgFiySPWP47oyrMrT6Vb4WXTEv5ZyWdmWWJNJ4H65n2auRW4ZFutQPtXegrNimoCAeUfiQwMAnb4UYg6grcK2WUCTL9LquGa4564JBJK2jAbRfPVjKx9sCgUVdrsUfyMuMR6MipKYERRr b64,b85,hex,b32,b62,b58 -r
Awsome CTF tool
$ basecracker crack 2eSHB3WFgFiySPWP47oyrMrT6Vb4WXTEv5ZyWdmWWJNJ4H65n2auRW4ZFutQPtXegrNimoCAeUfiQwMAnb4UYg6grcK2WUCTL9LquGa4564JBJK2jAbRfPVjKx9sCgUVdrsUfyMuMR6MipKYERRr
Recipe: base58,base62,base32,hex,base85,base64
Awsome CTF tool
详细模式
如果您想查看编码/解码/解密的步骤,这将很有用。
$ basecracker -v crack 2eSHB3WFgFiySPWP47oyrMrT6Vb4WXTEv5ZyWdmWWJNJ4H65n2auRW4ZFutQPtXegrNimoCAeUfiQwMAnb4UYg6grcK2WUCTL9LquGa4564JBJK2jAbRf
PVjKx9sCgUVdrsUfyMuMR6MipKYERRr
Recipe: base58,base62,base32,hex,base85,base64
Applying base58: 9Y91a8AfMC1fYZFb6THWx0VBVu1R6BPhFsVhmAksMcKNLIibCXXnDGACS9woBiiuUhmwYgcEHrO4ZjPlvMVUTBxuOkLovyLgGTL2MOCZml9y
Applying base62: GUYTIMZUMQ2TMNZQGU3DMYZXGA3TMNTGGRSTMYRXGY2TQNTGGUYTMNRVG43DINTCGU3DMYZXGA3WEMRV
Applying base32: 51434d5670566c70766f4e6b76586f516657646b566c707b25
Applying hex: QCMVpVlpvoNkvXoQfWdkVlp{%
Applying base85: QXdzb21lIENURiB0b29s
Applying base64: Awsome CTF tool
Awsome CTF tool
许可证
许可协议为以下之一
- Apache许可证,版本2.0 (LICENSE-APACHE 或 http://www.apache.org/licenses/LICENSE-2.0)
- MIT许可证 (LICENSE-MIT 或 http://opensource.org/licenses/MIT)
任选其一。
贡献
除非您明确说明,否则您有意提交给作品作为Apache-2.0许可证中定义的任何贡献,都应如上所述双重许可,不附加任何其他条款或条件。
依赖关系
~2–2.6MB
~51K SLoC