문제
There are 2 files in the homedirectory: passwords.old and passwords.new. The password for the next level is in passwords.new and is the only line that has been changed between passwords.old and passwords.new
NOTE: if you have solved this level and see ‘Byebye!’ when trying to log into bandit18, this is related to the next level, bandit19
## 문제 요구사항
비밀번호는 password.new에 있으며, password.old와 password.new 사이에 변경된 줄
## 내가 사용한 명령어
ssh -i ~/bandit.key bandit17@bandit.labs.overthewire.org -p 2220
diff passwords.old passwords.new
## 왜 이 명령어를 골랐는가
diff passwords.old passwords.new
diff : 무엇이 삭제되고 무엇이 추가되었는지
ex) ---------------
< pGozC8kOHLkBMOaL0ICPvLV1IjQ5F1VA
---
> x2gLTTjFwMOhQ8oWNbMN362QKxfRqGlO
---------------------
< : old 파일에만 있음 (삭제됨)
> : new 파일에만 있음 (추가됨)

'Security > OverTheWire' 카테고리의 다른 글
| Bandit Level 19 → Level 20 (setuid) (0) | 2025.12.01 |
|---|---|
| Bandit Level 18 → Level 19 (쉘 스크립트 우회) (0) | 2025.12.01 |
| Bandit Level 16 → Level 17 (nmap) (0) | 2025.12.01 |
| Bandit Level 15 → Level 16 (SSL/TLS - openssl) (0) | 2025.12.01 |
| Bandit Level 14 → Level 15 (nc, 네트워크 관련 명령어) (0) | 2025.12.01 |