Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- Dreamhack
- 정보보안
- 포인터와 배열
- 혼자공부하는네트워크
- bandit 비밀번호
- 혼공네트
- sk루키즈
- 티스토리챌린지
- overthewire bandit level 0
- kbdinteractiveauthentication
- AWS
- overthewire 문제
- 오블완
- 객체지향
- 네트워크이론정리
- bandit 문제풀이
- sk shieldus rookies 23기
- 네트워크문제
- 보안
- 공부기록
- bandit level
- 해킹
- overthewire bandit 문제풀이
- 네트워크정리
- bandit level 11 -> level 12 문제풀이
- 데이터와 로직
- overthewire bandit 문제
- web hacking
- 취약점진단
- 함수와 디버깅
Archives
- Today
- Total
아임노드
[OverTheWire Bandit] Bandit Level 17 -> Level 18 문제풀이 (+두 파일 비교하기) 본문
[SK shieldus Rookies 23기] 공부 노트/OverTheWire Bandit 문제풀이
[OverTheWire Bandit] Bandit Level 17 -> Level 18 문제풀이 (+두 파일 비교하기)
Noody 2024. 12. 11.OverTheWire Bandit
Level 17 -> Level 18
목표 : 두 파일의 차이를 비교하기
- 두 파일의 차이 비교하기
풀이 방법
1. bandit17 서버 접속
ssh bandit17@bandit.labs.overthewire.org -p 2220
2. 두 파일의 차이 비교하기
먼저 ls로 파일을 확인한다.
패스워드는 passwords.new에서 password.old와 다른 유일한 line이라고 했다.
따라서, diff 명령어를 사용하도록 한다.
diff passwords.old passwords.new
출력결과는 아래와 같이 나온다.
여기서 < 이후 글자가 old에서 유일한 line이 되고
> 이후 글자 가 new 파일에서 유일한 line이 된다.
만일 차이가 나는 라인이 많이 출력된다면
grep를 써서 > 만 확인해볼 수 있다.
diff passwords.old passwords.new | grep '>'
*** NOTE: if you have solved this level and see ‘Byebye!’ when trying to log into bandit18, this is related to the next level, bandit19
문제에서 다음 레벨에 접속하면 'Byebye' 문구와 함께 자동으로 종료된다고 알려주고 있다.