chore(release): version
- Bypass Discord Phone Verification
This commit is contained in:
parent
9af5d8954a
commit
dce9c8013c
File diff suppressed because one or more lines are too long
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "discord.js-selfbot-v13",
|
"name": "discord.js-selfbot-v13",
|
||||||
"version": "2.3.4",
|
"version": "2.3.41",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "discord.js-selfbot-v13",
|
"name": "discord.js-selfbot-v13",
|
||||||
"version": "2.3.4",
|
"version": "2.3.41",
|
||||||
"license": "GNU General Public License v3.0",
|
"license": "GNU General Public License v3.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@discordjs/builders": "^0.15.0",
|
"@discordjs/builders": "^0.15.0",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "discord.js-selfbot-v13",
|
"name": "discord.js-selfbot-v13",
|
||||||
"version": "2.3.4",
|
"version": "2.3.41",
|
||||||
"description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]",
|
"description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]",
|
||||||
"main": "./src/index.js",
|
"main": "./src/index.js",
|
||||||
"types": "./typings/index.d.ts",
|
"types": "./typings/index.d.ts",
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
const Buffer = require('node:buffer').Buffer;
|
||||||
const Base = require('./Base');
|
const Base = require('./Base');
|
||||||
const { GuildScheduledEvent } = require('./GuildScheduledEvent');
|
const { GuildScheduledEvent } = require('./GuildScheduledEvent');
|
||||||
const IntegrationApplication = require('./IntegrationApplication');
|
const IntegrationApplication = require('./IntegrationApplication');
|
||||||
const InviteStageInstance = require('./InviteStageInstance');
|
const InviteStageInstance = require('./InviteStageInstance');
|
||||||
const { Error } = require('../errors');
|
const { Error } = require('../errors');
|
||||||
const { Endpoints } = require('../util/Constants');
|
const { ChannelTypes, Endpoints } = require('../util/Constants');
|
||||||
const Permissions = require('../util/Permissions');
|
const Permissions = require('../util/Permissions');
|
||||||
|
|
||||||
// TODO: Convert `inviter` and `channel` in this class to a getter.
|
// TODO: Convert `inviter` and `channel` in this class to a getter.
|
||||||
@ -320,15 +321,32 @@ class Invite extends Base {
|
|||||||
/**
|
/**
|
||||||
* Join this Guild using this invite.
|
* Join this Guild using this invite.
|
||||||
* @param {boolean} autoVerify Whether to automatically verify member
|
* @param {boolean} autoVerify Whether to automatically verify member
|
||||||
|
* @param {string} [captcha] The captcha key to add
|
||||||
* @returns {Promise<void>}
|
* @returns {Promise<void>}
|
||||||
* @example
|
* @example
|
||||||
* await client.fetchInvite('code').then(async invite => {
|
* await client.fetchInvite('code').then(async invite => {
|
||||||
* await invite.acceptInvite();
|
* await invite.acceptInvite();
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
async acceptInvite(autoVerify = true) {
|
async acceptInvite(autoVerify = true, captcha = null) {
|
||||||
if (!this.guild) throw new Error('INVITE_NO_GUILD');
|
if (!this.guild) throw new Error('INVITE_NO_GUILD');
|
||||||
await this.client.api.invites(this.code).post({});
|
const dataHeader = {
|
||||||
|
location: 'Join Guild',
|
||||||
|
location_guild_id: this.guild?.id,
|
||||||
|
location_channel_id: this.channelId,
|
||||||
|
location_channel_type: ChannelTypes[this.channel?.type] ?? 0,
|
||||||
|
};
|
||||||
|
await this.client.api.invites(this.code).post({
|
||||||
|
data: captcha
|
||||||
|
? {
|
||||||
|
captcha_key: captcha,
|
||||||
|
}
|
||||||
|
: {},
|
||||||
|
// Goodjob discord :) Bypass Phone Verification (not captcha .-.)
|
||||||
|
headers: {
|
||||||
|
'X-Context-Properties': Buffer.from(JSON.stringify(dataHeader), 'utf8').toString('base64'),
|
||||||
|
},
|
||||||
|
});
|
||||||
if (autoVerify) {
|
if (autoVerify) {
|
||||||
const getForm = await this.client.api
|
const getForm = await this.client.api
|
||||||
.guilds(this.guild.id)
|
.guilds(this.guild.id)
|
||||||
|
@ -172,7 +172,7 @@ class Options extends null {
|
|||||||
// $device: 'iPhone14,5 OS 15.2',
|
// $device: 'iPhone14,5 OS 15.2',
|
||||||
$os: 'Windows',
|
$os: 'Windows',
|
||||||
$browser: 'Discord Client',
|
$browser: 'Discord Client',
|
||||||
$device: 'ASUS ROG Phone 5',
|
$device: 'ASUS ROG Phone 5', // :)
|
||||||
// Add
|
// Add
|
||||||
$os_version: '10',
|
$os_version: '10',
|
||||||
$referrer: '',
|
$referrer: '',
|
||||||
@ -208,7 +208,7 @@ class Options extends null {
|
|||||||
'Sec-Fetch-Site': 'same-origin',
|
'Sec-Fetch-Site': 'same-origin',
|
||||||
'X-Debug-Options': 'bugReporterEnabled',
|
'X-Debug-Options': 'bugReporterEnabled',
|
||||||
// https://github.com/Merubokkusu/Discord-S.C.U.M/issues/66#issuecomment-1009171667
|
// https://github.com/Merubokkusu/Discord-S.C.U.M/issues/66#issuecomment-1009171667
|
||||||
'x-super-properties': `${Buffer.from(
|
'X-Super-Properties': `${Buffer.from(
|
||||||
JSONBig.stringify({
|
JSONBig.stringify({
|
||||||
os: 'Windows',
|
os: 'Windows',
|
||||||
browser: 'Discord Client',
|
browser: 'Discord Client',
|
||||||
|
Loading…
Reference in New Issue
Block a user