Root access through grub
From Attie's Wiki
(Difference between revisions)
(Created page with 'To gain root access through an un-protected grub installation do the following: # boot to the grub screen, and press 'e' to edit the boot option # select the kernel line and pres…') |
|||
Line 2: | Line 2: | ||
# boot to the grub screen, and press 'e' to edit the boot option | # boot to the grub screen, and press 'e' to edit the boot option | ||
# select the kernel line and press 'e' to edit it | # select the kernel line and press 'e' to edit it | ||
− | # add the following to the end of the kernel | + | # add the following to the end of the kernel line |
<pre> | <pre> | ||
rw init=/bin/sh | rw init=/bin/sh |
Revision as of 00:24, 24 February 2010
To gain root access through an un-protected grub installation do the following:
- boot to the grub screen, and press 'e' to edit the boot option
- select the kernel line and press 'e' to edit it
- add the following to the end of the kernel line
rw init=/bin/sh
- press enter after editing the kernel line
- now press 'b' to boot the kernel
- once the shell has been presented to you, you can check that you are root with the `whoami` command
- now wreak havoc!