找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1078|回复: 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; h3 @8 |- h. w4 b

本帖子中包含更多资源

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

×
发表于 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* J& @' t& h& R
If you are running an R21 version firmware on this device and it's CHINA TELECOM CUSTOMIZED:# \' A; J; K! l, V
Type this command and press enter:
  1. saf-huawei console
复制代码
Then enter the password and press enter: upt+ U% f0 n, q) l: L0 D/ ]
(the password will not be displayed in the console)
* [! o( A- X8 Z) {1 v/ lIn the saf console, type the following command and press enter:$ B" m) h" d0 A2 \* U& f$ _0 I7 y3 G4 S
  1. cat >> /etc/rc.local
复制代码
Copy & paste the following content in the console, press enter, then press ctrl+d:. p7 d# X, A% F- _
  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.# C" a; B& a! U; S3 m
Login to the shell again, then use /bin/su instead of su.
2 z7 y& L& q1 dType this command in the console:" j( i$ m$ p; E! V( s: |. T
  1. whoami
复制代码
If returns 'root', then that's it. Enjoy it :)
发表于 2024-3-22 20:07:15 | 显示全部楼层
Which hardware modle?' J6 t' u" e9 M3 C% f: m
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& [- c! x. d! _+ l' c+ n8 d7 _0 r
If you are running an R21 version firmware on this device and it's CHINA TELECOM CUSTOMIZED:) W) g! `+ }2 {. J
Type this command and press enter:
  1. saf-huawei console
复制代码
Then enter the password and press enter: upt. L3 u& J! H) i! `# t" u6 z
(the password will not be displayed in the console)) X4 P+ K: e7 q! m. `( T
In the saf console, type the following command and press enter:( I6 q/ [! _+ F
  1. cat >> /etc/rc.local
复制代码
Copy & paste the following content in the console, press enter, then press ctrl+d:
" P" P; `; j% ~3 A
  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.8 b7 z0 N7 _$ d7 s
Login to the shell again, then use /bin/su instead of su.
- X7 A  J0 b# L; ]2 \' ?( PType this command in the console:4 U* S. ?0 t! k; B$ N9 e
  1. whoami
复制代码
If returns 'root', then that's it. Enjoy it :)
 楼主| 发表于 2024-3-25 08:30:24 | 显示全部楼层
邪恶海盗 发表于 2024-3-22 20:07
$ ]' P2 Z# w* o$ K- N8 mWhich hardware modle?
+ Z% E! D7 z) cWhich software verson?
5 `0 {* y6 l: g8 F# f0 ]7 Y
硬件为EG8147X6、EG8247H5等类似硬件 软件版本为R020 内部系统的版本是最重要的,因为我相信只有ro20有这个额外的安全层,其他的没有这么严格的问题。 如果您知道任何解决方案,请告诉我,谢谢♥
# o# D( R- \% t; q8 n7 W$ m) A
 楼主| 发表于 2024-3-25 08:32:13 | 显示全部楼层
AlphaJim 发表于 2024-3-23 02:10
5 d! A1 P$ `6 _3 bWARNING: I'M NOT RESPONSIBLE FOR ANY PROBLEM CAUSED BY THE FOLLOWING OPERATIONS. USE THIS INSTRCTION ...
/ W. o+ g. Q" ]+ K7 L
非常感谢,这不是中国电信定制的,但我会尝试一下。
 楼主| 发表于 2024-3-25 16:54:45 | 显示全部楼层
本帖最后由 HawK40x 于 2024-3-25 16:56 编辑
6 C5 s/ f% q7 Q' `5 }0 c; E" s! b& A8 A& Q: w2 {2 F
V5R020C10S182 ( _& S' |+ `% T: n" J& z
EG8247H5 1 O) x* Z  B7 \3 [7 M7 E
  X, |$ }- F; ?2 U0 W) ~; c
The command does not exist in the SHELL of my router

本帖子中包含更多资源

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

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

本版积分规则

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

GMT+8, 2025-6-18 00:17 , Processed in 0.026608 second(s), 6 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

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