https://github.com/filiprokita/bcrack
BCrack is a basic tool designed to crack Bcrypt hashed passwords using brute-force methods. Written in C, it highlights the importance of strong passwords and the effectiveness of Bcrypt for password hashing. Ideal for educational purposes and ethical security testing with permission.
https://github.com/filiprokita/bcrack
bcrypt bruteforce c cli command-line crypt cryptography cybersecurity decryption encryption file-handling hacking hash-comparison hash-cracking password-cracking security wordlist
Last synced: 4 months ago
JSON representation
BCrack is a basic tool designed to crack Bcrypt hashed passwords using brute-force methods. Written in C, it highlights the importance of strong passwords and the effectiveness of Bcrypt for password hashing. Ideal for educational purposes and ethical security testing with permission.
- Host: GitHub
- URL: https://github.com/filiprokita/bcrack
- Owner: FilipRokita
- License: gpl-3.0
- Created: 2024-07-16T14:12:50.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-15T22:31:18.000Z (almost 2 years ago)
- Last Synced: 2025-08-28T22:51:38.938Z (9 months ago)
- Topics: bcrypt, bruteforce, c, cli, command-line, crypt, cryptography, cybersecurity, decryption, encryption, file-handling, hacking, hash-comparison, hash-cracking, password-cracking, security, wordlist
- Language: C
- Homepage:
- Size: 36.1 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BCrack: Bcrypt Hash Crackerr
This C program prompts the user for a file path to a wordlist containing potential passwords and a bcrypt hash to crack. It reads each password from the wordlist, generates a bcrypt hash for each password, and compares it with the provided hash. If a match is found, it prints the password. The program assumes the presence of bcrypt-compatible hash and uses the crypt() function for hash generation. If successful, it terminates after finding the password.
## Requirements
- Clang compiler
- Make
- Linux environment (due to the use of `` for `crypt`)
## How to Use
1. **Compile the Program:**
```
make bcrack
```
2. **Run the Program:**
```
./bcrack
```
3. **Follow the Prompts:**
- Enter the path to the wordlist file containing passwords to test.
- Enter the bcrypt hash that you want to crack.
4. **Outcome:**
- The program will read each password from the wordlist, generate its bcrypt hash, and compare it with the provided hash.
- If a matching password is found, it will be displayed.
## Example
```
$ ./bcrack
Enter the path to the wordlist: example_wordlist.txt
Enter the bcrypt hash to crack: $2a$12$g/Ee8Hm1g1/5spm2V733euokwUNVkOYqLvX8YPCcYBIQohj79L5KO
Password found: 123456
```
## Note
This tool is intended for educational purposes only. Use it responsibly and at your own risk.
For licensing information, refer to the [LICENSE](LICENSE).