[ Bandit Level 5 → Level 6 문제 리뷰 ]
Bandit Level 9 → Level 10
레벨 목표
다음 레벨을 위한 password는 data.txt 파일 안 앞의 몇 개의 '='자가 앞에 붙은 몇 안 되는 인간이 읽을 수 있는 문자열 중 하나입니다.
이 문제를 풀기 위해 필요할 수도 있는 명령어들
grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd
문제 해설
(1) strings
strings는 ASCII문자를 찾아 화면에 출력해주는 명령어이다.
strings [파일명]
strings는 바이너리(binary) 파일도 일반 텍스트 문서처럼 변환해준다.
stirngs data.txt 를 입력하여 사람이 읽을 수 있는 문자열로 변환시킨다.
그러나 길이가 너무 길어 비밀번호를 찾기에는 어려움이 있다.
(1) strings와 grep 명령어로 password 찾기
strings data.txt | grep "===" 를 살펴보자.
strings data.txt : data.txt의 출력 가능한 모든 ASCII 문자를 출력
grep "===" : "===" 문자열이 포함된 줄만 출력
따라서 레벨 10을 위한 password는
truKLdjsbJ5g7yyJ2X2R0o3a5HQJFuLk
이다.
Level 10 → Level 11 의 해설 ⤵
2022.05.02 - [LINUX] - OverTheWire: Level Goal: Bandit Level 10 → Level 11
'OS > LINUX' 카테고리의 다른 글
OverTheWire: Level Goal: Bandit Level 11 → Level 12 (0) | 2022.05.03 |
---|---|
OverTheWire: Level Goal: Bandit Level 10 → Level 11 (0) | 2022.05.02 |
OverTheWire: Level Goal: Bandit Level 8 → Level 9 (0) | 2022.05.02 |
OverTheWire: Level Goal: Bandit Level 7 → Level 8 (0) | 2022.05.02 |
OverTheWire: Level Goal: Bandit Level 6 → Level 7 (0) | 2022.04.10 |