Single User Mode - jwells24/Tech-Journal GitHub Wiki
Kali Linux Single User Mode Hack
-
In this assignment, we learned an easy way to access our kali linux box and set the root password without having access to the system. The first step to this hack was to reboot the system, and while it was booting up to hit the spacebar to access the boot menu. We see two options, advanced kali linux/gnu options or just kali linux/gnu. Hover over the basic Kali Linux/Gnu & hit the 'E' key. This will bring us to a page that we need to edit.
-
On this new page, scroll down until you see a linux line. At the end of the linux line, after splash, we need to add single init=/bin/bash. Once we have added this to the end of the line, we now can hit control + x. This will boot the system into a root prompt, where we now need to input a few commands.
-
The first command we need to execute is mount -rw -o remount /. This will allow us to read and write in the prompt. The last step is simply to type the command passwd and set our root password.