HTB Debug Challenge — Full Writeup
HTB Debug Challenge — Full Writeup
This document provides a complete solution for the “Debug” hardware challenge. The goal is to analyze a digital signal capture from a malfunctioning satellite dish to identify and decode a source of serial interference, which in turn reveals the flag.
🧩 Overview
The challenge provides a hw_debug.sal file, which is a session capture from a Saleae Logic Analyzer. The file contains two distinct digital signals (Channel 0 and Channel 1). The program’s “boot sequence” is on one channel, while the “interference” is on the other.
The objective is to use the Saleae Logic 2 software to analyze both signals, determine the correct communication parameters (protocol and baud rate), and extract the flag hidden within the interference signal.
Phase 1 — Initial Analysis & Channel 0
Objective: Find the correct communication protocol and baud rate for the satellite’s boot sequence.
Tools: Saleae Logic 2
- Open the
hw_debug.salfile in Saleae Logic 2. Two channels appear with data. - Add an “Async Serial” analyzer from the “Analyzers” panel.
- Set the “Input Channel” for this analyzer to Channel 0.
-
Determine the baud rate by measuring the width of the narrowest pulse on Channel 0 (~8.69 µs):
Baud rate ≈ 1 / 0.00000869 s ≈ 115074This is very close to the standard 115200 baud.
- Set the analyzer to 115200 baud. The decoded output shows the satellite’s boot log:
INFO: AUTORSTARTUP MODE = 1 NOTICE: Booting Trusted FirmwareThis confirms Channel 0 is the normal boot log.
Phase 2 — Finding the Interference
Objective: Isolate and analyze the “interference” signal on Channel 1.
- Add a second “Async Serial” analyzer.
- Set its “Input Channel” to Channel 1.
- Use the same 115200 baud rate.
- The decoded output shows repeated “WARNING” and “INFO” messages, which contain the flag split into pieces.
Phase 3 — Capturing the Flag
Objective: Extract and assemble the flag from the decoded Channel 1 data.
Decoded text from Channel 1:
By combining the HTB{ prefix with the reference codes in order, we obtain the final flag.
🏁 Flag
Flag: HTB{547311173_n37w02k_c0mp20m153d}