--- title: 'OverTheWire: Bandit 解題筆記|Level 9 → Level 10' tags: - OverTheWire - Bandit - Linux - 資訊安全 --- # OverTheWire: Bandit 解題筆記|Level 9 → Level 10 **上一關:**[OverTheWire: Bandit 解題筆記|Level 8 → Level 9](/dtprxV-7Qu-PyznyaijKvA) https://overthewire.org/wargames/bandit/bandit9.html ## 登入 ```shell $ ssh -p 2220 bandit9@bandit.labs.overthewire.org ``` 密碼:`4CKMh1JI91bUIZZPXDqGanal4xvAg0JM` ## 題目 **關卡目標** 下一關的密碼存儲在文件 `data.txt` 中,是少數幾個可讀字符串之一,並且前面有多個‘=’字符。 **你可能需要用到的命令** grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd ## 解題思路 要讀取檔案中的可讀字元,可以使用 `strings` 印出,再搭配 `grep` 找出有很多 `=` 的就可以找到密碼了。 ## 詳解 ```shell bandit9@bandit:~$ strings data.txt | grep === ========== the ========== password ========== isv ========== FGUW5ilLVJrxX9kMYMmlN4MgbpfMiqey ``` [OverTheWire: Bandit 解題筆記|Level 10 → Level 11](/KiccRjLJSwK8jvS6HCgxBQ)