Break grub and Root password-20150318

Source: Internet
Author: User

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

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.