Replies: 5 comments 10 replies
-
class CaptchaSolver(discord.CaptchaHandler):
async def fetch_token(self, data: dict, proxy: str, proxy_auth: aiohttp.BasicAuth) -> str:
api_key = captcha_api_key
loop = asyncio.get_running_loop()
print("Starting to solve captcha")
with ThreadPoolExecutor() as pool:
solver = TwoCaptcha(api_key)
result = await loop.run_in_executor(pool, lambda: solver.hcaptcha(
sitekey=data['captcha_sitekey'],
data=data['captcha_rqdata'],
url='https://discord.com/channels/@me',
))
print("Returning the token")
return json.dumps(result) |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Tried another human worker based captcha and still failed. Looking more into browser requests there's calls to /api/v9/science just before sending captcha keys in headers. I think it might be worth looking into |
Beta Was this translation helpful? Give feedback.
-
Was this problem ever solved or have any other advancements been made? I've been trying to bypass their captchas for joining guilds from a direct invite link using 2captcha and requests, but I've had no luck. I was about to come to the discussions to ask how to implement the discord.CaptchaHandler class. |
Beta Was this translation helpful? Give feedback.
-
I noticed whenever I try to DM user, I get captcha twice. In old discord, there used to be only one time clicking which brings up box to click image and submit. So I guess this client code is used to solve that whereas in recent times there's two checkboxes (first doesn't require any kind of solving just clicking checkbox while second brings up solve toolbox to click image).
My question is that is discord.py-self==2.1.0a1 smart enough to bypass both checkboxes. I am thinking of buying 2captcha or captchas.io subscription and I saw some discussion regarding #456 people and this (#320 not sure if he managed to hardcode url stuff or not) not being able to solve it. So buying 2captcha or captchas.io won't be worth it if this selfbot client isn't updated to beat those two checkboxes. Just want to know general thoughts if it can solve it or not so I wont be wasting money trying to bypass captcha. @dolfies
Beta Was this translation helpful? Give feedback.
All reactions