Skip to main content

获取 HG5143F-ONU telecomadmin password 的本地小工具

Project description

telecomadmin_for_HG5143F-ONU

用于 搭载电信官方V4固件的 型号为HG5143F(ONU)的天翼光猫 的 超级密码获取工具

如果本项目帮到了你 那么请点亮右上角免费的Star吧 plz~

  • 2026-07-03 更新:沟槽的烽火居然发patch静默更新,把 telnet 开启渠道堵上了,遂拆机逆向,似乎挖出了隐藏的调试工具,有时间的话我会再做一版关于 fh_tool 的完整分析,如果你很急的话给我发电邮也可以,看到了就会回

How2Use

从 PyPI 直接运行

发布后无需手动安装,直接运行:

uvx telecomadmin-for-hg5143f-onu

脚本会自动探测 default gateway,并尝试从 ARP 表读取网关 MAC。

如果 ARP 表里没有网关 MAC,可以手动指定:

uvx telecomadmin-for-hg5143f-onu --mac AABBCCDDEEFF

如果 default gateway 探测不准,可以手动指定网关 IP:

uvx telecomadmin-for-hg5143f-onu --ip 192.168.1.1 --mac AABBCCDDEEFF

如果需要同时保持 Telnet 打开:

uvx telecomadmin-for-hg5143f-onu --ip 192.168.1.1 --mac AABBCCDDEEFF --enable-telnet

从源码运行

  1. 确保 光猫型号为HG5143F-ONU 固件版本v4

    本项目在软件版本V4.10.M5001p的光猫上测试通过.

  2. 准备一个 已安装 uv 的 Win10(或更高)/Linux 操作系统

  3. 克隆仓库:git clone https://github.com/gxxk-dev/telecomadmin_for_HG5143F-ONU.git

  4. 进入仓库目录并运行:uv sync

  5. 运行代码获取超管密码:uv run telecomadmin-for-hg5143f-onu

    脚本会自动探测 default gateway,并尝试从 ARP 表读取网关 MAC。

    如果 ARP 表里没有网关 MAC,可以手动指定:

    uv run telecomadmin-for-hg5143f-onu --mac AABBCCDDEEFF

    如果 default gateway 探测不准,可以手动指定网关 IP:

    uv run telecomadmin-for-hg5143f-onu --ip 192.168.1.1 --mac AABBCCDDEEFF

    如果需要同时保持 Telnet 打开:

    uv run telecomadmin-for-hg5143f-onu --ip 192.168.1.1 --mac AABBCCDDEEFF --enable-telnet

  6. 根据提示信息输入内容并确认以获取密码

  7. Done!

Build & Publish

构建 wheel 和 sdist:

uv build --clear

正式发布到 PyPI:

UV_PUBLISH_TOKEN='pypi-你的token' uv publish

也可以显式传 token:

uv publish --token 'pypi-你的token'

License

本项目在AGPL v3.0+许可下发布 作者Gxxk不对因使用此项目导致的任何纠纷/损失承担责任.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

telecomadmin_for_hg5143f_onu-0.1.0.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

telecomadmin_for_hg5143f_onu-0.1.0-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file telecomadmin_for_hg5143f_onu-0.1.0.tar.gz.

File metadata

  • Download URL: telecomadmin_for_hg5143f_onu-0.1.0.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for telecomadmin_for_hg5143f_onu-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cab3fe9134c642c6d0b5eb238b68c8944e6749230cbdb2de9570eeccdccb493e
MD5 56dbc950803a2f4474026f21802ac43b
BLAKE2b-256 d1356b160534b7f50827cb6158dd2cff8e491138ae42238d0543437255abb338

See more details on using hashes here.

File details

Details for the file telecomadmin_for_hg5143f_onu-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: telecomadmin_for_hg5143f_onu-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for telecomadmin_for_hg5143f_onu-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b5ce67b6b5157466692bd9ad3b5115af790ce9a5f7f78fd8681ed7dd745e8f7
MD5 e740c8b858d65fd4df99d404569f1f01
BLAKE2b-256 3219e683458500b7ceabbdb2961b8f3331863602f75804ebadb3e6722a8069ad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page