@ArnavPoddar/

Brute Force Password Guesser

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import time, random
message=""
amessage=""

password=str(input("What is your password?\n"))
a=0
while amessage!=password:
  letternumber=int(random.randint(0,126))
  letter=chr(letternumber)
  b=password.find(letter)
  if b==a:
    amessage=amessage+letter
    a+=1
  else:
    a+=0
  
print("Your password is", amessage)
print("It took" + str(a) + "tries to guess your password")