본문 바로가기
Security/OverTheWire

Bandit Level 17 → Level 18 (diff)

by curious week 2025. 12. 1.

문제

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 파일에만 있음 (추가됨)