Assignment 5.1: Breaking into Kali - morgan-hanrahan/Tech-Journal GitHub Wiki
Single User Mode Hack for Debian
- Restart your Kali box
- As it's restarting hit the space bar to get into boot mode
- Now you are presented with two options: Kali GNU/Linux & Advanced Options for Kali GNU/Linux
- For this example, we are going to be using Kali GNU/Linux. Hover over the option and press
e
to enter the GRUB menu edit mode.
- Find the line that starts with "linux"
- Use the arrow keys and navigate to the end of the line and add
single init=/bin/bash
- Press
Ctrl-X
to boot with the modified line
- Now that you are in the root terminal type:
mount -rw -o remount /
to mount as read write
- You can now change the root password using the
passwd
command.
- When you are done changing the password issue the following commands:
- Finally power cycle your kali box.