1. Hack Grub
1. first to set the password for grub, here are two ways to set up, one is plaintext encryption, the other is ciphertext encryption. First in plaintext encryption, to change the configuration file, in the /etc/grub.conf.
2. Open the/etc/grub.conf file with VI or vim .
add a line after Hiddenmenu, enter:password 123 (123 is the password you want to set). and then save.
< Span lang= "en-us" xml:lang= "en-US" > 3. This is to set plaintext encryption to grub menu, to grub menu set ciphertext encryption, first with md5 set ciphertext, with: grub-md5-crypt generates a cipher cipher. &NBSP
4. then save the ciphertext in /etc/grub.conf hiddenmenu the following line.
"password=$1$tupm/1$e6qqubdhnhne87rpnph2c1" and then save the exit.
5.Restart your computer and enterGrub menu, you do not pressThe e-Key editor prompts you only if prompted to pressP Key appears afterpasswd let input password to enter, so also more secure.
6.Next is when we want to crack the password, whether it is plaintext password, or ciphertext password, here are the same crack, first to mountLinux system CD-ROM. Then adjustThe BIOS boots with a CD-ROM boot.
7.After entering the interfaceInput in BootLinux rescue into the "First aid mode" boot CDLinux systems.
8.Then press ENTER to receive the default language, keyboard format, prompt to configure the NIC when the general choice ""NO", then the system will automatically find theLinux partitions and attempt to mount them to/mnt/sysimage directory.
9. Select continue confirms and continues, the next occurrence is whether to initialize the disk's warning window. It is recommended to select no to avoid unnecessary damage to the disk data. Then go to "sh-3.2#" prompt bash shell environment. &NBSP
Then enter chroot/mnt/sysimage, in the edit vi/etc/grub.conf file. &NBSP
10. hiddenmenu The following line is removed, is to clear grub menu password, that is, cracked. &NBSP
11. then save the exit and restart, which is entered grub menu without a password, directly by the Span lang= "en-us" xml:lang= "en-us" >e key into the editing mode, the experiment is complete.
Two. Crack root Password
1. First, you need to set a password for root before you can hack it. set the password for root I won't say it anymore. It should be there when the system is installed.
2. do not enter the system and press ESC on the interface below.
3. then enters grub menu interface, Then use the up and down keys to select the second row, then press "e " key on the keyboard to enter edit mode.
4. This next screen also selects the second line, and then press "e " key on the keyboard to enter edit mode.
5. then empty one, enter the number 1 , and then enter.
6. Then go back to the interface and press "b on the keyboard "key to enter single-user mode (no password authentication is required to log into the system, multi-user system maintenance).
/span>
7. in single-user mode, the root user's password can be cracked, enter:passwd root return
Enter the new password, then enter the password once, enter to see the password update successfully. and then reboot.
8. root user password hack successful, need to enter when user mode.
Third, so it can be seen from the above is not safe, we need to set the grub password to prevent others from destroying our system.
1. To learn about the Grub menu password settings and hack, please visit http://blog.sina.com.cn/xg13142xy
Break grub and Root password-20150318