initial commit

This commit is contained in:
Daniel Cortes
2020-05-22 01:51:01 -04:00
commit caddf8a767

20
brute_force_hello_world.py Executable file
View File

@@ -0,0 +1,20 @@
import time
import sys
import random
import string
target = 'Hello, World!'
guess = list('*'*len(target))
for i, c in enumerate(target):
while True:
cc = random.choice(string.ascii_letters + string.punctuation + " ")
guess[i] = cc
sys.stdout.write(f"\r{''.join(guess)}")
sys.stdout.flush()
time.sleep(0.01)
if cc == c:
break
print('\n\nACCESS GRANTED')