|
1 | 1 | # zte_factroymode.py |
2 | 2 |
|
3 | | -open telnet: |
4 | | -`python3 zte_factroymode.py --user CUAdmin --pw CUAdmin -- telnet open` |
| 3 | +open telnet(use embed user/pass to 192.168.1.1 80): |
| 4 | + |
| 5 | +`python3 zte_factroymode.py telnet` |
| 6 | + |
| 7 | +or custom args |
| 8 | + |
| 9 | +`python3 zte_factroymode.py --user CUAdmin --pw CUAdmin -- 192.168.1.1 80 telnet open` |
| 10 | + |
| 11 | +```shell |
| 12 | +$ python3 zte_factroymode.py -h |
| 13 | +usage: https://github.com/douniwan5788/zte_modem_tools |
| 14 | + |
| 15 | +positional arguments: |
| 16 | + ip route ip (default: 192.168.1.1) |
| 17 | + port router http port (default: 80) |
| 18 | + |
| 19 | +options: |
| 20 | + -h, --help show this help message and exit |
| 21 | + --user USER [USER ...], -u USER [USER ...] |
| 22 | + factorymode auth username (default: ['factorymode', 'CMCCAdmin', 'CUAdmin', 'telecomadmin', 'cqadmin', 'user', |
| 23 | + 'admin', 'cuadmin', 'lnadmin', 'useradmin']) |
| 24 | + --pass PW [PW ...], -p PW [PW ...] |
| 25 | + factorymode auth password (default: ['nE%jA@5b', 'aDm8H%MdA', 'CUAdmin', 'nE7jA%5m', 'cqunicom', '1620@CTCC', |
| 26 | + '1620@CUcc', 'admintelecom', 'cuadmin', 'lnadmin']) |
| 27 | + |
| 28 | +subcommands: |
| 29 | + valid subcommands |
| 30 | + |
| 31 | + {telnet,serial} supported commands |
| 32 | + telnet control telnet services on/off |
| 33 | + serial control /proc/serial on/off |
| 34 | +``` |
| 35 | + |
| 36 | +# zte_hardcode_dump.py |
| 37 | + |
| 38 | +decrypt /etc/hardcodefile |
| 39 | +`./zte_hardcode_dump.py test/hardcode test/hardcodefile/*` |
| 40 | + |
| 41 | +```shell |
| 42 | +$ ./zte_hardcode_dump.py -h |
| 43 | +usage: https://github.com/douniwan5788/zte_modem_tools |
| 44 | + |
| 45 | +positional arguments: |
| 46 | + hardcode the /etc/hardcode file which contains root key |
| 47 | + hardcodefile config files under /etc/hardcodefile |
| 48 | + |
| 49 | +options: |
| 50 | + -h, --help show this help message and exit |
| 51 | +``` |
0 commit comments