Root access through grub

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
(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 boot
+
# 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:

  1. boot to the grub screen, and press 'e' to edit the boot option
  2. select the kernel line and press 'e' to edit it
  3. add the following to the end of the kernel line
rw init=/bin/sh
  1. press enter after editing the kernel line
  2. now press 'b' to boot the kernel
  3. once the shell has been presented to you, you can check that you are root with the `whoami` command
  4. now wreak havoc!
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox