![]() ![]() It should look a bit like this: root:x:0:0:root:/root:/usr/bin/zsh This will presumably dump a considerable amount of information, so you might need to sift through it to find the exact username you’re looking for. Run this command to view the usernames registered on the machine: cat /etc/passwd We’ll run ‘mount’ to check our work, and if we’re still in the shell everything is good to go. ![]() Now we’ve got some things we can do on this machine. Root shell! Retrieve and modify some info with our root permissions. Otherwise, repeat the process and change ‘/bin/bash’ to either ‘/bin/zsh’ or ‘/bin/csh’. Press Control-X to reboot, and if everything works successfully and you’re presented with a shell move to step 3. Then, after either ‘single’ or ‘quiet splash’, add ‘init=/bin/bash’. You’ll need to change ‘ro’ to ‘rw’, as we have above. ![]() Somewhere on your screen, you’ll see ‘ro’ and then either ‘single’ or ‘quiet splash’. My text looks compacted because I’m on a virtual machine, but it makes little difference for our purposes. Once you’ve hit ‘e’ and made it to this screen, you’ll see something a bit like this, probably with a different resolution. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |