Assignment 5.1 Breaking into Kali - Oliver-Mustoe/Oliver-Mustoe-Tech-Journal GitHub Wiki
In this assignment we learned how to enter single user mode and change root's password inside it.
Notes
First I rebooted the system and pressed space (might be different system to system, Kali seems to display the right screen for a few seconds at startup as well) to get the following options:
Then I selected the first option, “Kali GNU/Linux” (letter e), then tweaked the settings at the end of the linux line (splash) and addded the following:
- single init=bin/bash
After that I pressed CTRL+X, which after a time entered me into a root prompt where I executed the following (screenshot shows the commands in use):
mount -rw -o remount /
-
- Mount the slash (/) directory
passwd
-
- Set roots password
With that finish I executed the following commands:
sync
umount /
And power cycled my Kali box, where I could now log in as root if I wanted.