Bandit level 0

거대한리트리버·2023년 8월 8일
0
post-thumbnail

환경 : Linux Ubuntu 22.04

문제

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 [USER]@[HOSTNAME] -p [PORT]

그런데 위 코드대로 해보니 user는 입력하지 않는다고 한다.
아래 코드로 로그인이 가능할 것 같다.

ssh bandit.labs.overthewire.org -p 2220

안 되는 것 같다.. 좀 더 찾아보니 -l으로 user를 지정할 수 있다고 한다.
위의 코드에 추가해주면 될 것 같다.

ssh bandit.labs.overthewire.org -p 2220 -l bandit0

+) user에 bandit0를 입력해줘도 접속된다.
아까는 user에 내 닉네임을 적어서 그렇게 된 것 같다..

ssh bandit0@bandit.labs.overthewire.org -p 2220

password : bandit0

profile
강아지귀여워

0개의 댓글