[bandit] Level 7 → Level 8

우주먼지·2024년 4월 5일
0

[War Game]Bandit

목록 보기
9/34

Bandit Level 7 → Level 8
Level Goal
The password for the next level is stored in the file data.txt next to the word millionth

Sol)
다음은 'data.txt'파일에 'millionth' 단에 옆에 비밀번호가 있다고 한다.
일단 열어보면

엄청나게 많은 암호들이 적혀있는데 파이프라인을 이용할 차례다.

# 파이프라인('|')을 쓰면 앞에 쓴 명령어의 출력을 입력으로 해서 명령어를 또 실행한다.
# grep [word] 명령어는 입력된 문장의 특정 문자열을 찾는데 쓰인다.

cat ./data.txt | grep 'millionth'

다음으로 넘어가보자!

profile
오늘보다 내일 더 문제가 많았으면 좋겠다.

0개의 댓글