Skip to content

This repository contains a PHP application for cracking MD5 hash passwords, offering dictionary-based and brute force attacks. Developed as part of a Coursera course on Web Applications with PHP.

License

Notifications You must be signed in to change notification settings

rudraparmar76/CrackMD5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

MD5 Hash Password Cracking

Coursera Web Applications with PHP

This repository contains the code for a password cracking application developed as part of the Coursera course on Web Applications with PHP. The application focuses on cracking MD5 hash passwords using various techniques and strategies.

Table of Contents

Introduction

MD5 is a widely used cryptographic hash function that generates a fixed-size hash value from input data. One common use of MD5 is to store password hashes. This repository contains a PHP application designed to reverse MD5 hash passwords and uncover the original passwords from their hashed representations.

The application provides an environment to experiment with password cracking techniques while learning about web applications, PHP programming, and security.

Features

  • MD5 Hash Cracking: The application is capable of cracking MD5 hash passwords.
  • Wordlist Attack: Utilizes a wordlist containing common passwords to perform dictionary-based attacks.
  • Brute Force Attack: Supports brute force attacks by generating all possible combinations of characters to find the original password.
  • Performance Optimization: Implements various techniques to improve the efficiency of the cracking process.
  • Command-Line Interface: Offers a user-friendly CLI to interact with the application and input necessary parameters.
  • Password Salting: Handles password salting scenarios to ensure realistic password cracking.

Installation

  1. Clone the repository to your local machine:
git clone https://github.com/rudraparmar76/CrackMD5.git
  1. Change into the project directory:
cd CrackMD5
  1. Ensure you have PHP installed on your system.

Usage

To crack MD5 hash passwords using this application, follow these steps:

  1. Create a file containing the MD5 hash passwords you want to crack, with each hash on a new line. Save this file as hashes.txt.

  2. Prepare a wordlist file (e.g., wordlist.txt) with a list of potential passwords. The application will use this list for dictionary-based attacks.

  3. Open a terminal or command prompt and navigate to the project directory.

  4. Run the application with the following command:

php crack.php -h hashes.txt -w wordlist.txt

Replace hashes.txt with the path to your MD5 hash file and wordlist.txt with the path to your wordlist file.

The application will start the cracking process and display the results once it completes.

Contributing

Contributions to this project are welcome! If you find any bugs or have ideas for improvements, please open an issue or submit a pull request.

Limitations

Four-Digit PINs Only: The current version of the application is limited to cracking only four-digit PINs. It does not support cracking longer passwords or complex hashes.

License

This project is licensed under the MIT License.


Note: The purpose of this application is solely educational, and it should only be used to crack passwords for which you have explicit permission. Unauthorized password cracking is illegal and unethical.

About

This repository contains a PHP application for cracking MD5 hash passwords, offering dictionary-based and brute force attacks. Developed as part of a Coursera course on Web Applications with PHP.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages