--- title: 'OverTheWire: Bandit 解題筆記|Level 6 → Level 7' tags: - OverTheWire - Bandit - Linux - 資訊安全 --- # OverTheWire: Bandit 解題筆記|Level 6 → Level 7 https://overthewire.org/wargames/bandit/bandit7.html ## 登入 ```shell $ ssh -p 2220 bandit6@bandit.labs.overthewire.org ``` 密碼:`HWasnPhtq9AVKe0dmk45nxy20cvUa6EG` ## 題目 **關卡目標** 下一關的密碼儲存在伺服器上的某個地方,該檔案具有以下所有屬性: - 擁有者是用戶 bandit7 - 擁有者群組是 bandit6 - 大小為 33 位元組 **你可能需要用到的指令** ls, cd, cat, file, du, find, grep ## 解題思路 https://askubuntu.com/questions/350208/what-does-2-dev-null-mean ## 詳解 ```shell bandit6@bandit:~$ find / -group bandit6 -user bandit7 -size 33c 2>/dev/null /var/lib/dpkg/info/bandit7.password bandit6@bandit:~$ cat /var/lib/dpkg/info/bandit7.password morbNTDkSW6jIlUc0ymOdMaLnOlFVAaj ``` [OverTheWire: Bandit 解題筆記|Level 7 → Level 8](/W42wvHHKSDGpIYRbm62N5w)
×
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