https://overthewire.org/wargames/bandit/bandit8.html
OverTheWire: Level Goal
We're hackers, and we are good-looking. We are the 1%. Level Goal The password for the next level is stored in the file data.txt next to the word millionth Commands you may need to solve this level man, grep, sort, uniq, strings, base64, tr, tar, gzip, bzi
overthewire.org
Level Goal
The password for the next level is stored in the file data.txt next to the word millionth
Commands you may need to solve this level
man, grep, sort, strings, base64, tr, tar, gzip, bzip2, xxd
풀이
data.txt 파일이 존재하는데, 이 파일 텍스트에서 millionth 단어 다음에 오는 문자열이 플래그라는 소리다.
파일에서 특정 문자를 검색하는 grep 커맨드를 사용해서 풀면 된다.
data.txt를 읽으면 수많은 text들이 나온다.
grep 커맨드로 FLAG를 쉽게 찾을 수 있다.
TESKZC0XvTetK0S9xNwm25STk5iWrBvP
man
(Manual pager utils) 각종 명령어, 프로그램의 메뉴얼을 출력해주는 커맨드.
grep
파일 내에 특정한 문자를 찾는 커맨드.
sort
파일의 내용을 정렬하거나 정렬된 파일을 병합하는 커맨드
strings
파일 내의 ASCII 문자를 찾아 화면에 출력하는 커맨드.
base64
base64 인코딩하는 커맨드
base64 --decode
디코드하는 커맨드
tr
특정 문자를 변환하거나 삭제하는 명령어.
tar
tar 파일 압축 혹은 압축 풀기 커맨드.
gzip
.gz 형식 압축 및 해제 커맨드.
bzip2
.bz2 형식의 압축 및 해제 커맨드.
(압축률 : tar << tgz(tar.gz) < bz2)
xxd
파일의 내용을 16진수 형태(hex dump)로 보여주는 명령어.