[OverTheWire System - Bandit] Level 17 >> Level 18

Level Goal

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

 

홈디렉토리에는 2개의 파일이 있습니다: passwords.old 및 passwords.new. 다음 수준의 암호는 passwords.new에 있으며 password.old와 passwords.new 사이에서 변경된 유일한 줄입니다.
참고: 이 레벨을 해결하고 bandit18에 로그인하려고 할 때 'Byebye!'가 표시되면 이것은 다음 레벨인 bandit19와 관련이 있습니다.

Hint

1. diff

Write Up

더보기

문제의 설명대로 홈 디렉토리에 passwords.new와 passwords.old가 있는지 확인을 했다.

한번 파일의 내용을 확인했는데, 많은 문자열이 있어서 눈으로 구별은 힘들어 보였다.
그래서 구글에 리눅스 파일 비교로 검색하니, 파일을 비교하는 명령어를 알아낼 수 있었다.

참고 사이트 : https://webdir.tistory.com/154

 

해당 데이터가 틀리는데, 일단 new 확장자를 가진 값을 먼저 이용하여 bandit18 계정 로그인을 시도하였다.

 

로그인이 성공하였고, 바로 연결이 끊어졌다.
문제 설명에서 나온 Byebye!가 이것을 뜻하는 것으로 보인다.

 

bandit18 :: kfBf3eYk5BPBRzwjqutbbfE887SVc5Yd