Monday, December 28, 2009

Linux hacking

Hacking Root password of Linux


By Abir Atarthy



Today I am going to tell you the trick to hack your root passoword in Linux if you are too forgetful to remember it or you have legal permission to enter a server run by a different admin and by any chance he forgot to give you the root password.

Those Who Have GRUB bootloader

1. Reboot the machine.

2. When GRUB bootloader appears key up/down to highlight and select the Linux kernel and press e to edit the GRUB commands. Remember it should be done before booting.

3. Now move arrow key up/down and select the Linux kernel and press e again

4. Give a single space and then type the word single as shown below:

  1. Pess Enter and press b to boot. This will boot Linux into single user maintenance mode.
  2. Now you will get the command prompt to execute commands. Now type

passwd root

and reset the root password. It will not ask you for old password.

7. Type reboot to reboot the machine.

8. Now login as root user with the new password you set.

Those Who Have LILO bootloader

1. Reboot the machine

2. In LILO: prompt type linux single and hit enter

3. You will log in single user mode in root.

4. Now to change the password type

Passwd followed by new password

5. Now reboot and login to root using new password.

So try all these tricks and leave your valuable feedbacks here.

-------------------------------

Tips to Secure Linux


By Abir Atarthy

There are many ways to secure your Linux system. But today I will discuss about a topic called fork bombing.

fork bombs are programs that keep creating child processes until system resources are all used, they actually aren’t remote exploits because they require a local user to execute the bomb, however, users may be tricked into running a fork bomb.

To protect a system against such attacks, there is a file for limiting the number of processes for each user, it is /etc/security/limits.conf, add the following two lines to it:

.
@users soft nproc 150
@users hard nproc 170

Note:- You should be login as root user in Linux system

The lines prevent anyone in the users group from having more than 170 processes, and issue a warning at 150 processes.

Your system may not have a users group, so you may need to edit the lines to suit your needs.




No comments:

Post a Comment