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 파일에 패스워드가 있다고 합니다.

문제풀이

이렇게 파일을 열어서 비밀번호를 확인해줍니다.

비밀번호가 공개되어 있지만 설마 저걸 찾기 싫다고 따라쓰지는 않겠죠?


Linux 명령어 설명

ls -현재 디렉토리에 있는 파일을 보여줍니다.

cat [파일명] -파일의 내용을 출력합니다.

'Hacking-기초 > Linux Bandit' 카테고리의 다른 글

Bandit Level 4 → Level 5  (1) 2020.04.10
Bandit Level 3 → Level 4  (0) 2020.04.10
Bandit Level 2 → Level 3  (0) 2020.04.10
Bandit Level 1 → Level 2  (0) 2020.04.10
Putty로 Bandit 워게임 실행하기  (0) 2020.04.10

Bandit: 리눅스와 친해지기 위해서 사용하는 워게임 사이트

먼저 Putty를 받아줍니다.

https://www.putty.org/

 

Download PuTTY - a free SSH and telnet client for Windows

Is Bitvise affiliated with PuTTY? Bitvise is not affiliated with PuTTY. We develop our SSH Server for Windows, which is compatible with PuTTY. Many PuTTY users are therefore our users as well. From time to time, they need to find the PuTTY download link. W

www.putty.org

Download PuTTY - a free SSH and telnet client for Windows

Download PuTTY PuTTY is an SSH and telnet client, developed originally by Simon Tatham for the Windows platform. PuTTY is open source software that is available with source code and is developed and supported by a group of volunteers. You can download PuTTY here . Below suggestions are independent o...

www.putty.org

이 사이트에 접속하게 되면 아래의 모습이 나오게 됩니다.

putty 사이드 접속 화면

맨 위의 Download PuTTY에서 here 을 클릭해줍니다.

자신에게 맞는 버전을 받으시면 됩니다.

각자 자신의 컴퓨터에 맞는 파일을 받고 설치해주시면 됩니다.

설치 과정은 쉬우니 생략하도록 하고

설치한 뒤 putty를 실행하게 되면

putty 실행화면

위의 사진처럼 나오게 될 것이고 중간에 Bandit이라는 글자는 없을 겁니다.

이제 bandit에 접속해볼 차례인데요.

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

 

OverTheWire: Bandit

We're hackers, and we are good-looking. We are the 1%. Bandit The Bandit wargame is aimed at absolute beginners. It will teach the basics needed to be able to play other wargames. If you notice something essential is missing or have ideas for new levels, p

overthewire.org

OverTheWire: Bandit

Bandit The Bandit wargame is aimed at absolute beginners. It will teach the basics needed to be able to play other wargames. If you notice something essential is missing or have ideas for new levels, please let us know! Note for beginners This game, like most other games, is organised in levels. You...

overthewire.org

먼저 이 사이트에 접속해서 host 주소와 port 번호를 알아야합니다.

bandit 사이트

저기 11시방향에

SSH Information

Host: bandit.labs.overthewire.org

Port: 2220

이런식으로 적혀있네요

윗줄이 host 주소고 아랫줄이 port 번호인건 알겠죠?

미래에 이 글을 보고있을 때라면 저 두개가 바뀌었을 수도 있으니 Host와 Port는 직접 사이트에 들어가서 확인하시기 바랍니다.

이제 putty를 통해 bandit에 접속해보죠.

putty 실행화면

12시방향에 Host Name(or IP address)과 그 옆에 Port가 있습니다.

사이트에서 본 대로 똑같이 입력해주세요.(복사 붙여넣기 하세요)

이렇게 입력을 해줍니다.

자 모든게 끝났습니다. 이제 open을 눌러주면 bandit에 접속할 수 있습니다.

하나 더 말씀드리자면, 위의 사진에는 Bandit으로 써져있는 글씨가 있을겁니다.

저는 저 글씨를 더블클릭해서 들어가는데요.

똑같이 주소와 포트를 작성해주신 다음

Open을 누르지 말고

Save Sessions 란에 저장할 이름을 적은 뒤

Save를 해 주시면 저처럼 저장을 할 수 있습니다.

자 여기까지 putty의 설치와 bandit의 접속을 알아보았습니다!

***참고로 bandit 사용하는 방법을 모르시는 사람들이 있을지 몰라 작성하는데요.

문제는 bandit 사이트에 있고 그 문제를 보고 putty를 통해서 이러저러한 명령어를 통해 비밀번호를 알아가는 겁니다.

'Hacking-기초 > Linux Bandit' 카테고리의 다른 글

Bandit Level 4 → Level 5  (1) 2020.04.10
Bandit Level 3 → Level 4  (0) 2020.04.10
Bandit Level 2 → Level 3  (0) 2020.04.10
Bandit Level 1 → Level 2  (0) 2020.04.10
Bandit Level 0 → Level 1  (0) 2020.04.10

+ Recent posts