$ cat writeup.md…
$ cat writeup.md…
hackthebox
We have found the garage where some cyber criminals have all their stuff. Using an SDR device, we captured the signal from the remote key that opens the garage. Can you help us to analyze it?
$ cat /etc/rate-limit
Rate limit reached (20 reads/hour per IP). Showing preview only — full content returns at the next hour roll-over.
We have found the garage where some cyber criminals have all their stuff. Using an SDR device, we captured the signal from the remote key that opens the garage. Can you help us to analyze it?
Files provided:
signal.cf32 - A radio signal capture file (Complex Float 32-bit format, 3.8MB, 476160 samples)The .cf32 file is a Complex Float 32-bit format commonly used by SDR (Software Defined Radio) tools like GNU Radio. Each sample consists of two 32-bit floats representing:
This is the standard IQ format for representing radio signals in the digital domain.
After loading the samples:
The bimodal distribution (low median, higher mean) immediately suggests OOK (On-Off Keying) modulation - the signal is either "on" (high amplitude) or "off" (low amplitude).
Applying a threshold of 0.5 to the magnitude revealed a clear binary pattern:
#!/usr/bin/env python3 import numpy as np # Load complex samples samples = np.fromfile('signal.cf32', dtype=np.complex64) print(f"Loaded {len(samples)} samples") # Convert to amplitude (OOK demodulation) magnitude = np.abs(samples) # Apply threshold for binary conversion threshold = 0.5 binary_signal = (magnitude > threshold).astype(int)
# Find transitions transitions = [] for i in range(1, len(binary_signal)): if binary_signal[i] != binary_signal[i-1]: transitions.append(i) ...
$ grep --similar