워게임
-
[WarGame] Bandit, Level 6 → Level 7워게임 2023. 3. 19. 19:29
[WarGame] Bandit, Level 6 → Level 7 Problem user가 bandit7이고, group이 bandit6이며 size가 33바이트인 파일을 찾으면 된다. find --help로 옵션 확인하면 금방 될 듯 합니다. Solving bandit6@bandit:~$ find --help | grep user -nouser -nogroup -path PATTERN -perm [-/]MODE -regex PATTERN -used N -user NAME -xtype [bcdpfls] -context CONTEXT bandit6@bandit:~$ find --help | grep group -cnewer FILE -ctime N -empty -false -fstype TYPE -gid N..
-
[WarGame] Bandit, Level 5 → Level 6워게임 2023. 3. 19. 19:28
[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..
-
[WarGame] Bandit, Level 4 → Level 5워게임 2023. 3. 19. 19:28
[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 -..
-
[WarGame] Bandit, Level 3 → Level 4워게임 2023. 3. 19. 19:28
[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
-
[WarGame] Bandit, Level 2 → Level 3워게임 2023. 3. 19. 19:27
[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
-
[WarGame] Bandit, Level 1 → Level 2워게임 2023. 3. 19. 19:26
[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
-
[WarGame] Bandit, Level 0 → Level 1워게임 2023. 3. 19. 19:26
[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