Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can be bruteforced #47

Closed
cmester0 opened this issue Nov 28, 2022 · 0 comments
Closed

Can be bruteforced #47

cmester0 opened this issue Nov 28, 2022 · 0 comments
Labels
wontfix This will not be worked on

Comments

@cmester0
Copy link

By the following code:

import keyboard
import time

pos = list(input())

keyboard.wait('space')

sleep_time = 0

def press(s):
    for c in s.lower():
        keyboard.press_and_release(c)
    time.sleep(sleep_time)
    keyboard.press_and_release("enter")


def iter_press(pos, depth, s = ""):
    if depth == 0:
        press(s)
    else:
        for i, a in enumerate(pos):
            iter_press(pos[:i] + pos[i+1:], depth-1, s+a)

for i in range(3, 6+1):
    iter_press(pos, i)
@SSoelvsten SSoelvsten added the wontfix This will not be worked on label Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants