OverTheWire Level 1 -> Level 2解题过程

级别:Bandit Level 1 → Level 2

目标:Level Goal

The password for the next level is stored in a file called - located in the home directory

下一级的密码保存在"-"的文件里。

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

ls, cd, cat, file, du, find

解题过程:

由于文件名为特殊字符"-",因此不能直接 cat - 来显示文件内容,可以cat ./-

bandit1@bandit:~$ ls -alh
total 24K
-rw-r-----  1 bandit2 bandit1   33 May  7  2020 -
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
bandit1@bandit:~$ cat ./-
CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9
bandit1@bandit:~$

 

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