/ufiber_nano_serial_hack

UFiber Nano G - Serial Hack

Primary LanguagePythonGNU Affero General Public License v3.0AGPL-3.0

UFiber Nano G and UFiber LOCO - Serial Hack

https://community.ubnt.com/t5/UFiber-GPON/UFiber-Nano-G-GPON-Huawei-HG8245-Configuration/m-p/2139059#M511

Dependencies

pip3 install paramiko scp

Usage

Сhange your serial number on UFiber Nano G via ssh

./ubi_serial_hack.py -r 192.168.1.1 -p 22 --serial 48:57:54:43:30:30:30:30

Change your serial and MAC

./ubi_serial_hack.py -r 192.168.1.1 -p 22 --serial 48:57:54:43:30:30:30:30 --mac 11:22:33:44:55:66

Manual method. Put the mtdblock3.BIN in the script folder and run with --nossh flag.

./ubi_serial_hack.py --nossh --serial 48:57:54:43:30:30:30:30

Ignoring abnormal termination with unsupported boards.

./ubi_serial_hack.py --insecure --serial 48:57:54:43:30:30:30:30

Read only from filepath

./ubi_serial_hack.py -f mtdblock3.BIN

UFiber LOCO tips

Before using the script firmware should be upgraded to version 4.2.1 and SSH should be enabled from the device admin panel. Script will compain about firmware checksum on UFiber LOCO devices so to continue installation you need to use --insecure flag

./ubi_serial_hack.py -r 192.168.1.1 -p 22 --serial 48:57:54:43:30:30:30:30 --mac 11:22:33:44:55:66 --insecure

Tested

UFiber NANO G Firmware versions: v2.1.1 and v4.1.0

UFiber LOCO Firmware versions: v4.2.1

Used links

https://web.archive.org/web/20190214022357/https://blog.onedefence.com/changing-the-gpon-serial-on-the-ubiquiti-ufiber-nano-g-part-two/

https://github.com/palmerc/AESCrypt2

https://github.com/dylangerdaly/UFiber-Nano-G-Playpen