urh README

The project's README from github.com/jopohl/urh. As one markdown file: README.md.

URH image

CI Code style: black PyPI version Packaging status Blackhat Arsenal 2017 Blackhat Arsenal 2018

The Universal Radio Hacker (URH) is a complete suite for wireless protocol investigation with native support for many common Software Defined Radios. URH allows easy demodulation of signals combined with an automatic detection of modulation parameters making it a breeze to identify the bits and bytes that fly over the air. As data often gets encoded before transmission, URH offers customizable decodings to crack even sophisticated encodings like CC1101 data whitening. When it comes to protocol reverse-engineering, URH is helpful in two ways. You can either manually assign protocol fields and message types or let URH automatically infer protocol fields with a rule-based intelligence. Finally, URH entails a fuzzing component aimed at stateless protocols and a simulation environment for stateful attacks.

Getting started

In order to get started

If you like URH, please :star: this repository and join our Slack channel. We appreciate your support!

Citing URH

We encourage researchers working with URH to cite this WOOT'18 paper or directly use the following BibTeX entry.

URH BibTeX entry for your research paper
@inproceedings {220562,
author = {Johannes Pohl and Andreas Noack},
title = {Universal Radio Hacker: A Suite for Analyzing and Attacking Stateful Wireless Protocols},
booktitle = {12th {USENIX} Workshop on Offensive Technologies ({WOOT} 18)},
year = {2018},
address = {Baltimore, MD},
url = {https://www.usenix.org/conference/woot18/presentation/pohl},
publisher = {{USENIX} Association},
}

Installation

URH runs on Windows, Linux and macOS. See below for OS specific installation instructions.

Windows

On Windows, URH can be installed with its Installer. No further dependencies are required.

If you get an error about missing api-ms-win-crt-runtime-l1-1-0.dll, run Windows Update or directly install KB2999226.

Linux

Installation with pipx

URH is available on PyPi so you can install it, for example, with pipx:

pipx install urh

This is the recommended way to install URH on Linux because it comes with all native extensions precompiled.

In order to access your SDR as non-root user, install the according udev rules. You can find them in the wiki.

Install via Package Manager

URH is included in the repositories of many linux distributions such as Arch Linux, Gentoo, Fedora, openSUSE or NixOS. There is also a package for FreeBSD. If available, simply use your package manager to install URH.

Note: For native support, you must install the according -dev package(s) of your SDR(s) such as hackrf-dev before installing URH.

Docker Images

The official URH docker image is available here. It has all native backends included and ready to operate.

macOS

Using DMG

It is recommended to use at least macOS 13 when using the DMG available here.

With brew

URH is available as a homebrew formula so you can install it with

brew install urh

Running from source (OS-agnostic)

Without installation

To execute the Universal Radio Hacker without installation, just run:

git clone https://github.com/jopohl/urh/
cd urh/src/urh
PYTHONPATH=.. ./main.py

Note, before first usage the C++ extensions will be built.

Installing from source

To install URH from source you need to have python-setuptools installed. You can get them with python3 -m pip install setuptools. Once the setuptools are installed execute:

git clone https://github.com/jopohl/urh/
cd urh
python setup.py install

And start the application by typing urh in a terminal.

Articles

Hacking stuff with URH

General presentations and tutorials on URH

External decodings

See wiki for a list of external decodings provided by our community! Thanks for that!

Screenshots

Get the data out of raw signals

Interpretation phase

Keep an overview even on complex protocols

Analysis phase

Record and send signals

Record

urh (jopohl/urh)

Searching Database…

12.6K ·GitHub
archived
这是什么?URH(Universal Radio Hacker)是一套用于分析无线协议的软件:它通过 SDR 硬件捕获无线电信号,借助自动调制识别进行解调,并帮助你逆向分析在空中传输的比特和字节。
这是图形界面应用,还是可以导入代码使用的库?它是基于 Qt 构建的独立桌面图形界面应用,应当安装后作为程序运行,而不是作为库导入代码。
如何在我的操作系统上安装 URH?Windows 上使用官方安装程序;Linux 上推荐使用 pipx(它自带预编译的原生扩展),也可以使用发行版的包管理器或官方 Docker 镜像;macOS 上使用 DMG 或通过 Homebrew 安装。你也可以不安装,直接从源代码运行。
使用它是否需要真正的 SDR 硬件?需要。URH 本来就是用来驱动真实软件定义无线电设备的,例如 HackRF、RTL-SDR、USRP、LimeSDR、AirSpy、bladeRF 或 SDRplay。在 Linux 上,安装 URH 之前还需要配置允许非 root 用户访问 USB 设备的 udev 规则,并安装适用于你所用 SDR 的原生驱动包。
这个项目还在积极维护吗?不再维护。该仓库已归档,意味着它不再接收更新和错误修复,也不会为新的操作系统版本或 SDR 驱动提供兼容性补丁。
URH 与在通用 SDR 工具中仅查看原始信号有什么不同?URH 不止于信号显示:它能自动识别调制参数,解码 CC1101 数据白化等较复杂的编码,并允许你手动或自动从捕获的流量中推断协议字段和消息类型。
我能对捕获的协议进行模糊测试或重放吗?可以。URH 包含针对无状态协议的模糊测试组件,以及用于构造有状态攻击的仿真环境,因此你可以录制信号、修改后再重新发送。
有没有用 URH 完成的真实案例?README 中链接了一些实例文章,包括对无线百叶窗的逆向分析、气象站射频信号、遥控电源插座,以及对无线键盘和演示遥控器的攻击。
社区能否为新的编码添加支持?可以。URH 支持自定义解码,项目 wiki 中还列出了社区贡献的外部解码方案。
Creator
jopohl
Size
54 MB
Stars
12.6K
Age
10y
Commits · 90 Days