XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

poe.com recaptcha bypass

b88dbfe4
t.me/xtekky <98614666+xtekky@users.noreply.github.com>
提交于

代码差异

2 个文件 +5 -1
Modified quora/__init__.py +4 -1
@@ -11,6 +11,7 @@ from urllib import parse
11 11 from os import urandom
12 12 from hashlib import md5
13 13 from json import dumps
14 from pypasser import reCaptchaV3
14 15
15 16 def extract_formkey(html):
16 17 script_regex = r'<script>if\(.+\)throw new Error;(.+)</script>'
@@ -193,12 +194,14 @@ class Account:
193 194 client.headers["poe-formkey"] = extract_formkey(client.get('https://poe.com/login').text)
194 195 client.headers["poe-tchannel"] = client.get('https://poe.com/api/settings').json()['tchannelData']['channel']
195 196
197 token = reCaptchaV3('https://www.recaptcha.net/recaptcha/enterprise/anchor?ar=1&k=6LflhEElAAAAAI_ewVwRWI9hsyV4mbZnYAslSvlG&co=aHR0cHM6Ly9wb2UuY29tOjQ0Mw..&hl=en&v=vkGiR-M4noX1963Xi_DB0JeI&size=invisible&cb=hhps5wd06eue')
198
196 199 payload = dumps(separators = (',', ':'), obj = {
197 200 'queryName': 'MainSignupLoginSection_sendVerificationCodeMutation_Mutation',
198 201 'variables': {
199 202 'emailAddress': mail_address,
200 203 'phoneNumber': None,
201 'recaptchaToken': None,
204 'recaptchaToken': token
202 205 },
203 206 'query': 'mutation MainSignupLoginSection_sendVerificationCodeMutation_Mutation(\n $emailAddress: String\n $phoneNumber: String\n $recaptchaToken: String\n) {\n sendVerificationCode(verificationReason: login, emailAddress: $emailAddress, phoneNumber: $phoneNumber, recaptchaToken: $recaptchaToken) {\n status\n errorMessage\n }\n}\n',
204 207 })
Modified quora/cookies.txt +1 -0
@@ -18,3 +18,4 @@ oyae3iClomSrk6RJywZ4iw==
18 18 wfUfJIlwQwUss8l-3kDt3w==
19 19 f6Jw_Nr0PietpNCtOCXJTw==
20 20 6Jc3yCs7XhDRNHa4ZML09g==
21 3vy44sIy-ZlTMofFiFDttw==