기본 콘텐츠로 건너뛰기

Bandit8

Bandit8

Bandit Level 8

data.txt에서 중복되지 않는 문자열이 이번 level의 패스워드이다. 중복 제거를 위해서 흔히 sortuniq를 활용한다.

uniq [-c/d/D/u][파일 명]
c: 중복 수 출력
d: 중복 라인 중 한 열만 출력
D: 중복되는 모든 열 출력
u: 중복 열이 없는 열만 출력

bandit8@bandit:~$ ls -al
total 56
drwxr-xr-x  2 root    root     4096 Nov 13 15:58 .
drwxr-xr-x 29 root    root     4096 Nov 13 15:57 ..
-rw-r--r--  1 root    root      220 Sep  1  2015 .bash_logout
-rw-r--r--  1 root    root     3771 Sep  1  2015 .bashrc
-rw-r--r--  1 root    root      655 Jun 24  2016 .profile
-rw-r-----  1 bandit9 bandit8 33033 Nov 13 15:58 data.txt
bandit8@bandit:~$ cat data.txt | sort | uniq -u
UsvVyFSfZZWbi6wgC7dAFyFuR6jQQUhR