--- title: 'OverTheWire: Bandit 解題筆記|Level 8 → Level 9' tags: - OverTheWire - Bandit - Linux - 資訊安全 --- # OverTheWire: Bandit 解題筆記|Level 8 → Level 9 **上一關:**[OverTheWire: Bandit 解題筆記|Level 7 → Level 8](/W42wvHHKSDGpIYRbm62N5w) https://overthewire.org/wargames/bandit/bandit8.html ## 登入 ```shell $ ssh -p 2220 bandit8@bandit.labs.overthewire.org ``` 密碼:`dfwvzFQi4mU0wfNbFOe9RoWskMLg7eEc` ## 題目 ### 關卡目標 下一關的密碼存儲在檔案 `data.txt` 中,是唯一出現一次的那行字串。 ### 你可能需要用到的命令 grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd ### 有用的閱讀資料 Piping and Redirection ## 解題思路 `uniq` 指令可以用來檢查重複出現的文字,由於只會檢查相鄰的重複,所以通常搭配 `sort` 指令操作。 ## 詳解 ```shell bandit8@bandit:~$ sort data.txt | uniq -u 4CKMh1JI91bUIZZPXDqGanal4xvAg0JM ``` [OverTheWire: Bandit 解題筆記|Level 9 → Level 10](/MWPHYsyPR5G-eVrxrL9ZrA)
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up