What's new in v1.1: I heard your feature requests, now you can generate a wordlist/output with the decoded bases! :)
and Python3
Magic Mode
Now you can decode multi-encoded bases of any pattern in a single shot.
Have you ever stumbled 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! ;)
Installation
$ git clone https://github.com/mufeedvh/basecrack.git
$ cd basecrack
$ pip install -r requirements.txt
$ python basecrack.py -hUsage
To decode a single base encoding from user input:
python basecrack.pypython basecrack.py -b SGVsbG8gV29ybGQhpython basecrack.py -f file.txtpython basecrack.py --magicpython basecrack.py -f file.txt -o output-wordlist.txtAPI
Want to use BaseCrack as a library? We got you covered!
Just put
basecrack in your project's folder and you're ready to go!Example:
# import the BaseCrack class from basecrack.py
from basecrack import BaseCrack
# calling the api function decode() with the encoded base
result = BaseCrack().decode('c3BhZ2hldHRp')
# printing the output
"""
result is tuple where:
result[0] = DECODED STRING
result[1] = ENCODING SCHEME
"""
print('Decoded String: {}'.format(result[0]))
print('Encoding Scheme: {}'.format(result[1]))Decoded String: spaghetti
Encoding Scheme: Base64
SOCIAL SHARE CARD GENERATOR