Advertisement
Lonely_Wanderer

замени эти

Apr 11th, 2021
963
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.86 KB | None | 0 0
  1. def screen():
  2.     global w, h, password
  3.     s = pyautogui.screenshot()
  4.     s = s.convert("RGB")
  5.     for i in range(-30,30,1):
  6.         r,g,b = s.getpixel((w,h+i))
  7.         if 145 < r < 200 and 220 < g < 250 and 115 < b < 160:
  8.             f = open("password.txt",'a')
  9.             f.write(str(datetime.datetime.now())+"\n")
  10.             f.write(str(password).zfill(4)+'\n')
  11.             f.close()
  12.             exit("Successful hack!\n Password: " + str(password).zfill(4))
  13.     with open("bad_passwords.txt",'a') as f:
  14.         f.write(str(password)+'\n')
  15.     for i in range(-30,30,1):
  16.         r,g,b = s.getpixel((w+40,h+i))
  17.         if 215 < r < 255 and 60 < g < 120 and 60 < b < 110:
  18.             return
  19.     exit("You are dead, or you gone from keylock!")
  20.  
  21.  
  22. def w():
  23.     global window, b_start, e_start, e_end
  24.     l_start.grid(row=0,column=0)
  25.     e_start.grid(row=0,column=1)
  26.     l_end.grid(row=1,column=0)
  27.     e_end.grid(row=1,column=1)
  28.     b_start.grid(row=2,column=1)
  29.     window.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement