All Projects β†’ mufeedvh β†’ Basecrack

mufeedvh / Basecrack

Licence: mit
Decode All Bases - Base Scheme Decoder

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Basecrack

Name That Hash
πŸ”— Don't know what type of hash it is? Name That Hash will name that hash type! πŸ€– Identify MD5, SHA256 and 3000+ other hashes β˜„ Comes with a neat web app πŸ”₯
Stars: ✭ 540 (+175.51%)
Mutual labels:  infosec, ctf, ctf-tools, tool
Security Tools
Collection of small security tools, mostly in Bash and Python. CTFs, Bug Bounty and other stuff.
Stars: ✭ 509 (+159.69%)
Mutual labels:  infosec, ctf, ctf-tools, bugbounty
Crypton
Library consisting of explanation and implementation of all the existing attacks on various Encryption Systems, Digital Signatures, Key Exchange, Authentication methods along with example challenges from CTFs
Stars: ✭ 995 (+407.65%)
Mutual labels:  cryptography, ctf, ctf-tools
Karkinos
Penetration Testing and Hacking CTF's Swiss Army Knife with: Reverse Shell Handling - Encoding/Decoding - Encryption/Decryption - Cracking Hashes / Hashing
Stars: ✭ 115 (-41.33%)
Mutual labels:  encoder-decoder, ctf, ctf-tools
CTF-CryptoTool
CTF-CryptoTool is a tool written in python, for breaking crypto text of CTF challenges. It tries to decode the cipher by bruteforcing it with all known cipher decoding methods easily. Also works for the cipher which does not have a key.
Stars: ✭ 38 (-80.61%)
Mutual labels:  decoder, ctf, ctf-tools
haiti
πŸ”‘ Hash type identifier (CLI & lib)
Stars: ✭ 287 (+46.43%)
Mutual labels:  infosec, ctf, ctf-tools
lit-bb-hack-tools
Little Bug Bounty & Hacking Toolsβš”οΈ
Stars: ✭ 180 (-8.16%)
Mutual labels:  infosec, bugbounty, ctf-tools
Ciphey
⚑ Automatically decrypt encryptions without knowing the key or cipher, decode encodings, and crack hashes ⚑
Stars: ✭ 9,116 (+4551.02%)
Mutual labels:  cryptography, ctf, ctf-tools
Pentesting toolkit
πŸ΄β€β˜ οΈ Tools for pentesting, CTFs & wargames. πŸ΄β€β˜ οΈ
Stars: ✭ 1,268 (+546.94%)
Mutual labels:  cryptography, infosec, ctf
Jwtxploiter
A tool to test security of json web token
Stars: ✭ 130 (-33.67%)
Mutual labels:  ctf, ctf-tools
Stegbrute
Fast Steganography bruteforce tool written in Rust useful for CTF's
Stars: ✭ 134 (-31.63%)
Mutual labels:  ctf, ctf-tools
Print My Shell
Python script wrote to automate the process of generating various reverse shells.
Stars: ✭ 140 (-28.57%)
Mutual labels:  ctf, ctf-tools
Ancypwn
Script to setup pwn environment for CTF with Docker
Stars: ✭ 126 (-35.71%)
Mutual labels:  ctf, ctf-tools
Defaultcreds Cheat Sheet
One place for all the default credentials to assist the Blue/Red teamers activities on finding devices with default password πŸ›‘οΈ
Stars: ✭ 1,949 (+894.39%)
Mutual labels:  infosec, bugbounty
Autosetup
Auto setup is a bash script compatible with Debian based distributions to install and setup necessary programs.
Stars: ✭ 140 (-28.57%)
Mutual labels:  infosec, bugbounty
Asnlookup
Leverage ASN to look up IP addresses (IPv4 & IPv6) owned by a specific organization for reconnaissance purposes, then run port scanning on it.
Stars: ✭ 163 (-16.84%)
Mutual labels:  infosec, bugbounty
Pwnshop
Exploit Development, Reverse Engineering & Cryptography
Stars: ✭ 167 (-14.8%)
Mutual labels:  cryptography, infosec
Gf Secrets
Secret and/ credential patterns used for gf.
Stars: ✭ 96 (-51.02%)
Mutual labels:  infosec, bugbounty
Proof Of Concepts
A little collection of fun and creative proof of concepts to demonstrate the potential impact of a security vulnerability.
Stars: ✭ 148 (-24.49%)
Mutual labels:  infosec, bugbounty
Yar
Yar is a tool for plunderin' organizations, users and/or repositories.
Stars: ✭ 174 (-11.22%)
Mutual labels:  infosec, tool

