Linux hack root password

Source: Internet
Author: User
Tags select from where

Experimental EnvironmentVirtual machine Software: VMware Workstation operating system: Read Hat enteprise 6.3 1. Root password is cracked and grub is not encrypted.
1. In 5 seconds, seize the opportunity: Press any key (except the ENTER key), enter the operating system to select the menu. Note the following tip: Press "E" 2. Enter the kernel selection and press "E". 3. Select the operating kernel, send a parameter "1" to the current kernel, and then confirm the return. {"1", "s", or "single". All are represented in single-user mode. }4. Press "B" to enter single-user mode. 5.setenforce 0 temporarily shut down the firewall, modify the root password, and then restart the password to complete the modification.

2. Encrypting Grub
1. Create a password in MD5 encrypted format.
2. Back up the grub.conf file.
[ Email protected] ~]# CP/BOOT/GRUB/GRUB.CONF/BOOT/GRUB/GRUB.CONF.BK
3. Edit the grub.conf file, add the grub password, and save the exit. {Password can also use an unencrypted plaintext file}
[ Email protected] ~]# vim/boot/grub/grub.conf

3. Hack the root password of the Linux system grub encryption
1. CD-ROM boot, enter rescue installed System (rescue mode) 2. Select the installation language, which is generally the default. 3. Select the keyboard type, general default. 4. Select from where to read the system image, here you can select the disc, or you can choose to read from the network. {Network reads need to be configured for network connections} 5. Whether to configure the network, because I chose to boot from the CD, there is no need to configure the network, if you read the image from the network above, it is necessary to select YES6. Here, select continue to proceed to the next step. 7. Here you will be prompted to mount the Sysimage file and proceed directly to the next step. 8. Select Use Shell to click Ok.9. mount the Sysimage file, modify the root password and restart. This password modification is complete.


From for notes (Wiz)

Linux hack root password

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.