index.marko 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/confused +0 -0
  2. package/index.js +16 -0
  3. 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
+ }