Challenge
The observatory closed in 1983. Its receiver did not. […] There are three windows. At each window, set the aperture, bearing, and delay. Keep the carrier through all three and the missing record is yours. I have not moved the stars. You may check.
Given: observatory (x86-64 PIE: Full RELRO, canary, NX, FORTIFY) and instrument.svg, a
maintenance diagram showing an aperture, a bearing rail, a delay drum and readout sockets
0..7.
Analysis
strings gives the interface:
Usage: %s [--trace] aperture bearing delay (three observations)
Controls: integers 0..63. Trace format: frame | eight instrument readings.
Observation %u: carrier lost.
Observation %u: carrier locked.
Recovered record:
So the program takes nine integers in 0..63 — (aperture, bearing, delay) for each of three
observations — and --trace prints eight 32-bit “instrument readings” per frame. The SVG
shows the same three controls and the eight readout sockets.
Running it showed the key behaviour: the observations are checked in order, and the program
exits on the first failure, printing Observation N: carrier lost.. That is a per-stage
oracle. Each stage has only 64³ = 262,144 possible inputs, so the stages can be solved one
after another instead of searching 64⁹ at once.
Solve
A shell brute-forcer runs the binary for each candidate triple and looks for
Observation N: carrier locked. The work split across 12 cores with
split -n r/12 --filter.
| Stage | Fixed prefix | Result (unique) | Time |
|---|---|---|---|
| 1 | none | 51 7 26 |
~37 s |
| 2 | 51 7 26 |
4 61 11 |
~40 s |
| 3 | 51 7 26 4 61 11 |
23 2 49 |
~40 s |
$ ./observatory 51 7 26 4 61 11 23 2 49
Observation 1: carrier locked.
Observation 2: carrier locked.
Observation 3: carrier locked.
Recovered record:
csaw{th3_0bs3rv3r_r3m3mb3rs_th3_0rd3r}
The flag — “the observer remembers the order” — names the intended weakness: the state carries over in order and each window is checked separately, so the 54-bit search breaks into three 18-bit searches.
Flag
csaw{th3_0bs3rv3r_r3m3mb3rs_th3_0rd3r}
Solver files
bf1.sh— stage brute-forcer (args: <prefix> <suffix> <stage#>, candidate triples on stdin)obs1.txt,obs2.txt,obs3.txt— per-stage results