본문 바로가기

전체보기272

[WarGame] Bandit, Level 11 → Level 12 [WarGame] Bandit, Level 11 → Level 12 Problem a-z와 A-Z 문자가 13번 rotate 회전(이동) 되어있다. 아래 사이트 참고해서, rot 시킴 https://rot13.com/ A → N Z → M a → n z → m 알파벳 순서는 아래와 같으니 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 정규식으로 치면 아래와 같다고 할 수 있다. A-Za-z → N-ZA-Mn-za-m Solving bandit11@bandit:~$ cat data.txt | tr 'A-Za-z' 'N-ZA-Mn-za-m' The password is .. 2023. 3. 19.
[WarGame] Bandit, Level 10 → Level 11 [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.. 2023. 3. 19.
[WarGame] Bandit, Level 9 → Level 10 [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.. 2023. 3. 19.
[WarGame] Bandit, Level 8 → Level 9 [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,.. 2023. 3. 19.
[WarGame] Bandit, Level 7 → Level 8 [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 2023. 3. 19.
[WarGame] Bandit, Level 6 → Level 7 [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.. 2023. 3. 19.