Fascination
article thumbnail

1. [Bandit] Level 0: Bandit 접속하기

Bandit: https://overthewire.org/wargames/bandit/


1.1. 1. Level Goal

  • 목표는 ssh를 사용하여 게임에 접속하는 것이다
  • hostbandit.labs.overthewire.org에 연결되어야하며 이때 port2220을 사용한다
  • usernamebandit0로 설정한다
  • 로그인 한 이후에는 level 1로 가기 위한 방법을 찾으면 된다

 

1.2. 2. Commands you may need to solve this level

  • ssh

 

1.3. 3. 풀이 방법 및 개념 정리

  • ssh 설치
<shell />
$ sudo apt update $ sudo apt install openssh-server
  • ssh 서비스 실행 확인
<shell />
$ sudo systemctl status ssh
  • ssh port open
    • 시스템에서 방화벽을 사용하도록 설정한 경우를 위해 port를 열어야 한다
<shell />
$ sudo ufw allow ssh
  • ssh 연결
<shell />
$ ssh username@public_ip_address
  • ssh 다른 포트 접속: -p
    • 포트를 따로 지정하지 않으면 자동으로 22번 포트가 할당된다
<shell />
$ ssh username@public_ip_address -p port_number
  • ssh 서비스 중지
<shell />
$ sudo systemctl stop ssh
  • ssh 서비스 재시작
<shell />
$ sudo systemctl start ssh
  • 문제 풀이
    • 환경: Linux Ubuntu 18.04
    • ssh 명령어를 사용하여 usernamebandit0, ip주소bandit.labs.overthewire.org 그리고 -p 옴션으로 port 번호를 2220으로 설정하여 다음과 같이 wargame에 접속할 수 있었다
    • 이때 level0에서 사용되는 passwordbandit0 이다

1.3.1.  

'War Game & CTF > OverTheWire: Bandit' 카테고리의 다른 글

[Bandit] Level 4 → Level 5  (0) 2023.01.26
[Bandit] Level 3 → Level 4  (0) 2023.01.20
[Bandit] Level 2 → Level 3  (0) 2023.01.20
[Bandit] Level 1 → Level 2  (0) 2023.01.09
[Bandit] Level 0 → Level 1  (0) 2022.11.25
profile

Fascination

@euna-319

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!