Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def screen():
- global w, h, password
- s = pyautogui.screenshot()
- s = s.convert("RGB")
- for i in range(-30,30,1):
- r,g,b = s.getpixel((w,h+i))
- if 145 < r < 200 and 220 < g < 250 and 115 < b < 160:
- f = open("password.txt",'a')
- f.write(str(datetime.datetime.now())+"\n")
- f.write(str(password).zfill(4)+'\n')
- f.close()
- exit("Successful hack!\n Password: " + str(password).zfill(4))
- with open("bad_passwords.txt",'a') as f:
- f.write(str(password)+'\n')
- for i in range(-30,30,1):
- r,g,b = s.getpixel((w+40,h+i))
- if 215 < r < 255 and 60 < g < 120 and 60 < b < 110:
- return
- exit("You are dead, or you gone from keylock!")
- def w():
- global window, b_start, e_start, e_end
- l_start.grid(row=0,column=0)
- e_start.grid(row=0,column=1)
- l_end.grid(row=1,column=0)
- e_end.grid(row=1,column=1)
- b_start.grid(row=2,column=1)
- window.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement