solve challenge rồi tóm gọn cho tôi ý tưởng và lện...
Creato il: 24 maggio 2026
Risposto usando GPT-5.5 Thinking da Chat01
Creato il: 24 maggio 2026
Risposto usando GPT-5.5 Thinking da Chat01
solve challenge rồi tóm gọn cho tôi ý tưởng và lệnh + script để solve
Đã solve được các file bạn gửi. Flags:
textvector_ghost: SecLeaf{brand_logo} terminal_painter: SecLeaf{hourglass} Force-push-wont-save-you: SecLeaf{history_was_the_trap} needle_in_context: SecLeaf{context_is_the_real_enemy}
Ý tưởng: SVG có tag <metadata> chứa base64.
bashgrep -oP '(?<=<metadata>).*?(?=</metadata>)' knight_secured_stamp.svg | base64 -d
Script:
pythonimport re, base64 from pathlib import Path svg = Path("knight_secured_stamp.svg").read_text() b64 = re.search(r"<metadata>\s*(.*?)\s*</metadata>", svg, re.S).group(1) print(base64.b64decode(b64).decode())
Output:
textSecLeaf{brand_logo}
Ý tưởng: Đừng quan tâm ký tự @ hay %; render cấu trúc thành pixel/block sẽ thấy hình hourglass trong art.txt. (art.txt)
bashpython3 - <<'PY' from pathlib import Path lines = Path("art.txt").read_text().splitlines() for on in ["@", "%"]: print(f"\nRender with {on} as ink:\n") for line in lines: print("".join("█" if c == on else " " for c in line)) PY
Flag:
textSecLeaf{hourglass}
Ý tưởng: Repo Git còn cả .git. Dùng history, reflog, dangling objects để tìm flag. Có nhiều decoy, flag thật nằm trong .git/info/exclude.
bashunzip challenge.zip -d challenge cd challenge/force-push-wont-save-you git log --all --oneline --graph git reflog --all git fsck --full --no-reflogs --lost-found grep -RIna "SecLeaf" .
Lệnh trực tiếp:
bashcat .git/info/exclude
Output:
textSecLeaf{history_was_the_trap}
Script:
pythonfrom pathlib import Path import re root = Path("force-push-wont-save-you") for p in root.rglob("*"): if p.is_file(): try: text = p.read_text(errors="ignore") except Exception: continue for m in re.findall(r"SecLeaf\{[^}]+\}", text): print(p, "=>", m)
Ý tưởng: Trong logs.zip có rất nhiều auth_*.log fake. Các fragment thật là các file log cũ hơn, sort theo mtime rồi nối hex lại.
bashunzip logs.zip -d logs_out cd logs_out/logs ls -lt grep -RInaE '[0-9a-f]{8,}' .
Script solve:
pythonfrom pathlib import Path import re logdir = Path("logs_out/logs") frags = [] for p in logdir.glob("*.log"): text = p.read_text(errors="ignore") m = re.search(r"[0-9a-f]{8,}", text) if m and not p.name.startswith("auth_"): frags.append((p.stat().st_mtime, p.name, m.group(0))) frags.sort() hex_data = "".join(x[2] for x in frags) print(bytes.fromhex(hex_data).decode()) for _, name, h in frags: print(name, h, bytes.fromhex(h).decode(errors="ignore"))
Output:
textSecLeaf{context_is_the_real_enemy}