Giter VIP home page Giter VIP logo

cth's Introduction

Crack The Hash

Ultra fast hashcracking tool written in Python3

Update [v2.5.7]

  • Modified url to check for latest version number (you'll most likely have to reinstall the script instead of updating it using the -u/-update flag)

Description

A powerfull hash cracker that is written in python3! The cracker currently supports only a limited amount of hash types (more hash types will eventually follow!). The cracking speed depends on your hardware or on the wordlist, you can choose. I hope you enjoy it! Feedback on the tool is appreciated! Also, feel free to contribute and make a pull request! That's why I choosed for Open Source :)!

Disclaimer (PLEASE READ) !!!

I made this tool to help me quickly crack hashes for ctfs! Please do not use this tool to cause any harm! I am not responsible for any misuse or damage made by this tool!

Todo

  • Add hash detection
  • Add more hashtypes
  • Cracking multiple hashes
  • Using GPU for cracking hashes
  • Using CPU to crack hashes

Installation

$ git clone https://github.com/0xblackbird/cth.git cth

$ cd cth/

$ pip install -r requirements.txt

$ chmod +x cth.py

Usage

usage: ./cth.py -H <HASH> [OPTIONS] -T <NUM> -w <WORDLIST>

Ultra fast hashcracking tool written in Python3

optional arguments:
  -h, --help            show this help message and exit
  -H hash, -hash hash   Your hash that you want to crack
  -w wordlist, -wordlist wordlist
                        The wordlist that is going to do the job (default:
                        "/usr/share/wordlists/rockyou.txt")
  -T type, -type type   Specify the hash type, use "-L/-list" for more info (default: "0" (md-5))
  -o, -output           Output the result in a text file (default: "False")
  -oJ, -output-json     Output the result in JSON format (default: "False")
  -I, -interactive      Go through steps instead of typing all the flags manually
  -v, -verbose          Turn on verbosity mode (default: "False")
  -L, -list             Display all the hash types and exit
  -u, -update           Update the script to the latest version
  -V, -version          show program's version number and exit

Thank you for using this tool! Please take a moment and give some feedback on the tool:
@0xblackbird or [email protected]

Examples

MD5 hash cracking: Example 0

SHA3-512 hash cracking: Example 1

BLAKE2s hash cracking: Example 2

NTLM hash cracking: Example 3

cth's People

Contributors

0xblackbird avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cth's Issues

Some preliminary issues

  • Add multi threading support
  • Create a class structure (turn it into a class or use functions)
  • for loop through a wordlist is slow. STEGCRACKER follows this same principle. It's very, very slow and if the password is at the back, it won't work for hours and hours and hours. Here's a better methodology:

Checking for passwords

  1. Multi threadding
    Have one start at the back, and one start at the front. Have them both go through the list at the same time, and meet in the middle.
  2. Random sampling
    Randomly select chunks of passwords from the list, and assign them to a worker (multi threaded). Make sure to not include those chunks in future workers. This has the benefit that if the password is in the middle, you stand a higher chance of getting it.

I think Rockyou is sorted by frequency (?) so maybe (1) is better.

  • use the GPU for hash cracking (difficult but makes it fast)
  • Refactor the code (similar to class) so you minimise the amount of code needed.

imo, most of the code should be on on multi threading / grabbing passwords / speed from the dict. If you do these 3 things really, really well then you can still have a very impressive tool while having a small selection of hash crackers. ๐Ÿ˜„

Overall, really good project. And I love where this is going ๐Ÿ˜„

Edit: It may be worth it to automatically detect hashes too, instead of passing a type to them. You can do this by checking their length, for example. As all hashes follow strict length guidelines.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.