Linux4 password cracking and protection

Source: Internet
Author: User
Tags password protection
The password protection and cracking tutorial of linux4 is mainly used to explain 1. root Password cracking in single user mode 2. grub encryption prevent root password cracking in single user mode 3. grub encryption cracking there are now many tutorials on linux system password cracking on the Internet, the most common is single-user cracking...

 

 

Password protection and cracking for linux 4

This tutorial mainly explains 1. cracking the root password in single user mode 2. grub encryption to prevent cracking of the root password in single user mode 3. cracking of grub encryption

There are a lot of tutorials on linux system password cracking on the Internet, the most common one is single-user cracking. now I will teach you.

First, when starting the screen, we press "e"

Go to the grub option and press "e"

After entering, we select the second option and continue to press "e"

Enter "space" 1 and press enter.

Then we Press B to restart linux. after the restart, the system enters the single-user mode.

Now we only need to enter passwd root to modify the annoying root password.

Now we enter init 6 to restart linux. after starting, we can enter the password we just set for root.

The above operations are the most widely used linux password cracking on the internet. now we will block password cracking in single-user mode, that is, grub encryption.

After entering linux, open the vi compiler or enter vi/etc/grub. conf in the command line.

Note that we set the password to enter password instead of passwd.

After editing, save (wq !) Restart.

Now let's test

Start the system. press e.

Go to the grub option. now we can see that there is no "e" prompt in the help information. we can only press "p" but press "p" to enter the password, this prevents password cracking in single-user mode.

 

As the saying goes, the magic is always high. Now we will explain how to crack grub encryption.

We put the CD into the optical drive and changed the system to start from the optical drive.

In boot: Enter the linux rescue and press enter to enter the linux rescue mode.

Now we select the language mode. I chose simplified (Chinese)

Select the keyboard type. Do not modify the default value. Otherwise, the keyboard may become invalid.

Set the network interface.

We chose to continue and enter the rescue mode.

Press enter to confirm

We enter chroot/mnt/sysimage to obtain the administrator privilege.

Now let's go to grub to crack the password. Vi/etc/grub. conf: delete the password or add # logout before it.

After saving, grub encryption will be cracked.

I have created a QQ group: 167371551. You are welcome to join this group. you only need to enter linux or 51cto for verification.

Related Article

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.