Assignment 5.1: Breaking into Kali - morgan-hanrahan/Tech-Journal GitHub Wiki

Single User Mode Hack for Debian

  1. Restart your Kali box
  2. As it's restarting hit the space bar to get into boot mode
  3. Now you are presented with two options: Kali GNU/Linux & Advanced Options for Kali GNU/Linux
  4. 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.
  5. Find the line that starts with "linux"
  6. Use the arrow keys and navigate to the end of the line and add single init=/bin/bash
  7. Press Ctrl-X to boot with the modified line
  8. Now that you are in the root terminal type: mount -rw -o remount / to mount as read write
  9. You can now change the root password using the passwd command.
  10. When you are done changing the password issue the following commands:
    • sync
    • umount /
  11. Finally power cycle your kali box.