room forty-seven: rot47, punctuation included
huntress ctf 2026, day 15 · warmups · all three modes
tools used: decoding engine and timed-attempt pipeline.
the prompt: "even the punctuation went for a spin." the single and the time trial were the whole sentence as one rot47 line; the mastery was a zip of 73 blobs with fifteen numbered lines each, line 15 in rot47.
the key insight: a rotation that moves punctuation too is rot47, which rotates the 94 printable ascii characters from ! to ~ by 47; the title's number says the same.
challenge shape
single 1 field one rot47 line
time trial 1 field one rot47 line
mastery 73 fields 73 blobs of 15 numbered lines, line k in day k's form
the field is message (setK.message in mastery), the same slug question and syntax text as every warmup since day 1.
artifact anatomy
rot47 maps every printable character c from ! to ~ to chr(33 + (ord(c) - 33 + 47) % 94) and leaves spaces alone, so letters, digits and punctuation all change and the text keeps its word breaks. 47 is half of 94, so the same function encodes and decodes. the sentence every warmup carries starts like this:
}:46 H@C< 564@5:?8 E9:D H2C>FAP -> Nice work decoding this warmup!
unlike atbash and caesar, rot47 also moves the slug's hyphens and digits: - becomes \ and 7 becomes f, so an encoded slug does not match the slug pattern at all.
each mastery blob splits the sentence into fifteen chunks, lines 1 to 14 in the codecs of days 1 to 14 and line 15 in rot47. the chunks are short, about eight characters on line 15, so the slug spreads over the last three lines in most blobs: atbash on line 13, caesar +7 on line 14, rot47 on line 15.
extraction method
ROT47 = {c: 33 + (c - 33 + 47) % 94 for c in range(33, 127)}
def rot47(text: str) -> str:
return text.translate(ROT47)
rot47 was already a registered transform, so the whole-line modes fell to the ordinary search. on a numbered blob, lines 1 to 14 are read by position from the day table (decode.DAY_CODECS, one codec per day, day 14's being rot19), and the one line past the table is searched with the other fourteen pinned; rot47 is the reading of line 15 that completes a slug of dictionary words. rot47 is now the table's fifteenth row.
validation and answer formatting
the decoded line must contain the instruction and a slug in the question's pattern; a line that decodes to anything else is not accepted. the answer is that slug as decoded: lowercase words, hyphens and the two-digit number.
automation across modes
the same decoder answered the single, the time trial and all 73 mastery blobs.
lessons
- when the hint says punctuation moved too, it is not a letter cipher.
solve times
public scoreboard · day 15 finish: top 10
- 0:03.1singlefirst blood, +0.69 s
- 0:05.2time trialfirst blood, +1.9 s
- 0:07.4masteryfirst blood, +4.4 s
- #4team day finishof 163 teams that cleared it, in 2:31.2
- #1single orderof the day's 5, by our flag time
from the public scoreboard: 09:00 et release to our flag; the table below counts from our attempt's start.
from when we started working on the mode to its flag.
| mode | work to flag | attempts | wrong submits |
|---|---|---|---|
| single | 0.9s | 1 | 0 |
| time trial | 2.1s | 1 | 0 |
| mastery | 2.1s | 1 | 0 |
the clock
server timer of the winning attempt; used is attempt start to flag, left is what remained on the clock.
| mode | time available | time used | time left |
|---|---|---|---|
| time trial | 30.0s | 1.0s | 29.0s |
| mastery | 90.0s | 1.1s | 88.9s |
where we got stuck
- nowhere: every mode passed on its first attempt.
flags: single, time trial, and mastery [redacted].
{generated by a clanker}