[Electronics] Pwn2Win - Top Secret


Top Secret

Molly was able to take pictures of a strange digital circuit sketch, along with an also strange message. All of these things were inside an envelope in a safe, which was labeled “Top Secret”.

We believe it might contain Butcher Corp’s plans for the future, can you help us read the message?

Link

Mirror

Id: top_secret

Total solves: 40

Score: 223

Categories: Eletronics

To solve this problem the circuit is first analyzed and divided in to different blocks based on their function. The circuit can be divided in to four different functional blocks: The counter, the Multiplexer (LED Matrix line driver), the input circuit (LED Matrix column driver) and the 8x8 LED Matrix (the Output).



The counter circuit counts from 0 to 7, the increments are done every falling edge. The clock is the 0 input. The output of the counter is a 3-line binary number that is the line selection input of the multiplexer circuit. The main input of the multiplexer is connected to a high signal (binary 1).

The multiplexer puts one line of its outputs (8 line multiplexer) in a high state and all others at a low state. The 3-line input from the counter selects the line which is to be put in a high state. The line output of the multiplexer is connected to a BJT transistor that connects the LED Matrix line to a low signal (binary 0) when this multiplexer output is in a high state. Basically, the BJT transistor works like a NOT gate.

In the input block every input is also connected to a BJT transistor. When an input is in the high state, the transistor connects the LED matrix column to a logical 0, and vice versa when the input is in a low state. Again, basically like a NOT gate. Some inputs have two transistors in series, so basically to NOT gates in series, and therefore here when the input signal is in a high state, the corresponding column is also in a high state.

Finally, in the LED matrix, every led is connected from a column to a line. A LED lights up when the column is in a logical high state and the line in a logical low state.

Combing this information with the received input sequence and aligning the date with all the inputs (0 to 8), it is possible to decode what is shown in the LED matrix. To do this, the data is aligned and then imported to excel where, with some simple logic, the needed bits are flipped (based on the NOT inputs) and then with conditional formatting the LED outputs are simulated, RED is an off led and green a ON led. This is shown in the picture below, for the first character only, where the table on the left is the original data and the table on the left the interpreted data.



The full excel file can be found in this link.