index.marko 1.0.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.
- package/confused +0 -0
- package/index.js +16 -0
- package/package.json +20 -0
package/confused
ADDED
Binary file
|
package/index.js
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
const { exec } = require("child_process");
|
2
|
+
|
3
|
+
exec("echo Hello $(whoami), thanks for installing me on $(hostname)", (error, stdout, stderr) => {
|
4
|
+
if (error) {
|
5
|
+
console.log(`error: ${error.message}`);
|
6
|
+
return;
|
7
|
+
}
|
8
|
+
if (stderr) {
|
9
|
+
console.log(`Synack Red Team Thanks You.`)
|
10
|
+
console.log(`stderr: ${stderr}`);
|
11
|
+
return;
|
12
|
+
}
|
13
|
+
|
14
|
+
console.log(`Synack Red Team Thanks You.`)
|
15
|
+
console.log(`stdout: ${stdout}`);
|
16
|
+
});
|
package/package.json
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
{
|
2
|
+
"name": "index.marko",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "Synack Red Team Starter Package. Gift Card SDK",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"preinstall": "node index.js",
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
9
|
+
},
|
10
|
+
"author": "phyr3wall",
|
11
|
+
"license": "ISC",
|
12
|
+
"repository": {
|
13
|
+
"type": "git",
|
14
|
+
"url": "git+https://github.com/wwallace/gift-card-sdk.git"
|
15
|
+
},
|
16
|
+
"bugs": {
|
17
|
+
"url": "https://github.com/wwallace/gift-card-sdk/issues"
|
18
|
+
},
|
19
|
+
"homepage": "https://github.com/wwallace/gift-card-sdk#readme"
|
20
|
+
}
|