glinet-profiler
A small local web launcher that captures a GL.iNet router's API surface (read-only), sanitizes it into a shareable profile, checks whether that device + firmware is already in the registry, and lets you download it or open a prefilled submission.
Your password never leaves your machine: it goes from your browser to a
local server (127.0.0.1) to your own router. Nothing is uploaded unless you
deliberately submit.
Built with AI assistance. Most of this code was written by Claude — human-directed, reviewed change by change, and verified against real hardware. It's open source; read it and judge for yourself. The read-only-by-default behaviour and the sanitization are the parts to scrutinise.
Why a local launcher and not a public site? GL.iNet's RPC sends no CORS headers, so a public browser page cannot talk to your local router. The enumeration therefore runs server-side in this launcher (native Python, which is not subject to CORS), and the UI is served locally.
Quick start
Once published you'll be able to run it with no install:
uvx glinet-profiler
From a source checkout:
uv run glinet-profiler # starts the launcher, opens your browser
uv run glinet-profiler --no-browser --port 8765
Then enter your router URL (e.g. http://192.168.8.1), username (root), and
password, and click Capture. You'll get a sanitized profile, a
"already-known / new" banner, and Download / Submit actions.
What's in the profile (and what isn't)
The published profile keeps the device model + firmware, non-identifying capability flags (regulatory region + the software/hardware feature map), and the per-method API shape: status, risk, gli4py coverage, params, and a response signature.
The signature is distilled from a real response — on your machine, before
anything is written. Field structure and safe example values (numbers,
booleans, and short enum-like strings such as "5g" / "ap") are kept because
they're the API contract; anything that could identify you or your network is
replaced with a format label, never a real value:
| kept verbatim | replaced with a format label |
|---|---|
numbers, booleans, enums ("5g") |
MAC → <mac> · IPv4 / IPv6 → <ipv4> / <ipv6> |
| field names + nesting | timestamps → <datetime> |
passwords / keys / tokens / serials → <secret> |
|
SSIDs / hostnames / domains / free text → <string> |
Dropped entirely: device identifiers (mac, sn, sn_bak), credentials, and
every raw response body. Your real IPs, hostnames, SSIDs, MACs, and secrets are
never published — only their format. (--keep-data keeps the redacted values
locally for your own analysis; that output is not registry-publishable, and the
registry's validator independently rejects any MAC, serial, or raw value.)
Enumeration is strictly read-only (a built-in catalog tier, plus an optional SSH read tier if you tick the box and have SSH access).
Security
- The launcher binds
127.0.0.1only and guards its API with a per-run session token plus a localhost host check (so no other web page can drive it). - The password is used only to log into your router from the local process and is never persisted, logged, or sent anywhere remote.
How it fits with gli4py and the registry
This package is the capture launcher only. The enumeration engine lives
inside it (glinet_profiler/enumerator/, originally developed in the gli4py
project) — there is no runtime dependency on gli4py (deps are just
aiohttp, paramiko, libpass).
- gli4py — the typed GL.iNet Python client library. Each captured profile records, per method, whether the gli4py client already wraps it ("coverage") — a lens for Python developers.
- glinet-registry — the public, community registry of device profiles (browse site + submission bot). The launcher fetches its manifest to tell you whether a device is already known, and Submit opens its issue form. It releases independently of this package.
Development
uv sync --all-extras --dev
uv run pytest -q
uv run ruff check . && uv run mypy src && uv run pylint $(git ls-files '*.py')
The three repos
- glinet-profiler (this repo) — the capture launcher + enumeration engine.
- glinet-registry — the device-profile data, browse site, and submission bot.
- gli4py — the GL.iNet Python client library (the "coverage" lens shown in each profile).
License
GPL-3.0-or-later.
Metadata
Release files for glinet-profiler 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| glinet_profiler-0.3.0.tar.gz | 218.0 kB | With provenance | Details for glinet_profiler-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| glinet_profiler-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for glinet_profiler-0.3.0-py3-none-any.whl |
Total release size: 271.8 kB
Release files / glinet_profiler-0.3.0.tar.gz
| Download URL | glinet_profiler-0.3.0.tar.gz |
|---|---|
| Size | 218.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c25020d8db2ad11f88af380242c9d7a31900b706d5872276f2a65d6442c4bace
|
|
BLAKE2b-256 checksum How to use checksums |
02cd87285463a073f6c5fe6d4c57a0e690b553dc1efdff0da7ede1e5b023685c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 29, 2026.
Transparency logRelease files / glinet_profiler-0.3.0-py3-none-any.whl
| Download URL | glinet_profiler-0.3.0-py3-none-any.whl |
|---|---|
| Size | 53.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e47f98fc5035386fd167d08cafeb0b039a63f26212141d1ab554f453e9a36ab0
|
|
BLAKE2b-256 checksum How to use checksums |
f2b98fcdaa811dfc709bdcd15d4b754c8564555111f32757e167aa118a1dcd6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 29, 2026.
Transparency logSecurity for glinet-profiler 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for glinet_profiler-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.