Monday, December 13, 2010

Linux Hacking Password Cracking Steps...

Linux Hacking Password Cracking Steps...
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Step 1: Start the machine, press the down arrow key...

Step 2: You will find the grub loader screen in front of you... press 'e' and you see three lines press down arrow key to go to the second line and then again press 'e'

Step 3: Dont change anything press 'spacebar' and type '1', press enter and press 'B' to boot

Start 4: You'll see the bash shell , type 'passwd root' to change the password of the root

Start 5: after that type 'exit'

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
How to Set the grub loader password
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

You can secure this by applying the grub loader password at the time of installation or 'after installation' by following the following steps...

Step 1: Type grub-md5-crypt and enter the password that you want to set.

Step 2: Now copy the generated hash and password --md5

Step 3: Now open the grub.conf file by this command --> vim /boot/grub/grub.conf
and just after the timeout line paste the above line

Step 4: save and exit

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
How to remove the grub loader password
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Step 1: Insert the operating system disc, i am assuming that you are performing these steps on centos

Step 2: and type 'linux rescue'

Step 3: and as soon as ananconda gets started eject the disc and you will see a bash shell

Step 4: Type 'chroot /mnt/sysimage'

Step 5: Open the grub.conf by this command --> vim /boot/grub/grub.conf

Step 6: remove the password line from it. save and exit. exit from the shell and exit from the system. it will automatically reboots and next time it wont ask you for the grub loader password.

No comments:

Post a Comment