Centos 无引导介质密码破解

一:Centos 无引导介质(光盘、iso)模式下root密码破解

由于从网上买了个靶机,却没有密码,便需要自己破解出来,所以查了一些资料,整理出了以下笔记。
·Centos版本

Centos6.8

1.1:进入单用户模式
1)重启按e进入

image-20220329100655972

1.2:编辑kernel字样行
将光标移动到"kernel"字样行,按E进行编辑

image-20220329100655972

空格输入1 或者是输入 single 然后点击回车(其它教程内容与你“kernel“内容不同,不用理会,在最后面加上空格和输入1 即可)

image-20220329101441625

1.4:在此页面按b重新引导进入单用户模式

image-20220329101620427

1.5:单用户模式下
·单用户模式图
image-20220329114128648
1.6:修改root密码
[root@test/]#passwd root

image-20220329101828635

1.6:重启正常进入系统

reboot

猜你喜欢

转载自blog.csdn.net/a5200059/article/details/123814429