전체보기272 [WarGame] Bandit, Level 5 → Level 6 [WarGame] Bandit, Level 5 → Level 6 Problem inhere 디렉토리 내부의, human-readable이며, 1033 바이트이고, 실행 불가능한 파일을 찾으면 된다. Solving bandit5@bandit:~/inhere$ find --help # ... find 명령어의 옵션 조회 ... bandit5@bandit:~/inhere$ find ./maybehere*/* -size 1033c -readable ! -executable # 안되서 아래처럼 입력 bandit5@bandit:~/inhere$ find ./* -size 1033c -readable ! -executable # GOOD ./maybehere07/.file2 bandit5@bandit:~/inhere.. 2023. 3. 19. [WarGame] Bandit, Level 4 → Level 5 [WarGame] Bandit, Level 4 → Level 5 Problem inhere 디렉토리 내부의, human-readable인 파일을 조회하면 된다. Solving bandit4@bandit:~/inhere$ ls -rtl total 40 -rw-r----- 1 bandit5 bandit4 33 Feb 21 22:03 -file01 -rw-r----- 1 bandit5 bandit4 33 Feb 21 22:03 -file00 -rw-r----- 1 bandit5 bandit4 33 Feb 21 22:03 -file02 -rw-r----- 1 bandit5 bandit4 33 Feb 21 22:03 -file03 -rw-r----- 1 bandit5 bandit4 33 Feb 21 22:03 -.. 2023. 3. 19. [WarGame] Bandit, Level 3 → Level 4 [WarGame] Bandit, Level 3 → Level 4 Problem 단순하게 숨긴 파일을 조회하면 된다. Solving -bash-3.2$ ssh bandit3@bandit.labs.overthewire.org -p 2220 # ... 패스워드 ... drwxr-xr-x 2 root root 4096 Feb 21 22:03 inhere bandit3@bandit:~$ cat inhere/.hidden Refer https://overthewire.org/wargames/bandit/bandit4.html 2023. 3. 19. [WarGame] Bandit, Level 2 → Level 3 [WarGame] Bandit, Level 2 → Level 3 Problem 단순하게 스페이스가 포함된 패스워드 파일을 확인하면 된다. Solving -bash-3.2$ ssh bandit2@bandit.labs.overthewire.org -p 2220 bandit2@bandit:~$ ls -rtl total 4 -rw-r----- 1 bandit3 bandit2 33 Feb 21 22:03 spaces in this filename bandit2@bandit:~$ cat spaces\ in\ this\ filename Refer https://overthewire.org/wargames/bandit/bandit3.html 2023. 3. 19. [WarGame] Bandit, Level 1 → Level 2 [WarGame] Bandit, Level 1 → Level 2 Problem 패스워드 파일, ‘-’ 파일을 확인하면 된다. (그냥 cat을 option 없이 출력하는 문제) Solving -bash-3.2$ ssh bandit1@bandit.labs.overthewire.org -p 2220 # ... 패스워드 입력 ... bandit1@bandit:~$ ls -rtl total 4 -rw-r----- 1 bandit2 bandit1 33 Feb 21 22:03 - bandit1@bandit:~$ cat ./- Refer https://overthewire.org/wargames/bandit/bandit2.html 2023. 3. 19. [WarGame] Bandit, Level 0 → Level 1 [WarGame] Bandit, Level 0 → Level 1 Problem 단순하게 ssh로 접속하면 된다. 홈 디렉토리에 패스워드 파일이 있다고 한다. Solving -bash-3.2$ ssh bandit0@bandit.labs.overthewire.org -p 2220 # ... {패스워드 입력 ... -rw-r----- 1 bandit1 bandit0 33 Feb 21 22:02 readme bandit0@bandit:~$ cat readme Refer https://overthewire.org/wargames/bandit/bandit1.html 2023. 3. 19. 이전 1 2 3 4 5 6 7 ··· 46 다음