CTF思路
点击放大

<h1 align="center">BaseCrack</h1>
<h4 align="center">Decoder For Base Encoding Schemes</h4>
<p align="center">
<img src=" title="" alt="">
<a href=" alt="GitHub license" src="
</p>
BaseCrack is a tool written in Python that can decode all alphanumeric base encoding schemes. This tool can accept single user input, multiple inputs from a file, input from argument, multi-encoded bases, bases in image EXIF data, bases on images with OCR and decode them incredibly fast.
For a basic demo, try the Web Interface that uses BaseCrack's API.
<details>
<summary><strong>Fun Fact!</strong></summary>
<br>
I initially made this after being fed up with lame CTF challenges with multi-encoded bases. Now some of them started doing that in Steganography challenges so I automated that too smh!
</details>
$ git clone
$ cd basecrack
$ pip3 install -r requirements.txt
$ python3 basecrack.py -h
NOTE: Python3 is recommended to use!
Linux:
$ sudo apt-get update
$ sudo apt-get install tesseract-ocr libtesseract-dev
MacOS:
$ brew install tesseract
Windows:
OCR Detection is implemented with Tesseract and Windows requires installation of the Tesseract executable. Installing the dependencies from requirements.txt which includes pytesseract should install it. If in case it doesn't, here's how you can set it up:
1. First check whether you have it installed or not in the Program Files/Program Files (x86) under the Tesseract-OCR directory.
2. If there is, give that path in the config.json and you're all set! If you don't have it, install it from here and set the path in config.json.
Tesseract Docs:
NOTE: I haven't completely tested this tool on Windows so if you stumble upon any issues, please open an issue.
Get a list of all the arguments:
python3 basecrack.py -h
To decode a single base encoding from user input:
python3 basecrack.py
To decode a single base encoding from argument (-b/--base):
python3 basecrack.py -b SG
To decode multiple base encodings from a file (-f/--file):
python3 basecrack.py -f file.txt
Magic Mode: To decode multi-encoded base of any pattern (-m/--magic):
python3 basecrack.py --magic
To input an image for EXIF/OCR detection mode (-i/--image):
python3 basecrack.py -i image.jpg (--exif/--ocr)
EXIF Data: To decode bases in image EXIF data (-e/--exif):
python basecrack.py -i image.jpg --exif
OCR Base Detection: To decode bases on image with OCR detection (-c/--ocr):
python basecrack.py -i image.jpg --ocr
To generate a wordlist/output with the decoded bases (-o/--output):
python basecrack.py -f file.txt -o output-wordlist.txt
Now you can decode multi-encoded bases of any pattern in a single shot.
Have you e upon that one lame CTF challenge that gives you an encoded string which is just encoded over and over with Base64, Base91, Base85 and so on? Just give that to BaseCrack and you're done with it! ;)
Want to test it out? Just give it this input:
and see for yourself! :)
BaseCrack can now be used as a library! Just import the BaseCrack() class and call the decode() function.
See API.
Want to use BaseCrack as a library? We got you covered!
Just put basecrack in your project's directory and you're ready to go!
Example:
Output:
Ways to contribute
Before you open a PR, make sure e's good by running the tests:
Unit Tests: (Thanks )
python3 -m unittest discover -v -s tests
开发语言:Python
Star 数:586
该项目属于CTF思路方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕Decode All Bases - Base Scheme Decoder展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。
从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。
1. 下载源码压缩包,解压到本地环境。
2. 根据项目类型准备对应的运行环境与依赖。
3. 按照 README 中的步骤完成配置与部署。
4. 在隔离的测试环境中运行验证,避免影响生产系统。
本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。
| 资源标题 | basecrack - Decode All Bases - Base Scheme Decoder |
| 所属分类 | CTF思路 |
| 发布作者 | admin |
| 发布时间 | 2026-10-05 23:40:30 |
| 下载权限 | 免费下载 |
| 附件数量 | 2 个下载链接 |
| 浏览次数 | 70 |
| 讨论数量 | 0 |
| 主题状态 | 正常讨论中 |