$ cat writeup.md…
$ cat writeup.md…
fortid2026
Task: a network service wraps a stripped ELF that bundles quirc; stdin must be a 21x21x21 binary cube whose 6 orthogonal OR-projections decode as six fixed QR words. Solution: build transpose-dual QR codes (mask 3, GF(2) RS-syndrome solve) and realize three axis-shadows as one 243-voxel cube under the 244-voxel gate.
$ cat /etc/rate-limit
Rate limit reached (20 reads/hour per IP). Showing preview only — full content returns at the next hour roll-over.
Cubism Gallery
███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███A painting is more than the sum of its blocks.
Welcome, artist. Submit your cubist painting below. The curator will begin after the final row.
English summary: a TLS-wrapped TCP service (ncat --ssl <host> 1337) reads exactly
SIDE_LENGTH * SIDE_LENGTH = 441 lines via sys.stdin.buffer.readline(21 + 2),
concatenates them, and pipes the result to a bundled ./checker. If the checker
exits 0, the service prints the FortID{...} flag; otherwise it rejects the
"painting". The goal is to craft a 441-line "cubist painting" that makes the
stripped checker happy.
server.py)painting = b"".join(sys.stdin.buffer.readline(23) for _ in range(441)).subprocess.run(["./checker"], input=painting, env={}, timeout=5), return code 0 ⇒ flag.So the entire problem is inside checker: a stripped x86-64 PIE ELF that statically
bundles the quirc QR-decoding library.
It reads 441 lines, each exactly 21 characters of # (bit 1) or . (bit 0),
and interprets them as a 21 x 21 x 21 binary cube C[a][b][c]:
line index L in [0,440] -> a = L // 21 , b = L % 21
character position c in the line -> C[a][b][c]
Hard voxel gate: the total number of # across all 441 lines must be
<= 244 (cmp rbx, 0xf4 ; ja reject at 0x1172).
...
$ grep --similar