forked from seeditsolution/pythonprogram
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyauto.py
More file actions
26 lines (17 loc) · 647 Bytes
/
pyauto.py
File metadata and controls
26 lines (17 loc) · 647 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#Author-Slayking1965
import random
import pyautogui
import string
chars = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
chars = string.printable
chars_list = list(chars)
password = pyautogui.password("Enter a password : ")
guess_password = ""
while(guess_password != password):
guess_password = random.choices(chars_list, k=len(password))
print("<=================="+ str(guess_password)+ "==================>")
if(guess_password == list(password)):
print("Your password is : "+ "".join(guess_password))
break
#please accept my pull request sir/ma'am