-
OverTheWire: Level Goal: Bandit Level 7 → Level 8 풀이2021 SCP Mentoring/OverTheWire: Bandit 2021. 5. 1. 14:24
문제 data.txt 파일 안에 millionth 란 단어 옆에 다음 레벨로 갈 password 가 저장되어 있다고 한다.
* 솔직히 파일 안의 내용이 그렇게 많지않아 cat 명령어로 data.txt 파일을 연 후 하나씩 찾아봐도 찾을 수 있긴하다.grep 명령어( grep [OPTIONS] PATTERN [FILE…] )를 사용하였다.
grep -w "millionth" data.txt
-w 단어(word) 단위로 매칭. password cvX2JJa4CFALtqS87jk27qwqGhBM9plV 를 얻었다.
SSH 명령어를 사용하여 bandit8로 연결하고
$ ssh bandit8@bandit.labs.overthewire.org -p 2220
password에 cvX2JJa4CFALtqS87jk27qwqGhBM9plV 를 입력하였다.
'2021 SCP Mentoring > OverTheWire: Bandit' 카테고리의 다른 글
OverTheWire: Level Goal: Bandit Level 9 → Level 10 풀이 (0) 2021.05.01 OverTheWire: Level Goal: Bandit Level 8 → Level 9 풀이 (0) 2021.05.01 OverTheWire: Level Goal: Bandit Level 6 → Level 7 풀이 (0) 2021.05.01 OverTheWire: Level Goal: Bandit Level 5 → Level 6 풀이 (0) 2021.04.26 OverTheWire: Level Goal: Bandit Level 4 → Level 5 풀이 (0) 2021.04.26