$ cat writeup.md…
$ cat writeup.md…
sunshinectf2026
Task: a Microsoft Keyboard Layout Creator (.klc) file whose DEADKEY blocks chain via an @ suffix. Solution: decode UTF-16LE, walk the dead-key chain from the grave key (0060) until it terminates at U+2600 (☀); the typed input characters spell the flag.
$ cat /etc/rate-limit
Rate limit reached (20 reads/hour per IP). Showing preview only — full content returns at the next hour roll-over.
anon hasn't been outside in years, so he put the sun in his keyboard. find the flag he types to bring it out.
Provided file: boardwriter.klc, a Microsoft Keyboard Layout Creator (MSKLC) source file, UTF-16LE encoded. Goal: recover the flag (sun{...}) that "brings the sun out."
The .klc extension identifies a Microsoft Keyboard Layout Creator source file. These are UTF-16LE text, so the first step is a decode to UTF-8 for readable inspection.
An MSKLC file has a LAYOUT section mapping scancodes to characters, followed by any number of DEADKEY blocks. A dead key does not emit a character immediately: it waits for the next keypress and combines with it. In .klc format a dead key block looks like:
DEADKEY <deadkey_code>
<input_char_hex> <result_code>[@]
The critical detail is the trailing @:
LAYOUT entry, @ marks the produced code point as itself a dead key.DEADKEY result line, @ means the produced character is again a dead key, i.e. the chain continues.The theme is the wordplay: "put the sun in his keyboard" and "bring it out." The sun is the code point U+2600 ☀ (BLACK SUN WITH RAYS). So the intended path is a chain of dead keys that terminates by producing U+2600. Each step of the chain consumes exactly one typed character; concatenating those typed characters yields the flag ("the flag he types to bring it out").
...
$ grep --similar