Skip to content

Commit

Permalink
poe.com recaptcha bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
xtekky committed Apr 20, 2023
1 parent 17cc9ea commit b88dbfe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion quora/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from os import urandom
from hashlib import md5
from json import dumps
from pypasser import reCaptchaV3

def extract_formkey(html):
script_regex = r'<script>if\(.+\)throw new Error;(.+)</script>'
Expand Down Expand Up @@ -193,12 +194,14 @@ def create(proxy: None or str = None, logging: bool = False, enable_bot_creation
client.headers["poe-formkey"] = extract_formkey(client.get('https://poe.com/login').text)
client.headers["poe-tchannel"] = client.get('https://poe.com/api/settings').json()['tchannelData']['channel']

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')

payload = dumps(separators = (',', ':'), obj = {
'queryName': 'MainSignupLoginSection_sendVerificationCodeMutation_Mutation',
'variables': {
'emailAddress': mail_address,
'phoneNumber': None,
'recaptchaToken': None,
'recaptchaToken': token
},
'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',
})
Expand Down
1 change: 1 addition & 0 deletions quora/cookies.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ oyae3iClomSrk6RJywZ4iw==
wfUfJIlwQwUss8l-3kDt3w==
f6Jw_Nr0PietpNCtOCXJTw==
6Jc3yCs7XhDRNHa4ZML09g==
3vy44sIy-ZlTMofFiFDttw==

0 comments on commit b88dbfe

Please sign in to comment.