A socket console modelling a relay station's address bookkeeping. Two maps lay out the same five lane names over different ranges, and each manifest packs two batches into a lane from an unsigned start. A CRT preview reports the last byte of the manifest - but a shipment can be cancelled, so the ledger only packs the committed batches, and the byte that actually got filed can sit well before the previewed one.
Reading the console
journal order of map changes and filed receipts
map <AMBER|TEAL> lanes as [start, end), end excluded
index archived job tickets
log <ticket> dispatch manifest and its CRT preview
receipt <id> committed batches for a manifest
report <ticket> <AMBER|TEAL> <full-end-hex> <signed-only-ticket>
Five lanes per map name: INTAKE, MONITOR and JOURNAL are small consecutive low-memory windows,
MIRROR straddles 0x80000000, UPLINK is the last 4 KiB of the 32-bit space. All redrawn on every
connect.
Insight
AMBER's MONITOR ends exactly where TEAL's INTAKE keeps going. That overlap is the whole challenge.
Working out "preview-signed"
log DUNE prints start=0xfffff340 a=132x32 b=134x32 preview-signed=5247. a/b are records
times bytes-per-record (4224 and 4288 bytes). The preview counts both batches: last byte at
0xfffff340 + 8512 - 1 = 0x10000147f, low 32 bits 0x147f, read as signed int32 = 5247. So the
preview is a 64-bit address truncated to 32 bits and read as int32.
Pitfall
I did this addition on paper once and invented a carry that wasn't there, which sent me looking for a third hidden batch for a while. Doing the same arithmetic in a script settled it instantly.
The ledger packs only committed batches
receipt R24 answers committed=A, B, or AB - that set, not the manifest, decides how many
bytes were actually filed:
committed last byte = start + bytes_of_committed_batches - 1
A manifest with committed=A whose preview included both batches reports a carry the ledger
never recorded - that's the cancelled shipment.
Two predicates, one report line
1/2Question 1: the MONITOR carry
The committed last byte carries past 0x100000000, and with the carry dropped, the resulting
address falls inside MONITOR of the map active when the receipt was filed. In the solving
session, DUNE (AMBER, both batches committed, 8384 bytes from 0xfffff340) lands its last byte
at 0x1000013ff -> dropped carry 0x13ff, exactly the last byte of AMBER MONITOR
[0x13a0,0x1400). COVE had the identical arithmetic but was filed under TEAL, where 0x13ff
falls in INTAKE instead - same math, different alarm, which is exactly the pair the question is
asking about.
2/2Question 2: the MIRROR sign-bit cross
The committed last byte crosses 0x80000000 from a start below it, while the whole span
[start, end) stays inside the manifest's own lane as drawn in the filing map. Both halves
matter - a manifest that starts near the top can cross the sign bit and still poke its span out
past the lane. In the solving session this was REED (TEAL, start 0x7fffffe0, 128 committed
bytes, last byte 0x8000005f, span ending at 0x80000060 - inside MIRROR).
Pitfall
PINE looked like a near-miss for Q1: same AMBER map, same start, also carries - but with both
batches totalling 8512 bytes it lands on 0x147f, AMBER's JOURNAL, not MONITOR. Carrying isn't
sufficient on its own, and landing in MONITOR without carrying isn't either (true for the small
INTAKE/MONITOR manifests that never leave low memory).
The state regenerates per connection
My first pass dumped everything, computed offline, and reported - by the time I asked, none of it was still true. The ticket-to-receipt assignment, the journal order, the starts: all redrawn on connect. The script has to read, compute and report inside one session, and only sends anything once each question has exactly one candidate.
report DUNE AMBER 0x100001400 REED Report accepted. RxR{fcb1e8e4-487e-474a-a0ac-30ee8d5f9bc3}
(The full exclusive end is the untruncated value, 0x100001400, not 0x1400.)
Note
The console sprinkles margin notes like "the monkey stamped the ledger rxr{monkey_laugh_at_you}"
into journal and receipt output - noise, consistent with this event's other planted bait. The
only string that mattered came after Report accepted.
Show the full solve script
1#!/usr/bin/env python3
2"""Broken Boundaries: one-connection dump -> compute -> report."""
3import socket, re, sys
4
5HOST, PORT = "80.241.212.197", 10903
6
7class C:
8 def __init__(self):
9 self.s = socket.create_connection((HOST, PORT), timeout=10)
10 self.s.settimeout(4.0)
11 self.buf = b""
12 def read_prompt(self):
13 while not self.buf.endswith(b"bb> "):
14 try:
15 d = self.s.recv(65536)
16 except socket.timeout:
17 break
18 if not d:
19 self.buf += b"<EOF>"
20 break
21 self.buf += d
22 out, self.buf = self.buf, b""
23 return out.decode("utf-8", "replace")
24 def cmd(self, line):
25 self.s.sendall(line.encode() + b"\n")
26 return self.read_prompt()
27
28def parse_map(text):
29 m = {}
30 for ln in text.splitlines():
31 g = re.match(r"(INTAKE|MONITOR|JOURNAL|MIRROR|UPLINK) "
32 r"\[(0x[0-9a-fA-F]+), (0x[0-9a-fA-F]+)\)", ln.strip())
33 if g:
34 m[g.group(1)] = (int(g.group(2), 16), int(g.group(3), 16))
35 return m
36
37def main():
38 live = "--live" in sys.argv
39 c = C()
40 if "Jungle relay" not in c.read_prompt():
41 print("UNEXPECTED BANNER"); return
42
43 journal = c.cmd("journal")
44 maps = {n: parse_map(c.cmd("map " + n)) for n in ("AMBER", "TEAL")}
45 tickets = re.search(r"Tickets:\s*(.*)", c.cmd("index")).group(1).split()
46
47 filing, active = {}, None
48 for ln in journal.splitlines():
49 g = re.match(r"map (AMBER|TEAL)", ln.strip())
50 if g:
51 active = g.group(1)
52 g = re.match(r"file (R\d+)", ln.strip())
53 if g:
54 filing[g.group(1)] = active
55
56 jobs = {}
57 for t in tickets:
58 g = re.search(r"receipt=(R\d+) lane=(\w+) start=(0x[0-9a-fA-F]+) "
59 r"a=(\d+)x(\d+) b=(\d+)x(\d+) preview-signed=(-?\d+)",
60 c.cmd("log " + t))
61 jobs[t] = dict(receipt=g.group(1), lane=g.group(2), start=int(g.group(3), 16),
62 a=int(g.group(4)) * int(g.group(5)),
63 b=int(g.group(6)) * int(g.group(7)),
64 preview=int(g.group(8)))
65
66 committed = {}
67 for r in sorted({j["receipt"] for j in jobs.values()}):
68 g = re.search(r"committed=(\w*)", c.cmd("receipt " + r))
69 committed[r] = g.group(1) if g else ""
70
71 q1, q2 = [], []
72 for t, j in jobs.items():
73 fmap = filing[j["receipt"]]
74 cm = committed[j["receipt"]]
75 total = (j["a"] if "A" in cm else 0) + (j["b"] if "B" in cm else 0)
76 last, end = j["start"] + total - 1, j["start"] + total
77 low = last & 0xFFFFFFFF
78 lane = maps[fmap][j["lane"]]
79 mon = maps[fmap]["MONITOR"]
80 if last >= 1 << 32 and mon[0] <= low < mon[1]:
81 q1.append((t, fmap, end))
82 if j["start"] < 0x80000000 <= last and j["start"] >= lane[0] and end <= lane[1]:
83 q2.append((t, fmap))
84
85 if len(q1) != 1 or len(q2) != 1:
86 print("ambiguous, not reporting"); return
87 t, fmap, end = q1[0]
88 print(c.cmd("report %s %s 0x%x %s" % (t, fmap, end, q2[0][0])))
89
90main()
Flag
RxR{fcb1e8e4-487e-474a-a0ac-30ee8d5f9bc3}