xc7206
发表于 2022-5-13 18:14:14
fdcs1985 发表于 2022-5-12 16:51
对,这样连tftp都不用就能修改文件替换文件
这个思路确实好,但就是进去看不到文件,也就无从谈起修改,不知道是不是我进去的用户名不是管理员?我用useradmin
pioneer81
发表于 2022-5-13 23:46:24
有个办法你可以试试。前提是有jffs2备份文件
restorehwmode还原华为模式,开启telnet补全shell,在用jffs2恢复
xc7206
发表于 2022-5-14 13:36:16
pioneer81 发表于 2022-5-13 23:46
有个办法你可以试试。前提是有jffs2备份文件
restorehwmode还原华为模式,开启telnet补全shell,在用jffs2 ...
关键是shell命令不全了,怎么补也不成功简单的cd命令都不行
pioneer81
发表于 2022-5-14 13:37:36
xc7206 发表于 2022-5-14 13:36
关键是shell命令不全了,怎么补也不成功简单的cd命令都不行
restore后可以补全
pioneer81
发表于 2022-5-14 13:40:55
1.telnet 192.168.1.1
账号root
密码admin
2.键入shell
接着键入restorehwmode.sh
3.重启光猫后,键入192.168.100.1
注意,此处ip地址不在为原来的192.168.1.1。变更为192.168.100.1
4.账号变更为telecomadmin,密码变为admintelecom
xc7206
发表于 2022-5-14 16:02:46
pioneer81 发表于 2022-5-14 13:37
restore后可以补全
我也是醉了提示失败。是不是因为之前商家用这个命令恢复过华为界面,补全过shell,现在再用不行了。
提示command is not existed
pioneer81
发表于 2022-5-14 17:28:12
命令加个sudo
xc7206
发表于 2022-5-14 18:06:07
pioneer81 发表于 2022-5-14 17:28
命令加个sudo
已经加了
pioneer81
发表于 2022-5-14 19:03:48
截图看看,我的可以反复restore
xc7206
发表于 2022-5-14 20:43:19
pioneer81 发表于 2022-5-14 19:03
截图看看,我的可以反复restore
Welcome Visiting Huawei Home Gateway
Copyright by Huawei Technologies Co., Ltd.
Login:root
Password:
Password is default value, please modify it!
WAP>
Last login: User:root IP:192.168.1.2 Time:1981-01-01 00:04:05
WAP>su
success!
SU_WAP>shell
BusyBox v1.31.1 () built-in shell (ash)
Enter 'help' for a list of built-in commands.
profile close core dump
WAP(Dopra Linux) # restorehwmode.sh
restorehwmode.sh failed !!!
Using : sudo restorehwmode.sh
WAP(Dopra Linux) # sudo restorehwmode.sh
ERROR::Command is not existed
WAP(Dopra Linux) #