Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send PM [Captcha not solved] #1394

Open
3 tasks done
NEROXI opened this issue Dec 17, 2024 · 0 comments
Open
3 tasks done

Send PM [Captcha not solved] #1394

NEROXI opened this issue Dec 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@NEROXI
Copy link

NEROXI commented Dec 17, 2024

Which package has the bugs?

The core library

Issue description

The captcha doesn't pass the test at all. I have 100% recognition set in my office, but the result is always bad.

Preparing to connect to the gateway... [WS => Manager] Fetched Gateway Information URL: wss://gateway.discord.gg Recommended Shards: 1 [WS => Manager] Session Limit Information Total: Infinity Remaining: Infinity [WS => Manager] Spawning shards: 0 [WS => Shard 0] [CONNECT] Gateway : wss://gateway.discord.gg/ Version : 9 Encoding : json Compression: none Agent : false [WS => Shard 0] Setting a HELLO timeout for 20s. [WS => Shard 0] [CONNECTED] Took 247ms [WS => Shard 0] Clearing the HELLO timeout. [WS => Shard 0] Setting a heartbeat interval for 41250ms. [WS => Shard 0] [IDENTIFY] Shard 0 [WS => Shard 0] [READY] Session 04b97a16b598680c8b557ca3c5cbed79 | Resume url wss://gateway-us-east1-b.discord.gg. [WS => Shard 0] [ReadyHeartbeat] Sending a heartbeat. [USER_REQUIRED_ACTION] All required actions have been completed. [SETTING > ClientUser] Sync setting [SETTING > ClientUser] Sync activities & status [SETTING > Guild 1234489482523312139] Sync setting [WS => Shard 0] Shard received all its guilds. Marking as fully ready. Ready! gtabogema1 [WS => Shard 0] Heartbeat acknowledged, latency of 134ms. Sending message to youngtod Hit a captcha while executing a request (captcha-required) Method : post Path : /channels/1318395383352655892/messages Route : /channels/1318395383352655892/messages Sitekey : b2b02ab5-7dae-4d6f-830e-7b55634c888b rqToken : IjF5QUdwYzhLaU5GaEdaUkRLVDliNGwxdGhKUUNJYkptMCtJWDRBM0RZdlAwe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lNzmicGQA.Am9X5RFP6dr4SnfLi6WL2m0L79Ps3DVNCMyYjgxrBYM Captcha details: Method : post Path : /channels/1318395383352655892/messages Route : /channels/1318395383352655892/messages Key : [Captcha not solved] rqToken : IjF5QUdwYzhLaU5GaEdaUkRLVDliNGwxdGhKUUNJYkptMCtJWDRBM0RZdlAweXV1amxWOUtZNUthUk4wU0NaaEdKQkxIMVE9PVhSOFNoekRXRmlmVE05cmMi.Z2DaMg.o8yfiIgHRhsoQLyCoSYU842ehtU

Code sample

const { Client } = require('discord.js-selfbot-v13');
const Captcha = require('2captcha');

const solver = new Captcha.Solver('<2captcha token>');

const client = new Client({
    captchaSolver: function (captcha, UA) {
        return solver
            .hcaptcha(captcha.captcha_sitekey, 'discord.com', {
                invisible: false,
                userAgent: UA,
                data: captcha.captcha_rqdata,
            })
            .then(res => {
                res.data
                console.log('Captcha solved:', res.data);
            });
    },
    captchaRetryLimit: 3,
});

client.on('debug', console.log);

client.on('ready', async () => {
    console.log('Ready!', client.user.tag);

    const guilds = await client.guilds.fetch();

    let guild = guilds.first();

    guild = await guild.fetch()

    const members = await guild.members.fetch();

    for (const member of members.values()) {
        const user = await member.user.fetch();

        console.log('Sending message to', user.tag);

        try {
            await user.send('Hello!');
            console.log('Message sent to', user.tag);

            await new Promise(resolve => setTimeout(resolve, 5000));
        }
        catch (err) {
            console.error(err);
        }
    }
});

client.login('<my-token>');

Package version

Latest

Node.js version

18

Operating system

Ubuntu 24

Priority this issue should have

Medium (should be fixed soon)

Checklist

  • I have searched the open issues for duplicates.
  • I have shared the entire traceback.
  • I am using a user token (and it isn't visible in the code).

Additional Information

No response

@NEROXI NEROXI added the bug Something isn't working label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant