$ cat writeup.md…
$ cat writeup.md…
HackTheBox
The challenge simulates an attack on a BB84-like Quantum Key Distribution (QKD) protocol. We play the role of a compromised Trusted Node between Transmitter (Alice) and Receiver (Bob). The goal is to intercept the quantum key, encrypt the command `TX|FETCH|SECRET`, and send it to the Receiver to obt
$ cat /etc/rate-limit
Rate limit reached (20 reads/hour per IP). Showing preview only — full content returns at the next hour roll-over.
The challenge simulates an attack on a BB84-like Quantum Key Distribution (QKD) protocol. We play the role of a compromised Trusted Node between Transmitter (Alice) and Receiver (Bob). The goal is to intercept the quantum key, encrypt the command TX|FETCH|SECRET, and send it to the Receiver to obtain the flag.
k identical copies of the qubit are created (k = Poisson(λ=2) + 2, i.e., k ≥ 2, average ~4)-1) to the Receiverserver.py — TrustedNode: accepts our gates, measures/passes qubitstransmitter.py — Alice: generates qubits, checks basis matchesreceiver.py — Bob: measures qubits, processes commands, stores FLAGutil.py — XOR, validate_entropy (≥64 bits, binomial test p > 0.01)In real BB84, each qubit is a single photon, and measurement destroys the state. Here TX creates k ≥ 2 identical copies of each qubit. This is the classic PNS vulnerability — we can take some copies for ourselves while forwarding the rest to Bob without distortion.
...
$ grep --similar