OverTheWire Level 3-> Level 4解题过程
级别:Bandit Level 3 → Level 4
目标:Level Goal
The password for the next level is stored in a hidden file in the inhere directory.
下一级密码保存在inhere目录中的隐藏文件
允许命令:Commands you may need to solve this level
ls, cd, cat, file, du, find
解题过程:
比较简单,主要是运用ls命令的-a选项,以将隐藏文件显示出来。
bandit3@bandit:~$ ls -alh total 24K drwxr-xr-x 3 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 drwxr-xr-x 2 root root 4.0K May 7 2020 inhere -rw-r--r-- 1 root root 675 May 15 2017 .profile bandit3@bandit:~$ cd inhere/ bandit3@bandit:~/inhere$ ls -alh total 12K drwxr-xr-x 2 root root 4.0K May 7 2020 . drwxr-xr-x 3 root root 4.0K May 7 2020 .. -rw-r----- 1 bandit4 bandit3 33 May 7 2020 .hidden bandit3@bandit:~/inhere$ cat .hidden pIwrPrtPN36QITSp3EQaw936yaFoFgAB bandit3@bandit:~/inhere$
STRIVE FOR PROGRESS,NOT FOR PERFECTION