t.me/xtekky commited on
Commit
b88dbfe
1 Parent(s): 17cc9ea

poe.com recaptcha bypass

Browse files
Files changed (2) hide show
  1. quora/__init__.py +4 -1
  2. quora/cookies.txt +1 -0
quora/__init__.py CHANGED
@@ -11,6 +11,7 @@ from urllib import parse
11
  from os import urandom
12
  from hashlib import md5
13
  from json import dumps
 
14
 
15
  def extract_formkey(html):
16
  script_regex = r'<script>if\(.+\)throw new Error;(.+)</script>'
@@ -193,12 +194,14 @@ class Account:
193
  client.headers["poe-formkey"] = extract_formkey(client.get('https://poe.com/login').text)
194
  client.headers["poe-tchannel"] = client.get('https://poe.com/api/settings').json()['tchannelData']['channel']
195
 
 
 
196
  payload = dumps(separators = (',', ':'), obj = {
197
  'queryName': 'MainSignupLoginSection_sendVerificationCodeMutation_Mutation',
198
  'variables': {
199
  'emailAddress': mail_address,
200
  'phoneNumber': None,
201
- 'recaptchaToken': None,
202
  },
203
  '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
  })
 
11
  from os import urandom
12
  from hashlib import md5
13
  from json import dumps
14
+ from pypasser import reCaptchaV3
15
 
16
  def extract_formkey(html):
17
  script_regex = r'<script>if\(.+\)throw new Error;(.+)</script>'
 
194
  client.headers["poe-formkey"] = extract_formkey(client.get('https://poe.com/login').text)
195
  client.headers["poe-tchannel"] = client.get('https://poe.com/api/settings').json()['tchannelData']['channel']
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
+
199
  payload = dumps(separators = (',', ':'), obj = {
200
  'queryName': 'MainSignupLoginSection_sendVerificationCodeMutation_Mutation',
201
  'variables': {
202
  'emailAddress': mail_address,
203
  'phoneNumber': None,
204
+ 'recaptchaToken': token
205
  },
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',
207
  })
quora/cookies.txt CHANGED
@@ -18,3 +18,4 @@ oyae3iClomSrk6RJywZ4iw==
18
  wfUfJIlwQwUss8l-3kDt3w==
19
  f6Jw_Nr0PietpNCtOCXJTw==
20
  6Jc3yCs7XhDRNHa4ZML09g==
 
 
18
  wfUfJIlwQwUss8l-3kDt3w==
19
  f6Jw_Nr0PietpNCtOCXJTw==
20
  6Jc3yCs7XhDRNHa4ZML09g==
21
+ 3vy44sIy-ZlTMofFiFDttw==