fritz-core
FRITZ!Box specific logic on top of the vendor-neutral
tr064 client. It is the library behind the
fritz CLI and MCP server, and can be used
on its own to read a FRITZ!Box from Rust.
Unofficial, not affiliated with FRITZ! GmbH.
- Reads the state of a device: an overview, hosts, mesh, wireless networks, the internet connection, port forwardings, telephony and settings. Parts the device lacks, or that the user may not read, are left out instead of failing the whole read
- Classifies every action by the names in its service description (read, denied getter, write, critical) before anything is sent, and only calls plain getters when reading
- Redacts passwords, keys and other secrets in every value the device returns
- Calls, phonebooks and the event log are personal and live in their own module
- Logs in to the web interface (
login_sid.lua, PBKDF2 or MD5) for the Smart Home REST API of FRITZ!OS 8.20 and later, without ever retrying a rejected login - Maps the faults of the second factor (UPnP errors 866, 867 and 868) and missing rights
- Profiles, passwords from the environment or the keychain of the operating system, and certificate pinning
- Records fixtures from a device (reads only) and anonymizes them, for
fritz-sim
Changes to devices need the feature write (change::Changer). It is off by
default, so builds without it can only read.
Example
use Reader;
use status;
use ;
async
Use a user of its own for this, with only the rights it needs; see the setup of the device.
License
Apache-2.0