π» FAKE VIRUS Prank Using Python – SYSTEM INFECTED Shocking Reaction π±
Demo :
Click Video πππ
Code :
import tkinter as tk
from tkinter import messagebox
import time
import threading
import random
class FakeVirusApp:
def __init__(self, root):
self.root = root
self.root.title("System Infection Detected ⚠️")
self.root.geometry("600x450") # Increased height slightly
self.root.configure(bg="black")
self.root.resizable(False, False)
# SYSTEM INFECTED label
self.label = tk.Label(root, text="⚠️ SYSTEM INFECTED ⚠️", font=("Helvetica", 24, "bold"),
fg="red", bg="black")
self.label.pack(pady=20)
# Text area
self.text_area = tk.Text(root, width=70, height=10, font=("Courier", 12),
bg="black", fg="lime", bd=0)
self.text_area.pack(pady=10)
self.text_area.insert(tk.END, "Initializing virus.exe...\n")
self.text_area.config(state=tk.DISABLED)
# Warning label
self.warning_label = tk.Label(root, text="Do NOT shut down! Data Wiping in Progress...",
font=("Arial", 14, "bold"), fg="yellow", bg="black")
self.warning_label.pack(pady=10)
# STOP VIRUS button
self.exit_button = tk.Button(root, text="STOP VIRUS", command=self.stop_virus,
font=("Helvetica", 14, "bold"),
bg="red", fg="white", relief="flat", padx=20, pady=10)
self.exit_button.pack(pady=15)
self.running = True
threading.Thread(target=self.simulate_loading, daemon=True).start()
self.blink_warning()
def simulate_loading(self):
commands = [
"[WARNING] Encrypting files on C:\\...",
"[CRITICAL] System files locked!",
"[INFO] Uploading your data to server...",
"[ERROR] Unable to recover files...",
"[ALERT] Payment required to unlock system!",
"[INFO] Creating hidden backdoor access...",
"[WARNING] Shutting down security protocols..."
]
while self.running:
self.root.after(0, self.append_text, random.choice(commands))
time.sleep(1.5)
def append_text(self, text):
self.text_area.config(state=tk.NORMAL)
self.text_area.insert(tk.END, text + "\n")
self.text_area.see(tk.END)
self.text_area.config(state=tk.DISABLED)
def blink_warning(self):
if not self.running:
return
current_color = self.label.cget("fg")
new_color = "black" if current_color == "red" else "red"
self.label.config(fg=new_color)
self.root.after(500, self.blink_warning)
def stop_virus(self):
self.running = False
messagebox.showinfo("Prank Over π", "This was a fake virus prank!\nYour PC is safe!")
self.root.destroy()
# Run
if __name__ == "__main__":
root = tk.Tk()
app = FakeVirusApp(root)
root.mainloop()
Comments
Post a Comment