From 839156fae00b2c9b52f52043ec34ed3f9cc0f346 Mon Sep 17 00:00:00 2001 From: SirGankalot <73303677+SirGankalot@users.noreply.github.com> Date: Sun, 16 Jun 2024 18:51:41 +0200 Subject: [PATCH] havoc --- checker/src/checker.py | 53 +++++++++++++++++++++++++++++++----------- 1 file changed, 40 insertions(+), 13 deletions(-) diff --git a/checker/src/checker.py b/checker/src/checker.py index 7d6a577..a327a36 100644 --- a/checker/src/checker.py +++ b/checker/src/checker.py @@ -703,22 +703,49 @@ async def havoc_0( client: AsyncClient, logger: LoggerAdapter, ) -> None: - try: - email_1, password1_1 = await checker_util_func.create_user(client, logger, public_key=None) - except: + try_bool = False + for i in range(0, retry_int): + try: + email_1, password1_1 = await checker_util_func.create_user(client, logger, public_key=None) + try_bool = True + break + except: + pass + if not try_bool: raise MumbleException("Could not create user 1") - try: - response = await checker_util_func.profile(client, logger) - except: + + try_bool = False + for i in range(0, retry_int): + try: + group_name, group_key, redirect_url = await checker_util_func.profile(client, logger) + try_bool = True + break + except: + pass + if not try_bool: raise MumbleException("Could not get profile") - try: - status = ''.join(random.choices(string.ascii_letters + string.digits, k=10)) - await checker_util_func.profile_change_status(client, logger, status) - except: + + try_bool = False + for i in range(0, retry_int): + try: + status = ''.join(random.choices(string.ascii_letters + string.digits, k=10)) + await checker_util_func.profile_change_status(client, logger, status) + try_bool = True + break + except: + pass + if not try_bool: raise MumbleException("Could not change status") - try: - await checker_util_func.profile_get_private_key(client, logger) - except: + + try_bool = False + for i in range(0, retry_int): + try: + await checker_util_func.profile_get_private_key(client, logger) + try_bool = True + break + except: + pass + if not try_bool: raise MumbleException("Could not get private key")