basecrack

BaseCrack

Decoder Tool For Base Encoding Schemes

version GitHub license Twitter

basecrack tool


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.

Decode Base16, Base32, Base36, Base58, Base62, Base64, Base64Url, Base85, Ascii85, Base91, Base92 and more with the best base encoding scheme decoding tool in town. It's useful for CTFs, Bug Bounty Hunting, and Cryptography (NOTE: Base Encoding is not an "Encryption" hence it doesn't fall under the Cryptography category, it's useful as base scheme encoding are often used in cryptography tools/projects/challenges).

Fun Fact!
I initially made this after being fed up with lame AF CTF challenges with multi-encoded bases in Cryprography challenges and now some of them started doing that in Steganography challenges so I automated that too smh!

Jump to Usage


Changelog

What's new in v3.0:

  • Decode bases in image EXIF data. πŸ“Έ
  • Decode bases on images with OCR detection. πŸ”Ž
  • Better Accuracy. (+added charset validation along with replacement char checks) πŸ’―
  • Magic Mode now works with File Read mode. πŸ”₯
  • Magic Mode now works with Wordlist Generator. πŸ”₯

What's new in v2.0:

  • Now BaseCrack supports both Python2 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! ;)

basecrack magic mode

Want to test it out? Just give it this input:

IX([email protected]<,*TFE]IT^zdINAb9EVbp,e<u=O6nN)/u+MTnU;Fo#VvQ&cK;mLZI#Jbdook<O{W#+gY%ooe#6pTkTa.9YPU8Uc=pl9BhSM9%kISw2k:8..u/6F2BwNndPZ2o#7NHNP3g,HlZu><*[Nv+T8

and see for yourself! :)

BaseCrack API

BaseCrack can now be used as a library! Just import the BaseCrack() class and call the decode() function.

See API.

What's new in v1.1:

I heard your feature requests, now you can generate a wordlist/output with the decoded bases! :)

Supported Encoding Schemes

  • Base16
  • Base32
  • Base36
  • Base58
  • Base62
  • Base64
  • Base64Url
  • Base85
  • Ascii85
  • Base91
  • Base92

Main Features

  • Decode multi-encoded bases of any pattern.
  • Decode bases in image EXIF data.
  • Decode bases on images with OCR detection.
  • Dan decode multiple base encodings from a file.
  • Generate a wordlist/output with the decoded bases.
  • Predicts the type of encoding scheme.

Installation

$ git clone https://github.com/mufeedvh/basecrack.git
$ cd basecrack
$ pip install -r requirements.txt
$ python 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: https://tesseract-ocr.github.io/

πŸ“ NOTE: I haven't completely tested this tool on Windows so if you stumble upon any issues, please open an issue.

Usage

Get a list of all the arguments:

python basecrack.py -h

To decode a single base encoding from user input:

python basecrack.py

To decode a single base encoding from argument (-b/--base):

python basecrack.py -b SGVsbG8gV29ybGQh

To decode multiple base encodings from a file (-f/--file):

python basecrack.py -f file.txt

Magic Mode: To decode multi-encoded base of any pattern (-m/--magic):

python basecrack.py --magic

To input an image for EXIF/OCR detection mode (-i/--image):

python basecrack.py -i image.jpg (--exif/--ocr)

EXIF Data Detection: 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

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:

# 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]))

Output:

Decoded String: spaghetti
Encoding Scheme: Base64

Time to integrate this into your automation tools! ;)

Screenshots

EXIF Data Detection πŸ“Έ

basecrack exif detection

Try It Yourself!

python basecrack.py -i examples/exif-example.jpg --exif

OCR Base Detection πŸ”Ž

basecrack ocr detection

Try It Yourself!

python basecrack.py -i examples/ocr-example.jpg --ocr

Contribution

Ways to contribute

  • Suggest a feature
  • Report a bug
  • Fix something and open a pull request
  • Help me document the code
  • Spread the word

Before you open a PR, make sure everything's good with a Unit Test:

Unit Tests: (Thanks @FavasM)

python3 -m unittest discover -v -s tests

License

Licensed under the MIT License, see LICENSE for more information.

Liked the project?

Support the author by buying him a coffee!

Buy Me A Coffee


Support this project by starring ⭐, sharing πŸ“², and contributing πŸ‘©β€πŸ’»! ❀️


Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].