본문 바로가기

wargame/bandit

Level 0 → Level 1

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.
이번 목표는 SSH를 이용하여 게임에 접속하는 것이다. 접속해야 할 호스트는 bandit.labs.overthewire.org이고 포트는 2220이다. username은 bandit0, 비밀번호는 bandit0이다 로그인하면 Level 1 페이지로 가서 Level 1을 깨는 방법을 알 수 있다


우선 SSH를 설치하였다
참고 사이트

Code

kjs@virtualbox:~$ sudo su
[sudo] kjs의 암호: 
root@virtualbox:/home/kjs# apt install openssh-server # SSH 설치
#설치 문구
root@virtualbox:/home/kjs# which sshd # SSH 설치 확인
/usr/sbin/sshd
root@virtualbox:/home/kjs# ufw allow 22/tcp # tcp 포트 22번 허용
규칙이 업데이트됐습니다
규칙이 업데이트됐습니다(v6)
root@virtualbox:/home/kjs# gedit /etc/ssh/sshd_config # SSH 프로토콜 접속 규칙 수정
root@virtualbox:/home/kjs# apt install net-tools # 호스트 주소를 확인하는 명령어 설치
#설치 문구
root@virtualbox:/home/kjs# ifconfig # 현재 호스트의 원격 IP 주소를 알 수 있다
root@virtualbox:/home/kjs# ssh bandit0@bandit.labs.overthewire.org -p 2220 #bandit 0 문제를 풀 수 있다
This is a OverTheWire game server. More information on http://www.overthewire.org/wargames
bandit0@bandit.labs.overthewire.org's password: # 비밀번호를 입력한다
Linux bandit 4.18.12 x86_64 GNU/Linux
#안내 문구
bandit0@bandit:~$ # 명령어를 입력하여 문제를 해결할 수 있다

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.
다음 레벨의 비밀번호는 홈디렉토리의 readme 파일에 저장되어 있다. SSH를 사용하여 bandit1에 로그인할 때 이 비밀번호를 사용하여라. 비밀번호를 찾을 때마다 SSH로 해당 레벨에 로그인하고 게임을 진행한다.

Code

bandit0@bandit:~$ ls
readme
bandit0@bandit:~$ cat readme
# 비밀번호


'wargame > bandit' 카테고리의 다른 글

Level 5 → Level 6  (0) 2019.02.14
Level 4 → Level 5  (0) 2019.02.14
Level 3 → Level 4  (0) 2019.02.14
Level 2 → Level 3  (0) 2019.02.14
Level 1 → Level 2  (0) 2019.02.14