OverTheWire Level2-> Level 3解题过程

级别:Bandit Level 2 → Level 3

目标:Level Goal

The password for the next level is stored in a file called spaces in this filename located in the home directory

下一级密码保存在文件名为spaces in this filename的文件中

允许命令:Commands you may need to solve this level

ls, cd, cat, file, du, find

解题过程:

由于文件名中包含空格,可以用转义字符\

bandit2@bandit:~$ ls -alh
total 24K
drwxr-xr-x  2 root    root    4.0K May  7  2020 .
drwxr-xr-x 41 root    root    4.0K May  7  2020 ..
-rw-r--r--  1 root    root     220 May 15  2017 .bash_logout
-rw-r--r--  1 root    root    3.5K May 15  2017 .bashrc
-rw-r--r--  1 root    root     675 May 15  2017 .profile
-rw-r-----  1 bandit3 bandit2   33 May  7  2020 spaces in this filename
bandit2@bandit:~$ cat spaces\ in\ this\ filename
UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK

 

posted @ 2022-06-04 11:47  Jason_huawen  阅读(63)  评论(0编辑  收藏  举报