전체 글
-
[WarGame] Bandit, Level 10 → Level 11워게임 2023. 3. 19. 19:30
[WarGame] Bandit, Level 10 → Level 11 Problem base64 명령어는 써본 적이 있어서, 그냥 풀었다. Solving bandit10@bandit:~$ ls -rtl total 4 -rw-r----- 1 bandit11 bandit10 69 Feb 21 22:02 data.txt bandit10@bandit:~$ base64 --help Usage: base64 [OPTION]... [FILE] Base64 encode or decode FILE, or standard input, to standard output. With no FILE, or when FILE is -, read standard input. Mandatory arguments to long optio..
-
[WarGame] Bandit, Level 9 → Level 10워게임 2023. 3. 19. 19:30
[WarGame] Bandit, Level 9 → Level 10 Problem data.txt 파일에 읽을 수 있고, ‘=’로 나누어져 있다는 듯 했다. Solving xxd를 쓸 줄 알았으나, 개행 때문에 strings를 처음으로 써봤다. bandit9@bandit:~$ strings data.txt | grep = dS=5 f========== theM =XeOh =vb` O=Nq =I6a ========== password ========== is 2\:= u=]T %AM_9= 1~=y Q=9( j=GD b=fF 0?F=( .DX_/= ========== G7w8LIi6J3kTb8A7j9LgrywtEUlyyp6s 유용한 명령어인 것 같다. Refer https://overthewire.org/wa..
-
[WarGame] Bandit, Level 8 → Level 9워게임 2023. 3. 19. 19:29
[WarGame] Bandit, Level 8 → Level 9 Problem 패스워드는 오직 한번만 나오는 단어라고 한다. sort가 맞을 듯..? Solving 매우 재미있는 옵션 발견..!? bandit8@bandit:~$ sort --help # .... 생략 sort --help -u, --unique with -c, check for strict ordering; without -c, output only the first of an equal run 이게 아닌거 같아서, 힌트에 있는 uniq를 찾아봤다. bandit8@bandit:~$ uniq --help Mandatory arguments to long options are mandatory for short options too. -c,..
-
[WarGame] Bandit, Level 7 → Level 8워게임 2023. 3. 19. 19:29
[WarGame] Bandit, Level 7 → Level 8 Problem millionth 라는 단어 옆에 패스워드가 저장된다는 의미이다. sort가 느낌이 왔는데, 익숙하지 않아서 고민이였습니다. Solving bandit7@bandit:~$ cat data.txt | grep millionth millionth {~~~~~PASSWORD~~~~~} 매우 원시적인 방법으로 풀었는데, 바로 나와서 놀랬습니다. Refer https://overthewire.org/wargames/bandit/bandit8.html
-
[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