Linux系统密码破解篇(图文示范仅三步即可完成,小白也能轻松学会)

一.破解密码的基本步骤(小白可跳过看图文篇)
1.Reboot the system.
2.Interrupt the boot loader count down by pressing anykey.
3.Move the cursor to the entry that needs to be booted.
4.Press “e” to edit the select edentry.
5.Move the cursor to the kernel command line(the line that start swith linux16.
6.Append rd.break
7.Press Ctrl+x to start.
8.Remount /sysroot as read-write.
switch_root:/# mount -o remount,rw /sysroot
9.Switch into a chroot jail, where /sysroot is treated as the root of the filesystem tree
switch_root:/# chroot /sysroot
10.Set a new root password:
sh-4.2# passwd [root] (change the root password)
or
sh-4.2# passwd -d root (delete the root password)
11.Make sure that all unlabeled files (including/etc/shadow at this point)get relabeled during boot.
sh-4.2# touch /.autorelabel
12. sh-4.2# exit
13. switch_root:/# exit

二.破解密码的图文步骤(新手向)仅仅三步
第一步:重启虚拟机,按任意键先停止倒计时,然后按“↑↓”选择第二个按e进入,如下图:
Linux系统密码破解篇(图文示范仅三步即可完成,小白也能轻松学会)_第1张图片
第二步:进入以后,找到写有Linux16的那一行,在其末尾输入“ rd.break”,然后按Ctrl+X
Linux系统密码破解篇(图文示范仅三步即可完成,小白也能轻松学会)_第2张图片
Linux系统密码破解篇(图文示范仅三步即可完成,小白也能轻松学会)_第3张图片
第三步:然后进入下一界面,下面依次输入的命令为:
mount -o remount,rw /sysroot,然后按回车
chroot /sysroot,然后按回车
passwd root,然后按回车
然后提示输入新密码(New Password),并再确认一次密码即可完成密码破解
Linux系统密码破解篇(图文示范仅三步即可完成,小白也能轻松学会)_第4张图片
大功告成!

你可能感兴趣的:(Linux)