Level 0 / Level 0 → Level 1

옥영진·2020년 5월 15일
0

Bandit - OverTheWire

목록 보기
1/33

개요

Bandit은 OverTheWire에서 리눅스를 잘 모르는 초보자들을 대상으로 제공하는 wargame 중 하나이다.
Bandit은 여러 개의 레벨들로 구성되어 있는데, 각 레벨에서 다음 레벨로 넘어가기 위한 패스워드를 얻어야 한다.
앞으로 SSH 접속 툴로 MobaXterm을 사용할 예정이다.



Level 0

목표

Level Goal
The goal of this level is for you to log into the game using SSH. The host to which you need to connect is bandit.labs.overthewire.org, on port 2220. The username is bandit0 and the password is bandit0. Once logged in, go to the Level 1 page to find out how to beat Level 1.

Commands you may need to solve this level
ssh

SSH를 사용하여 bandit.labs.oerthewire.org:2220으로 접속하라고 한다. 아이디와 패스워드는 동일하게 bandit0이다.

해결

위 이미지를 통해 알 수 있듯이, host를 bandit.labs.overthewire.org로, 포트번호는 2220으로 설정한 후 세션을 생성한다.
ID와 패스워드를 각각 bandit0로 입력하고 접속하면 된다.



Level 0 → Level 1

목표

Level Goal
The password for the next level is stored in a file called readme located in the home directory. Use this password to log into bandit1 using SSH. Whenever you find a password for a level, use SSH (on port 2220) to log into that level and continue the game.

Commands you may need to solve this level
ls, cd, cat, file, du, find

home 디렉토리 안에 readme라고 하는 파일에 다음 레벨로 갈 수 있는 패스워드가 저장되어 있다고 한다.

해결

cd ~
cat readme

홈 디렉토리로 이동 후 cat 명령어를 통해 readme 파일의 내용을 출력하면 다음 레벨의 패스워드를 얻을 수 있다.

profile
안녕하세요 함께 공부합시다

0개의 댓글