반응형

정보보안 16

Bandit Level 5 -> Level 6 - 리눅스 하위 폴더 파일 찾기

문제 Level5. The password for the next level is stored in a file somewhere under the inhere directory and has all of the following properties: human-readable 1033 bytes in size not executable 풀이 inhere 디렉터리 어딘가에 3가지 조건을 만족시키는 파일에 비밀번호가 있다! 읽기 가능한 파일! 1033 bytes 파일! 실행파일 아님! 일단 inhere 안에 내부 파일 구조를 들여다봤다. 띠용...?! 20개의 디렉터리가 있고, 하나를 열어봤는데 또 10개 정도씩 파일이 있는 것을 확인했다... 이전 문제는 노가다라도 가능했지만, 이건 좀 심해보인다......

Bandit 2023.08.28

Bandit Level 4 -> Level 5 - 리눅스 파일 정보 명령어 'file'

문제 Level4. The password for the next level is stored in the only human-readable file in the inhere directory. Tip: if your terminal is messed up, try the “reset” command. 풀이 inhere 디렉터리에 사람이 읽기 가능한 파일이 하나있다! 항상 똑같이 기본적으로 inhere 디렉터리안으로 들어가는 명령어를 쳐야한다. 이정도는 이제 쉽게 할 수 있고, 지난 시간에 공부한 내용으로 파일들까지 알아보도록 하자. 흠.... 파일이 10개나 있는데 하나씩 열어보는 무식한 짓은 하기 싫다. 만약 해보고 싶다면 아래 명령어를 10번 입력해보자 cat ./-file00 리눅스 명령어 fi..

Bandit 2023.08.28

Bandit Level 3 -> Level 4 - 리눅스 숨김 파일 읽기

문제 Level3. The password for the next level is stored in a hidden file in the inhere directory. Level4. The password for the next level is stored in the only human-readable file in the inhere directory. Tip: if your terminal is messed up, try the “reset” command. 풀이 inhere 디렉터리의 숨겨진 파일에 패스워드가 있다! 자! 이 문제들을 풀기 전에 리눅스의 디렉터리안에 파일에 대해 알아보아야한다! 파일의 두가지 형태를 먼저 알아보도록 하자! 리눅스 일반파일 리눅스의 명령어에서 디렉터리 안에 내용을 ..

Bandit 2023.08.28

Bandit Level 1 -> Level 2 -> Level 3 - 리눅스 명령어 구조, more

문제 Level1. The password for the next level is stored in a file called - located in the home directory Level2. The password for the next level is stored in a file called spaces in this filename located in the home directory 풀이 사실 Level 0 -> Level 1을 풀었다면 Level 1 -> Level 3이 순식간에 풀리는 것 같다. (물론 그 이후도 비슷할 수 있는데, 일단 두 단계를 묶어서... 풀이해보고 있어요.) Bandit2 계정의 패스워드를 찾는 방법은 "-" 라는 파일에 담겨있다. Bandit3 계정의 패스워드를 ..

Bandit 2023.08.27

Bandit Level 0 -> Level 1 - 리눅스 cat, 파이프, grep 찾기

문제 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. 풀이 문제를 해석해보면 우리는 이 순서로 해결할 수 있음을 알 수 있다! home 디렉터리에 readme 라는 파일에 다음 레벨로 갈 수 있는 패스워드가 있다. 이 패스워드를 통해 bandit1 아이디로 로그인해라! 그러면 다음 레벨로 이동하여 계..

Bandit 2023.08.27

Bandit Level 0 - log into the game using SSH

문제 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. 풀이 level 0 문제는 문제를 풀기 위해 게임을 실행시키는 것이랑 같은 의미다. SSH을 이용하여 bandit.labs.overthewire.org 의 2220포트로 연결하면 된다. 나는 putty를 사용해서 연..

Bandit 2023.08.27
반응형