Level Goal
The password for the next level is stored in the file data.txt and is the only line of text that occurs only once
비밀번호는 data.txt 파일에 저장되어 있으며 한 번만 입력된 유일한 텍스트 줄이다
Code
bandit8@bandit:~$ cat data.txt | sort -r | uniq -u
#비밀번호
즉 한 문장을 제외하면 전부 중복된 문장이란 의미이므로 중복되는 줄을 제거하기로 하였다. 구글링 결과 uniq 명령어를 발견하여 실행하였다. u옵션은 중복된 줄을 제외하고 출력하는 옵션이다
'wargame > bandit' 카테고리의 다른 글
Level 10 → Level 11 (0) | 2019.02.20 |
---|---|
Level 9 → Level 10 (0) | 2019.02.14 |
Level 7 → Level 8 (0) | 2019.02.14 |
Level 6 → Level 7 (0) | 2019.02.14 |
Level 5 → Level 6 (0) | 2019.02.14 |