icoa-cli 2.19.105 → 2.19.107

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icoa-cli",
3
- "version": "2.19.105",
3
+ "version": "2.19.107",
4
4
  "description": "ICOA CLI — The world's first CLI-native CTF competition terminal",
5
5
  "type": "module",
6
6
  "bin": {
package/refs/python.txt CHANGED
@@ -73,6 +73,15 @@ COMMON PATTERNS
73
73
  # Read binary file
74
74
  data = open("file", "rb").read()
75
75
 
76
+ # Decode an attached-data file (exam practicals save the blob to
77
+ # challenges/q<N>.txt inside the sandbox — base64, hex, or plain text)
78
+ import base64, re
79
+ blob = open("challenges/q36.txt").read().strip() # replace N
80
+ raw = base64.b64decode(blob) # if base64
81
+ # raw = bytes.fromhex(blob) # if hex
82
+ m = re.search(rb"ICOA\{[^}]+\}", raw)
83
+ print(m.group().decode() if m else "no flag in raw bytes")
84
+
76
85
  # Hex dump
77
86
  print(data.hex())
78
87