bandit8

KJH·2022년 11월 22일

bandit

목록 보기
4/29

lv8

링크

ssh bandit8@bandit.labs.overthewire.org -p 2220
#TESKZC0XvTetK0S9xNwm25STk5iWrBvP

The password for the next level is stored in the file data.txt and is the only line of text that occurs only once

단 한번만 등장하는 텍스트를 찾아라

  1. sort로 정렬
  2. uniq -u로 중복제거
bandit8@bandit:~$ sort data.txt | uniq -u
#EN632PlfYiZbn3PhVK3XOGSlNInNE00t

uniq

  • 기본적으로 중복되는건 하나만 표시함 (sort랑 같이쓰임)
  • -u 중복되지 않는것만 표시함
  • -d 중복된것만 표시
  • -c 중복된개수 세기
  • -i 대소문자 무시

0개의 댓글