使用Linux系统破解密码教程

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.(按e进入编辑界面)
  5. Move the cursor to the kernel command line(the line that start swith linux16.(查找括号内的内容)
  6. Append rd.break.(其后加入rd.break)
  7. Press Ctrl+x to start.(按ctrl+x开始)
  8. Remount /sysroot as read-write.
    输入:switch_root:/# mount -o remount,rw /sysroot(以读写方式重新挂载根下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] (改变root密码)
    or
    输入:sh-4.2# passwd -d root (删除root密码)
  11. Make sure that all unlabeled files (including/etc/shadow at this point)get relabeled during boot.
    输入:sh-4.2# touch /.autorelabel
    文件创建 根目录 .autorelabel(标签文件
  12. sh-4.2# exit
  13. switch_root:/# exit

创作者:Eric· Charles

猜你喜欢

转载自blog.csdn.net/qq_42197548/article/details/83271447