LINUX
Reset Password Debian

If forgot username or password in Kali or debian

  1. reboot system
  2. click on advanced options for kali linux
  3. type "e" for edit
  4. scroll down to where you see the two word echo and linux
  5. Under linux go to where you see "ro" for read only and change it to "rw" for read and write
  6. go to the end of the line and add the following line next to either "single" or it may be something else " init=/bin/bash"
  7. press contrl + x
  8. here you can change the password of root with password
  9. or grep for the username you forgot using the following command:
grep -i "\b$\b" /etc/shadow
  1. now you can change the password using
passwd and username