RuslanUC / RemoteAuthClient

Async remote auth client for discord (Login with qr code)
MIT License
19 stars 4 forks source link

Captcha solving #3

Closed 10kkm closed 1 year ago

10kkm commented 1 year ago

Hello! When i try to grab token, instead of encrypted_token i get captcha. Will there be an update soon to solve this problem?

RuslanUC commented 1 year ago

I will add on_captcha event soon.

10kkm commented 1 year ago

update to dev branch maybe

RuslanUC commented 1 year ago

If this bot using remoteauthclient as dependency - update remoteauthclient to 1.3 (pip install remoteauthclient==1.3). If it uses remoteauthclient's code (like this) - remove RemoteAuthClient and User classes from code, install remoteauthclient==1.3 and add from remoteauthclient import RemoteAuthClient to imports.

10kkm commented 1 year ago

When captcha appears, it says: "Unable to get a token."

10kkm commented 1 year ago

I solved captcha by capmonster then it gives another captcha again and again and again. Then i checked my logs and found this <ClientResponse(https://discord.com/api/v9/users/@me/remote-auth/login) [400 Bad Request]> when i try to get token or to post captcha key

RuslanUC commented 1 year ago

Do you provide captcha_rqdata to capmonster?

10kkm commented 1 year ago

no

RuslanUC commented 1 year ago

I read here, that you must provide captcha_rqdata to capmonster. And install latest version of remoteauthclient (1.4.0b2)

10kkm commented 1 year ago

[ERROR_CAPTCHA_UNSOLVABLE] This type of captchas is not supported by the service or the image does not contain an answer, perhaps it is too noisy. It could also mean that the image is corrupted or was incorrectly rendered. 3 captcha's in a row

RuslanUC commented 1 year ago

Can you show your code part where you sending captcha task to capmonster?

10kkm commented 1 year ago
        url = "https://discord.com"
        task_id = captcha.create_task(
            website_url=url,
            website_key=captcha_data["captcha_sitekey"],
            is_invisible=True,
            custom_data=captcha_data["captcha_rqdata"],
        )
RuslanUC commented 1 year ago

Try to update to 1.4.0b3 and add user agent to task ("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36")

10kkm commented 1 year ago

now unable to get token

RuslanUC commented 1 year ago

What is response body in logs?

10kkm commented 1 year ago

nvm i fixed it and j.get("captcha_key") == ["captcha-required"]

10kkm commented 1 year ago

[ERROR_CAPTCHA_UNSOLVABLE] This type of captchas is not supported by the service or the image does not contain an answer, perhaps it is too noisy. It could also mean that the image is corrupted or was incorrectly rendered.

10kkm commented 1 year ago
    @c.event("on_captcha")
    async def on_captcha(captcha_data):
        # Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.167 YaBrowser/22.7.5.1027 Yowser/2.5 Safari/537.36
        user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"
        print(f"adsad", captcha_data)
        url = "https://discord.com"
        captcha = HCaptchaTask(APIKEY)
        captcha.set_user_agent(user_agent)
        task_id = captcha.create_task(
            website_url=url,
            website_key=captcha_data["captcha_sitekey"],
            is_invisible=True,
            custom_data=captcha_data["captcha_rqdata"],
        )
        print(
            "# Task created successfully with the following id: {}".format(task_id)
        )
        result = captcha.join_task_result(task_id=task_id)
        print(result)
        return result["gRecaptchaResponse"]
10kkm commented 1 year ago

10km did you get yours working

No

Laqer commented 1 year ago

I need to talk with who's using this system to get tokens. Please contact me on Discord, Neph#4414 I need an help

Jayxens commented 1 year ago

I need help, If anyone has this working and can prove it, I will pay you. Jayxen#1225

10kkm commented 1 year ago

i have working, can sell, accept my friend request

dondestasmibebe commented 1 year ago

hey i would also need help. willing to pay. hit me up on discord Macr0bear22#5340

kolen123321 commented 1 year ago

I need help, If anyone has this working and can prove it, I will pay you. kolen#3851