Fake Login Page GUI in Python (Educational Purpose) – FuzzuTech

 Demo :


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



πŸ”Ή Description:

A complete Python GUI project that simulates a phishing-style login page using tkinter, including credential capture simulation and live preview GUI window. Made for cybersecurity awareness and ethical hacking education.


πŸ”Ή Features:

  • Fake login page GUI

  • Saves username/password input

  • Includes live preview popup

  • Styled dark mode

  • Educational disclaimer


Code :


from tkinter import *

from tkinter import messagebox


# Save credentials to file

def save_credentials():

    username = user_entry.get()

    password = pass_entry.get()

    if username and password:

        with open("phished_data.txt", "a") as f:

            f.write(f"Username: {username}, Password: {password}\n")

        messagebox.showinfo("Saved", "Credentials captured (Educational Use Only)")

        user_entry.delete(0, END)

        pass_entry.delete(0, END)

    else:

        messagebox.showwarning("Missing", "Both fields are required.")


# Live GUI preview

def preview_gui():

    preview = Toplevel(root)

    preview.title("Live Preview - GUI")

    preview.geometry("300x200")

    preview.config(bg="#1E1E1E")


    Label(preview, text="Login Page (Preview)", fg="cyan", bg="#1E1E1E", font=("Arial", 14, "bold")).pack(pady=10)

    Label(preview, text="Username", fg="white", bg="#1E1E1E").pack()

    Entry(preview, width=25).pack()

    Label(preview, text="Password", fg="white", bg="#1E1E1E").pack()

    Entry(preview, show="*", width=25).pack()

    Button(preview, text="Login", state="disabled", bg="gray").pack(pady=10)

    Label(preview, text="*Read-only educational preview", fg="red", bg="#1E1E1E", font=("Arial", 8, "italic")).pack()


# Main GUI

root = Tk()

root.title("Phishing Page Generator – Educational")

root.geometry("400x350")

root.config(bg="#101820")


Label(root, text="Fake Login Page Generator", fg="#FEE715", bg="#101820", font=("Helvetica", 16, "bold")).pack(pady=20)


Label(root, text="Username", fg="white", bg="#101820").pack()

user_entry = Entry(root, font=("Arial", 12), width=30)

user_entry.pack(pady=5)


Label(root, text="Password", fg="white", bg="#101820").pack()

pass_entry = Entry(root, show="*", font=("Arial", 12), width=30)

pass_entry.pack(pady=5)


Button(root, text="Save Credentials", command=save_credentials,

       bg="#FEE715", fg="#101820", font=("Arial", 12, "bold")).pack(pady=10)


Button(root, text="Live Preview GUI", command=preview_gui,

       bg="#00A8E8", fg="white", font=("Arial", 12, "bold")).pack(pady=5)


Label(root, text="⚠️ Educational Use Only", bg="#101820", fg="red",

      font=("Arial", 10, "italic")).pack(side="bottom", pady=10)


root.mainloop()

Comments

Popular posts from this blog

Is This News Real or Fake? πŸ€– AI Exposes the Truth | FuzzuTech Python App Demo

🚨 Python Intrusion Detection System (IDS) – Real-Time ML + Tkinter GUI Project | FuzzuTech

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