Level Goal
The password for the next level is stored in a file called spaces in this filename located in the home directoryCommands you may need to solve this level
ls, cd, cat, file, du, findHelpful Reading Material
Google Search for "spaces in filename"Solution:
- [Comment] Using SSH to connect the server
- sp@simple-plan:~|=> ssh bandit2@bandit.labs.overthewire.org
...
bandit2@bandit.labs.overthewire.org's password: CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9 - [Comment] Using ls command to list directory contents
- bandit2@melinda:~$ ls
spaces in this filename - [Comment] Using cat command to output file's contents
- [Comment] Don't forget to escape white space
- bandit2@melinda:~$ cat ./spaces\ in\ this\ filename
UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK - [Comment] Using exit command to disconnect connection to server
- bandit2@melinda:~$ exit
logout
Connection to bandit.labs.overthewire.org closed. - [Comment] It's done! Saving the password for next level.
ssh http://linuxcommand.org/man_pages/ssh1.html ls http://linuxcommand.org/man_pages/ls1.html cat http://linuxcommand.org/man_pages/cat1.html exit http://linuxcommand.org/man_pages/logout1.html
No comments:
Post a Comment