找回密码
 注册

QQ登录

只需一步,快速开始

楼主: xc7206

HS8145X6补全shell问题R21 115版本

[复制链接]
 楼主| 发表于 2022-5-13 18:14:14 | 显示全部楼层
fdcs1985 发表于 2022-5-12 16:51
对,这样连tftp都不用就能修改文件替换文件

这个思路确实好,但就是进去看不到文件,也就无从谈起修改,不知道是不是我进去的用户名不是管理员?我用useradmin
发表于 2022-5-13 23:46:24 | 显示全部楼层
有个办法你可以试试。前提是有jffs2备份文件
restorehwmode还原华为模式,开启telnet补全shell,在用jffs2恢复
 楼主| 发表于 2022-5-14 13:36:16 | 显示全部楼层
pioneer81 发表于 2022-5-13 23:46
有个办法你可以试试。前提是有jffs2备份文件
restorehwmode还原华为模式,开启telnet补全shell,在用jffs2 ...

关键是shell命令不全了,怎么补也不成功简单的cd命令都不行
发表于 2022-5-14 13:37:36 | 显示全部楼层
xc7206 发表于 2022-5-14 13:36
关键是shell命令不全了,怎么补也不成功简单的cd命令都不行

restore后可以补全
发表于 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
 楼主| 发表于 2022-5-14 16:02:46 | 显示全部楼层

我也是醉了提示失败。是不是因为之前商家用这个命令恢复过华为界面,补全过shell,现在再用不行了。
提示command is not existed
发表于 2022-5-14 17:28:12 | 显示全部楼层
命令加个sudo
 楼主| 发表于 2022-5-14 18:06:07 | 显示全部楼层

已经加了
发表于 2022-5-14 19:03:48 | 显示全部楼层
截图看看,我的可以反复restore
 楼主| 发表于 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) #
*滑块验证:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|宽带技术网 |网站地图 粤公网安备44152102000001号

GMT+8, 2025-7-10 11:41 , Processed in 0.026553 second(s), 3 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表