본문 바로가기

Level 6 → Level 7 Level Goal The password for the next level is stored somewhere on the server and has all of the following properties: owned by user bandit7 owned by group bandit6 33 bytes in size 비밀번호는 서버 어딘가에 저장되어 있고 다음과 같은 속성을 모두 가지고 있다 Code bandit6@bandit:~$ find / -size 33c #데이터 bandit6@bandit:~$ find / -user bandit7 -group bandit6 -size 33c -exec cat {} \; #비밀번호 Level 5의 확장 버전이어서 똑같이 find 명령어를 사용하였다. 다만 서버..
Level 5 → Level 6 Level Goal 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 디렉토리 아래 어딘가에 저장되어 있고 다음과 같은 속성을 모두 가지고 있다 Code bandit5@bandit:~$ cd inhere bandit5@bandit:~/inhere$ ls maybehere00 maybehere03 maybehere06 maybehere09 maybehere12 maybehere15 maybehere18 maybeher..
Level 4 → Level 5 Level Goal 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 디렉토리에 사람이 읽을 수 있는 파일에만 저장되어 있다 tip: 터미널이 복잡하면, reset 명령어를 사용하자 Code bandit4@bandit:~$ cd inhere bandit4@bandit:~/inhere$ ls -file00 -file01 -file02 -file03 -file04 -file05 -file06 -file07 -file08 -file09 bandit4@ban..
Level 3 → Level 4 Level Goal The password for the next level is stored in a hidden file in the inhere directory 비밀번호는 inhere 디렉토리의 숨겨진 파일에 저장되어 있다 Code bandit3@bandit:~$ ls inhere bandit3@bandit:~$ cd inhere bandit3@bandit:~/inhere$ ls -al total 12 drwxr-xr-x 2 root root 4096 Oct 16 14:00 . drwxr-xr-x 3 root root 4096 Oct 16 14:00 .. -rw-r----- 1 bandit4 bandit3 33 Oct 16 14:00 .hidden bandit3@bandit:~/inhere$ ca..
Level 2 → Level 3 Level Goal The password for the next level is stored in a file called spaces in this filename located in the home directory 비밀번호는 홈 디렉토리의 spaces in this filename 파일에 저장되어 있다 Code bandit2@bandit:~$ ls spaces in this filename bandit2@bandit:~$ cat spaces\ in\ this\ filename #비밀번호 bandit2@bandit:~$ cat "spaces in this filename" #비밀번호 파일 이름에 공백이 포함되어 있는 경우, 첫 단어를 입력한 후 tab를 누르면 파일의 나머지 부분을 자동으로 입력할 ..
Level 1 → Level 2 Level Goal The password for the next level is stored in a file called - located in the home directory 비밀번호는 홈 디렉토리의 - 파일에 저장되어 있다 Code bandit1@bandit:~$ ls - bandit1@bandit:~$ cat - asdf asdf ^C bandit1@bandit:~$ cat ./- #비밀번호 Level 0과 동일한 방식으로 접근하면 -는 stdin, stdout을 의미하기도 하므로 표준입력을 받을 것을 출력한다. 따라서 다른 방식으로 접근해야 한다. 다음과 같이 절대 경로를 이용하여 출력하는 방식은 명령어 옵션과 같이 헷갈리는 경우에도 적용할 수 있다. 비슷한 사례
Level 0 → Level 1 Level Goal 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를 이용하여 게임에 접속하는 것이다. 접속해야 할 호스트는 bandit.labs.overthewire.org이고 포트는 2220이다. username은 bandit0, 비밀번호는 ba..
[Linux]명령어 cat, touch 모든 포스트목록 cat(concatenate) 개요표준입력 내용을 파일에 저장하는 명령어 파일들을 잇는 명령어파일 내용을 출력하는 명령어 형식cat > 파일 cat 파일+ > 파일cat [옵션] 파일* 1,2의 경우 값이 저장되는 파일이 존재하지 않으면 새로 생성한다 1,2의 경우 어떤 출력 재지정 명령어를 쓰는지에 따라 결과가 달라질 수 있다 (출력 재지정에 관한 명렁은 여기) 3의 경우 파일을 지정하지 않으면 표준입력 내용을 화면에 출력한다 1, 3의 경우 ctrl+d 입력 시 표준입력이 종료된다 옵션[-n] 3의 경우 파일 내용 앞에 줄번호를 붙인다 예시 kjs@virtualbox:~$ cat > temp.txt # 첫 번째 경우 실행 test 1 2 kjs@virtualbox:~$ cat temp..