156 字
1 分鐘
[OverTheWire] Bandit Level 5 → Level 6
Level Goal
The password for the next level is stored in a file somewhere under the inhere directory and has all of the following properties:
- human-readable
- 1033 bytes in size
- not executable
Commands you may need to solve this level
- ls
- cd
- cat
- file
- du
- find
My Answer (Step by step)
- 連線到伺服器並登入
ssh bandit5@bandit.labs.overthewire.org -p 2220- 透過 ls 指令會看到 inhere 資料夾
ls -al- 透過 cd 指令進入 inhere 資料夾,並再次透過 ls 指令查看資料夾內容,可以發現多個資料夾
cd inherels -al- 透過 ls 與 grep 指令查看大小為 1033 bytes 的檔案
ls -alR | grep -B 5 1033- 根據前面指令結果顯示的檔案路徑,透過 cat 指令即可查看 Level 6 密碼!
cat ./maybehere07/.file2 分享
如果這篇文章對你有幫助,歡迎分享給更多人!
[OverTheWire] Bandit Level 5 → Level 6
https://m21248074.github.io/blog/posts/2025-01-22-post155016/ 部分資訊可能已經過時
相關文章 智能推薦


