보안/Bandit

[OverTheWire: Bandit] -Level0 ->Level 1

ghghdlt 2024. 5. 2. 16:03

#문제

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

 

OverTheWire: Level Goal

We're hackers, and we are good-looking. We are the 1%. <!-- Please read and accept the Rules! --> 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. W

overthewire.org

비밀번호가 홈 디렉토리에 있는 readme 파일에 저장된다. 고 한다.

 

 

 

 

#풀이

전에 포스팅 했던 글에서 Putty를 실행한거 처럼 Putty 실행하고

Bandit0을 입력해준다. 비번은 Bandit0

Bandit0 에 로그인한 화면

ls를 입력해서 홈 디렉토리의 파일을 확인해준다!@

 

문제에서 봤던 readme라는 파일이 존재한다는 걸 알 수 있따!

파일 읽는 명령어 cat을 써서 cat readme를 입력했더니 비밀번호!가 나왔따.

 

bandit1: NH2SXQwcBdpmTEzi3bvBHMM9H66vVXjL

 

 

 

-------------------

<사용한 명령어>

ls- 디렉토리 안의 파일 읽기

cat- 파일 안 모든 내용 확인