-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathslowbrute.py
More file actions
30 lines (28 loc) · 744 Bytes
/
slowbrute.py
File metadata and controls
30 lines (28 loc) · 744 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
27
28
29
30
import random
import sys
import time
password = input("Password (a-zA-Z0-9 space _-): ")
gpass = ""
used = {0}
while 1:
while len(gpass) < len(password):
if gpass in used:
print(f"{gpass} in used")
gpass = ""
guess = random.choice(" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-")
if len(used)>len(password)*ord(guess):
if guess in password:
gpass += guess
else:
gpass += guess
sys.stdout.write(f"{guess} | {len(used)} | {gpass}\r")
sys.stdout.flush()
time.sleep(1/10**250)
used.add(gpass)
if gpass!=password:
gpass=""
else:
break
print()
sys.stdout.flush()
print(gpass)