-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbrute_text.py
More file actions
16 lines (15 loc) · 923 Bytes
/
brute_text.py
File metadata and controls
16 lines (15 loc) · 923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import random
import string
def brute_text(target=""):
alphabet = list(string.ascii_lowercase + string.ascii_uppercase + " " + "'" + ":" + "." + "," + ";" + "\n" + "[" + "]" + "!" + "?" + "-" + "1234567890" + "!@#$%^&*()" + "/<>[]\\|_=+`~")
result = ""
i = 0
while result != target:
letter = random.choice(alphabet)
guess = result + letter
print(guess, end="\r", flush=True)
if letter == target[i]:
result += letter
i += 1
alphabet = list(string.ascii_lowercase + string.ascii_uppercase + " " + "'" + ":" + "." + "," + ";" + "\n" + "[" + "]" + "!" + "?" + "-" + "1234567890" + "!@#$%^&*()" + "/<>[]\\|_=+`~")
brute_text(target="a5/x_&di@V^ML7&0*,?#NR0<Ba5/x_&di@V^ML7&0*,?#NB*8ya5/x_&di@V^ML7&0*,?#NR0<Ba5/x_&di@V^ML7&0*,?#NB*8yF]u~>^m)E8DOj9VqDy/NDi@V^ML7&0*,?#NR0<Ba5/x_&di@V^ML7&0*,?#NR0<BB*8yF]u~>^m)E8DOj9VqDy/ND")