My Channel is DOWN! 😒 But This 'Fake Webcam Hijacker' Might Save It πŸ”₯ | Python GUI Project

 Demo :


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












Code :


import tkinter as tk

import customtkinter as ctk

from PIL import Image, ImageTk, ImageSequence

import threading

import time


ctk.set_appearance_mode("dark")

ctk.set_default_color_theme("dark-blue")


class WebcamHijackSim(ctk.CTk):

    def __init__(self):

        super().__init__()

        self.title("Fuzzu Fake Webcam Hijacker")

        self.geometry("600x500")


        self.label_title = ctk.CTkLabel(self, text="Webcam Hijacker GUI", font=("Courier", 24, "bold"))

        self.label_title.pack(pady=10)


        self.console = ctk.CTkTextbox(self, height=150, width=500)

        self.console.pack(pady=10)

        

        self.start_button = ctk.CTkButton(self, text="Initiate Hijack", command=self.simulate_hack)

        self.start_button.pack(pady=10)


        self.image_label = ctk.CTkLabel(self, text="")

        self.image_label.pack(pady=10)


    def simulate_hack(self):

        threading.Thread(target=self._simulate).start()


    def _simulate(self):

        messages = [

            "[+] Initializing attack...",

            "[*] Scanning ports...",

            "[+] Connection established!",

            "[*] Accessing webcam...",

            "[+] Webcam hijacked! Displaying feed..."

        ]

        for msg in messages:

            self.console.insert(tk.END, msg + "\n")

            self.console.see(tk.END)

            time.sleep(1)


        self.display_fake_webcam()


    def display_fake_webcam(self):

        gif = Image.open("assets/webcam_loop.gif")

        frames = [ImageTk.PhotoImage(frame.copy().resize((300, 200))) for frame in ImageSequence.Iterator(gif)]

        

        def animate(idx=0):

            frame = frames[idx % len(frames)]

            self.image_label.configure(image=frame)

            self.image_label.image = frame

            self.after(100, animate, idx + 1)

        

        animate()


if __name__ == "__main__":

    app = WebcamHijackSim()

    app.mainloop()

Comments

Popular posts from this blog

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

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

Python IP Tracker App with GUI | Track IP Location Real-Time! (Working Project)