From 97b30ba357c9240d6ffce3f17803d38e085f76ac Mon Sep 17 00:00:00 2001 From: Tips Date: Thu, 31 Oct 2024 21:22:23 +0100 Subject: [PATCH] yes fixed da proxy, made it change every 5 sec, updated headers :fire: it was worth waiting 3 weeks for this one --- Cwelium.py | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/Cwelium.py b/Cwelium.py index 8c54dfb..be75943 100644 --- a/Cwelium.py +++ b/Cwelium.py @@ -137,12 +137,17 @@ def run_tasks(): service = Config["Service"].lower() Key = Config["Api-Key"] -if proxy: - selected_proxy = random.choice(proxies) - session.proxies = { - "http": f"http://{selected_proxy}", - "https": f"http://{selected_proxy}" - } +def change_proxy(): + while True: + selected_proxy = random.choice(proxies) + session.proxies = { + "http": f"http://{selected_proxy}", + "https": f"http://{selected_proxy}" + } + time.sleep(5) + +proxy_thread = threading.Thread(target=change_proxy, daemon=True) +proxy_thread.start() class Render: def __init__(self): @@ -511,13 +516,13 @@ def super_properties(self): "os": "Windows", "browser": "Discord Client", "release_channel": "stable", - "client_version": "1.0.9167", + "client_version": "1.0.9168", "os_version": "10.0.19045", "system_locale": "en", - "browser_user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) discord/1.0.9167 Chrome/128.0.6613.36 Electron/32.0.0 Safari/537.36", + "browser_user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) discord/1.0.9168 Chrome/128.0.6613.36 Electron/32.0.0 Safari/537.36", "browser_version": "32.0.0", - "client_build_number": 335184, - "native_build_number": 53601, + "client_build_number": 339221, + "native_build_number": 54039, "client_event_source": None, } properties = base64.b64encode(json.dumps(payload).encode()).decode() @@ -533,7 +538,7 @@ def headers(self, token): "authorization": token, "cookie": self.cookies, "content-type": "application/json", - "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) discord/1.0.9167 Chrome/128.0.6613.36 Electron/32.0.0 Safari/537.36", + "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) discord/1.0.9168 Chrome/128.0.6613.36 Electron/32.0.0 Safari/537.36", "x-discord-locale": "en-US", "x-debug-options": "bugReporterEnabled", "x-super-properties": self.props,