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/dist/commands/ai4ctf.js +1 -1
- package/dist/commands/exam.js +1 -1
- package/dist/lib/exam-state.d.ts +18 -0
- package/dist/lib/exam-state.js +1 -1
- package/dist/lib/i18n.d.ts +8 -0
- package/dist/lib/i18n.js +1 -1
- package/package.json +1 -1
- package/refs/python.txt +9 -0
package/package.json
CHANGED
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
|
|