Awesome Open Source
Awesome Open Source


Code Climate Codacy Badge

This tool applies a brute force method against various types of hashes to try and crack them. Currently, the supported hashes are:

  • MD5
  • MD4
  • LM
  • NTLM
  • SHA1
  • SHA224
  • SHA256
  • SHA384
  • SHA512

It tries to be more efficient by parallelizing the work performed on different character sets. For example, if the character set abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ is selected then one worker will work with abcdefghijklmnopqrstuvwxyz, another worker will work with ABCDEFGHIJKLMNOPQRSTUVWXYZ, and the last worker will work with abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.


Python 3


While this tool does what it's supposed to, it has some major downfalls. For starters, it's using Python. I'm not saying Python is a bad language or anything like that. The issue is Python's GIL which prevents multiple threads from executing Python's bytecode at the same time. This means that I am unable to achieve parallelism with threads since only one character set would be worked on at a time. What needs to be done instead is splitting the work up across multiple processes and share data across those processes. This is less efficient than working with threads in general but is a necessary evil with Python. Additionally, interpreted languages are not well suited to workloads that are 100% focused on compute. See the recommendations below for what you should do if you're serious about using this kind of tool.


You could consider this project an example of how to accomplish such a task using Python and an example of what kinds of issues you'd run into. The tool is certainly usable and may work for your scenario but keep in mind that it will run far slower than anything written in C, C++, Rust, or Go. If you require the highest performance possible get yourself a GPU and don't bother using any tools (including this one) that target the CPU. Look for something that makes use of CUDA, OpenCL, or ACL which will bring you into the domain of billions of hashes per second.

Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Python (820,562
Thread (12,444
Parallel (7,127
Sha (3,316
Cracker (1,421
Bruteforce (1,403
Md5 (1,398
Sha256 (835
Sha1 (725
Password Cracker (222
Ntlm (47