/* */ CentOS7.X密码破解
< 返回技术论坛列表

CentOS7.X密码破解

发布时间:2023-03-25     来源: 泰安市云计算中心

开机,按任意键停住启动界面,然后选择对应的内核,按 e 进行编辑

Red Hat 
Red Hat 
use t 
press 
Enterprise Linux 
Enterprise Linux 
〔 3 . 12 . 一 514 . e 17 . × 86 一 64 〕 7 . 3 〔 Ma i p 0 〕 
〔 一 rescue 一 3Cd67d1d278547e9bCe2215d9b352d ÷ 
e 
and keys t 0 change the s e I e c t i 0 n . 
t 0 e d i t the selected i t e , 0 r , c , for a command prompt.

 

找到linux16这一行,在最后输入 rd.break console=tty0

inSMOd XfS 
set root = , hdB , sdosl , 
i f [ x$feature_platform_search_hint 
xy ] ; then 
—no—floppy 
—fs—uuid 
—set -root 
—hint—bios=hda , msdosl 
—hint= , hdB , sdosl , 
—ef i =hdB , msdosl 
—h int—baremeta I =ahc i , msdosl 
6793339d 一 7 丶 
1C9 一 42b5 一 82e2 一 df6244b1d745 
e I S e 
4b1d745 
—no—floppy 
—fs—uuid 
—set-root 6793339d 一 71C9 一 42b5 一 82e2 一 df6B 丶 
linux16 inuz—3. 12 . 一 514 . e 17 . × 86 一 64 root=/dev/mapper/rhel—root r 0 c 丶 
ashkernel=auto rd. I VM . Iv=rhel/root rd. I VM . Iv=rhel/swap rhgb quiet 
TF—8 rd. break 
1 n 1 r 6 /initraMfs—3. 12 . 一 514 . e 17 . × 86 一 64 . i Mg 
Press C t r I 一 × t 0 start , C t r I 一 c for a command prompt 
discard e d i t s and return t 0 the Me n u 。 Pressing Tab 
p 0 s s i b I e completions. 
LRNG=en US . 丶 
t 0 
0 r 
I i s t s

 

按 ctrl-x 启动,然后按照以下操作破解 root 密码

mount  -o  remount,rw  /sysroot
chroot  /sysroot
passwd
touch  /.autorelabel
exit
reboot

 

: / # 一 0 , /sysrOOt 
witch root : / # chroot /sysroot 
h-4 . Zit 
h-4 . Zit passim 
hang ing passmrd for user root . 
AD PASSLI]RD : The passunrd is shorter than 8 characters 
etype new passmrd : 
assun : a I I authent icat ion tokens updated successfu I ly . 
h-4 . Zit touch / . autore labe I 
h-4.Ztt exit 
xit 
witch root : / reboot

 

完成