找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1152|回复: 7

busybox 1.31.1 su密码

[复制链接]
发表于 2024-3-22 18:56:11 | 显示全部楼层 |阅读模式
Does anyone know the password for this HUAWEI ONU (any model) but it has BUSYBOX V 1.31.1 and I don't know how to access its SU

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
发表于 2024-3-23 02:10:08 | 显示全部楼层
WARNING: I'M NOT RESPONSIBLE FOR ANY PROBLEM CAUSED BY THE FOLLOWING OPERATIONS. USE THIS INSTRCTIONS AT YOUR OWN RISK. ONLY TESTED ON MODEL HS8145X6 VERSION V500R021C00S115
If you are running an R21 version firmware on this device and it's CHINA TELECOM CUSTOMIZED:
Type this command and press enter:
  1. saf-huawei console
复制代码
Then enter the password and press enter: upt
(the password will not be displayed in the console)
In the saf console, type the following command and press enter:
  1. cat >> /etc/rc.local
复制代码
Copy & paste the following content in the console, press enter, then press ctrl+d:
  1. sed -i '/^root/{s%/sbin/nologin%/bin/sh%;s%^root:[^:]*:%root::%}' /e8cvar/passwd
复制代码
Press ctrl+a q to exit the saf console, then type reboot and press enter to reboot your device.
Login to the shell again, then use /bin/su instead of su.
Type this command in the console:
  1. whoami
复制代码
If returns 'root', then that's it. Enjoy it :)
发表于 2024-3-22 20:07:15 | 显示全部楼层
Which hardware modle?
Which software verson?
发表于 2024-3-23 02:09:00 | 显示全部楼层
WARNING: I'M NOT RESPONSIBLE FOR ANY PROBLEM CAUSED BY THE FOLLOWING OPERATIONS. USE THIS INSTRCTIONS AT YOUR OWN RISK. ONLY TESTED ON MODEL HS8145X6 VERSION V500R021C00S115
If you are running an R21 version firmware on this device and it's CHINA TELECOM CUSTOMIZED:
Type this command and press enter:
  1. saf-huawei console
复制代码
Then enter the password and press enter: upt
(the password will not be displayed in the console)
In the saf console, type the following command and press enter:
  1. cat >> /etc/rc.local
复制代码
Copy & paste the following content in the console, press enter, then press ctrl+d:
  1. sed -i '/^root/{s%/sbin/nologin%/bin/sh%;s%^root:[^:]*:%root::%}' /e8cvar/passwd
复制代码
Press ctrl+a q to exit the saf console, then type reboot and press enter to reboot your device.
Login to the shell again, then use /bin/su instead of su.
Type this command in the console:
  1. whoami
复制代码
If returns 'root', then that's it. Enjoy it :)
 楼主| 发表于 2024-3-25 08:30:24 | 显示全部楼层
邪恶海盗 发表于 2024-3-22 20:07
Which hardware modle?
Which software verson?

硬件为EG8147X6、EG8247H5等类似硬件 软件版本为R020 内部系统的版本是最重要的,因为我相信只有ro20有这个额外的安全层,其他的没有这么严格的问题。 如果您知道任何解决方案,请告诉我,谢谢♥
 楼主| 发表于 2024-3-25 08:32:13 | 显示全部楼层
AlphaJim 发表于 2024-3-23 02:10
WARNING: I'M NOT RESPONSIBLE FOR ANY PROBLEM CAUSED BY THE FOLLOWING OPERATIONS. USE THIS INSTRCTION ...

非常感谢,这不是中国电信定制的,但我会尝试一下。
 楼主| 发表于 2024-3-25 16:54:45 | 显示全部楼层
本帖最后由 HawK40x 于 2024-3-25 16:56 编辑

V5R020C10S182
EG8247H5

The command does not exist in the SHELL of my router

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
 楼主| 发表于 2024-4-2 15:44:01 | 显示全部楼层
如果有人可以帮助我解决这个问题,请做,我仍在等待并坚持这一点!
*滑块验证:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-8-3 07:12 , Processed in 0.024199 second(s), 5 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

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