找回密码
 注册

QQ登录

只需一步,快速开始

查看: 294|回复: 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
2 ]0 c9 ~+ ]" Q  c) U! N% {0 Z: I1 H7 L

本帖子中包含更多资源

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

×
发表于 2024-3-22 20:07:15 | 显示全部楼层
Which hardware modle?
+ x( D3 @/ l6 C) c8 F3 }9 W9 T) _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
( Y, b3 Q  ?2 D9 h5 J. o0 Q5 i$ yIf you are running an R21 version firmware on this device and it's CHINA TELECOM CUSTOMIZED:
5 \; O) W/ v4 T- f+ X8 m& vType this command and press enter:
  1. saf-huawei console
复制代码
Then enter the password and press enter: upt
: }, |6 @. _( m5 K& S9 l' W(the password will not be displayed in the console)
/ G* X( x1 g8 P. i( l) c4 v( FIn the saf console, type the following command and press enter:
* D0 r& F$ o0 ^. W: B
  1. cat >> /etc/rc.local
复制代码
Copy & paste the following content in the console, press enter, then press ctrl+d:+ T3 ^6 v; p/ H6 Y
  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./ A0 A( g  c, G  q  z, [- `' f. w8 X
Login to the shell again, then use /bin/su instead of su.
& w" H: h; I# P5 u( _$ h" ~Type this command in the console:; @$ U8 j  p, C* S/ _& }( f5 v
  1. whoami
复制代码
If returns 'root', then that's it. Enjoy it :)
发表于 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: W% L- F; I3 W
If you are running an R21 version firmware on this device and it's CHINA TELECOM CUSTOMIZED:
( G% P% b, S+ T0 R: M) P+ s/ Z' BType this command and press enter:
  1. saf-huawei console
复制代码
Then enter the password and press enter: upt
9 ~& n1 M( K! R) K, p(the password will not be displayed in the console)  h! ^7 o+ t. X9 l  ?: J" s1 U
In the saf console, type the following command and press enter:1 N+ T; {$ ]  V6 O1 w& A% d4 \/ }' J
  1. cat >> /etc/rc.local
复制代码
Copy & paste the following content in the console, press enter, then press ctrl+d:
9 y3 Q. Y3 N) Z; t
  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.
' U1 `5 L2 P7 c% MLogin to the shell again, then use /bin/su instead of su.4 D5 y" Z2 s9 `: l
Type this command in the console:1 s  @# A; S; D& F, A
  1. whoami
复制代码
If returns 'root', then that's it. Enjoy it :)
 楼主| 发表于 2024-3-25 08:30:24 | 显示全部楼层
邪恶海盗 发表于 2024-3-22 20:071 g9 Z- r2 }" T+ |
Which hardware modle?
' h. c/ n, ?# _. J6 q1 x1 f4 S' Z7 TWhich software verson?
2 i% k( V0 h; j& r5 e7 ]
硬件为EG8147X6、EG8247H5等类似硬件 软件版本为R020 内部系统的版本是最重要的,因为我相信只有ro20有这个额外的安全层,其他的没有这么严格的问题。 如果您知道任何解决方案,请告诉我,谢谢♥
. J: y" q2 i3 i, {# d; e
 楼主| 发表于 2024-3-25 08:32:13 | 显示全部楼层
AlphaJim 发表于 2024-3-23 02:10
' ^2 i. G; p, i& @+ v( WWARNING: I'M NOT RESPONSIBLE FOR ANY PROBLEM CAUSED BY THE FOLLOWING OPERATIONS. USE THIS INSTRCTION ...

. c! \% v/ d& S$ Z/ b) g7 D; ]" X非常感谢,这不是中国电信定制的,但我会尝试一下。
 楼主| 发表于 2024-3-25 16:54:45 | 显示全部楼层
本帖最后由 HawK40x 于 2024-3-25 16:56 编辑 ; Q4 c: _6 ^+ I6 A# M2 Y3 ]
, c# o: y( j1 ~+ o. D
V5R020C10S182
( R% T; a% U2 j" D7 y$ ~4 W; fEG8247H5
' p. r, P. n* u6 {% k: j4 K5 `
, D4 y3 B2 u) ^* HThe command does not exist in the SHELL of my router

本帖子中包含更多资源

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

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

本版积分规则

QQ|Archiver|小黑屋|宽带技术网 |网站地图

粤公网安备 44152102000001号

GMT+8, 2024-4-30 03:17 , Processed in 0.023985 second(s), 5 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

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