133 字
1 分鐘
[OverTheWire] Bandit Level 4 → Level 5
Level Goal
The password for the next level is stored in the only human-readable file in the inhere directory.
Tip: if your terminal is messed up, try the “reset” command.
Commands you may need to solve this level
- ls
- cd
- cat
- file
- du
- find
My Answer (Step by step)
- 連線到伺服器並登入
ssh bandit4@bandit.labs.overthewire.org -p 2220- 透過 ls 指令會看到 inhere 資料夾
ls -al- 透過 cd 指令進入 inhere 資料夾,並再次透過 ls 指令查看資料夾內容,可以發現多個檔案
cd inherels -al- 透過 find 與 cat 指令查看所有檔案即可看到 Level 5 密碼!
find . -name "*file*" -exec cat {} \;[OverTheWire] Bandit Level 4 → Level 5
https://m21248074.github.io/blog/posts/2025-01-22-post145357/分享文章
生成精美分享圖或複製連結,與更多人分享本文。
繼續閱讀
最後更新於 ,距今已過 633 天
部分內容可能已過時