πŸš€ Build a Simple Ethical Hacking Password Cracker with Python Tkinter GUI πŸ”“

 Demo :


Click Video πŸ‘‡πŸ‘‡πŸ‘‡

















πŸ”Ή Features:
✔️ Step-by-step guide to creating a password cracker tool
✔️ Full Source Code with explanation
✔️ Screenshots & Video Demo included
✔️ SEO Optimized with trending keywords
✔️ Download Link for the project


Code :


import tkinter as tk

from tkinter import messagebox

import time


# Brute force function (just a demo, not to be used for malicious purposes)

def brute_force(password):

    charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"

    for i in range(len(charset)):

        if charset[i] == password:

            return charset[i]


# Function to check password and display result

def check_password():

    password = password_entry.get()

    start_time = time.time()

    result = brute_force(password)

    elapsed_time = time.time() - start_time

    messagebox.showinfo("Result", f"Password cracked: {result}\nTime taken: {elapsed_time:.4f} seconds")


# GUI setup with modern and stylish design

root = tk.Tk()

root.title("Password Cracker")

root.geometry("400x300")

root.config(bg="#2c3e50")  # Dark background color


# Adding some style for the labels and buttons

title_label = tk.Label(root, text="Password Cracker", font=("Helvetica", 16, "bold"), fg="#ecf0f1", bg="#2c3e50")

title_label.pack(pady=20)


password_label = tk.Label(root, text="Enter Password:", font=("Helvetica", 12), fg="#ecf0f1", bg="#2c3e50")

password_label.pack(pady=5)


password_entry = tk.Entry(root, show="*", font=("Helvetica", 12), bd=2, relief="solid", width=20)

password_entry.pack(pady=10)


# Modern button design with a hover effect

def on_enter(e):

    crack_button.config(bg="#3498db")


def on_leave(e):

    crack_button.config(bg="#2980b9")


crack_button = tk.Button(root, text="Crack", font=("Helvetica", 12, "bold"), fg="#fff", bg="#2980b9", relief="flat", width=15, command=check_password)

crack_button.pack(pady=20)


# Button hover effects

crack_button.bind("<Enter>", on_enter)

crack_button.bind("<Leave>", on_leave)


# Start the GUI

root.mainloop()

Comments

Popular posts from this blog

πŸš€ Simple Login & Registration System in Python Tkinter πŸ“±

πŸš€ Create a Python Screen Recorder with Audio (Complete Code)

πŸ“‘ Fuzzu Packet Sniffer – Python GUI for Real-Time IP Monitoring | Tkinter + Scapy