[OverTheWire System - Bandit] Level 12 >> Level 13
Wargame/OverTheWire 2021. 10. 31. 02:47

Level Goal The password for the next level is stored in the file data.txt, which is a hexdump of a file that has been repeatedly compressed. For this level it may be useful to create a directory under /tmp in which you can work using mkdir. For example: mkdir /tmp/myname123. Then copy the datafile using cp, and rename it using mv (read the manpages!) 다음 레벨의 비밀번호는 반복적으로 압축된 파일의 hexdump인 data.txt ..

[OverTheWire System - Bandit] Level 11 >> Level 12
Wargame/Dreamhack 2021. 10. 28. 09:21

Level Goal The password for the next level is stored in the file data.txt, where all lowercase (a-z) and uppercase (A-Z) letters have been rotated by 13 positions 다음 레벨의 비밀번호는 data.txt 파일에 저장됩니다. 여기서 모든 소문자(a-z) 및 대문자(A-Z)가 13자리 회전되었습니다. Hint 1. tr 명령어 Write Up 더보기 확인한 결과, 알파벳이 회전되어 알 수 없는 문자열이 출력되었다. tr 명령어를 사용하면 간단하게 문자를 바꾸거나 삭제할 수 있다. 이를 이용하여 알파벳을 반대로 13 회전하였다. bandit12 :: 5Te8Y4drgCRfCx8ugdw..

[OverTheWire System - Bandit] Level 10 >> Level 11
Wargame/OverTheWire 2021. 10. 28. 09:07

Level Goal The password for the next level is stored in the file data.txt, which contains base64 encoded data 다음 레벨의 비밀번호는 base64로 인코딩된 데이터가 포함된 data.txt 파일에 저장됩니다. Hint 1. base64 명령어 Write Up 더보기 data.txt 파일을 확인한 결과 bandit11의 pw가 base64 인코딩되어있는 것으로 보인다. base64 명령어을 통해 디코딩을 시키겠다. 옵션을 확인한 결과 -d 옵션을 사용하면 디코딩이 된다고 한다. 확인한 결과 디코딩이 아주 잘 되었다. bandit11 :: IFukwKGsFW8MOq3IRFqrxE1hxTNEbUPR

[OverTheWire System - Bandit] Level 9 >> Level 10
Wargame/OverTheWire 2021. 10. 28. 09:00

Level Goal The password for the next level is stored in the file data.txt in one of the few human-readable strings, preceded by several ‘=’ characters. 다음 레벨의 비밀번호는 몇 개의 '=' 문자가 앞에 오는 사람이 읽을 수 있는 몇 가지 문자열 중 하나로 data.txt 파일에 저장됩니다. Hint 1. grep 명령어의 -a 옵션 2. string 명령어 Write Up 더보기 data.txt 파일을 읽어보니, 아스키 코드로 이루어진 데이터는 아닌 듯하였다. 확인한 결과, 역시 아스키 코드가 아닌 data 타입이라고 나온다. 일단 데이터 속에 사람이 읽을 수 있는 문자열이 있는 것 ..

[OverTheWire System - Bandit] Level 8 >> Level 9
Wargame/OverTheWire 2021. 10. 27. 19:05

Level Goal The password for the next level is stored in the file data.txt and is the only line of text that occurs only once 다음 레벨의 암호는 data.txt 파일에 저장되며 한 번만 나타나는 텍스트의 유일한 줄입니다. Hint 1. Linux pipe 2. Sort 명령어 3. Uniq 명령어 Write Up 더보기 나는 문제 설명을 보고 "uniq 명령어를 사용하면 손 쉽게 풀 수 있겠다"라고 생각했지만, 실패하였다. 인터넷에 검색한 결과 sorting을 안 해줘서 실패하였다고 하여 sort 명령어를 통해 sorting 후 uniq 명령어를 사용하였다. 그 결과 data.txt에서 유일한 값을 출력하였..

[OverTheWire System - Bandit] Level 7 >> Level 8
Wargame/OverTheWire 2021. 10. 27. 18:52

Level Goal The password for the next level is stored in the file data.txt next to the word millionth 다음 레벨의 비밀번호는 millionth라는 단어 옆에 있는 data.txt 파일에 저장됩니다. Hint 1. Linux pipe 2. grep Write Up 더보기 data.txt를 확인해본 결과 엄청 많은 문자열들이 있었다. 나는 파이프와 grep을 이용하여 손 쉽게 millionth을 찾아서 해당 부분만 출력하였다. bandit8 :: cvX2JJa4CFALtqS87jk27qwqGhBM9plV

[OverTheWire System - Bandit] Level 6 >> Level 7
Wargame/OverTheWire 2021. 10. 27. 18:31

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 다음 단계의 암호는 서버의 어딘가에 저장되며 다음 속성을 모두 가집니다. 파일 소유자 : bandit7 그룹 소유자 : bandit6 파일 크기 : 33 bytes Hint 1. find 명령어 2. find 명령어의 size, user, group 옵션 Write Up 더보기 이번엔 홈 디렉토리가 깨끗했다. 저번 문제처럼 find 명령어를 사용하여 문제 설명에서 나온 정보와 일치하는 파..

[OverTheWire System - Bandit] Level 5 >> Level 6
Wargame/OverTheWire 2021. 10. 26. 17:37

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 디렉토리 아래의 파일에 저장되며 다음 속성을 모두 가집니다. 인간이 읽을 수 있는 파일 (아스키 코드) 1033 byte의 크기 실행 불 가능한 파일 Hint 1. ls 명령어 2. find 명령어 3. cat 명령어 Write Up 더보기 ls 명령어를 통해 inhere 디렉토리를 확인한 결과 엄청 많은 디렉토리들이 존재하는 것을 볼 수..

[OverTheWire System - Bandit] Level 4 >> Level 5
Wargame/OverTheWire 2021. 10. 26. 16:53

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 디렉토리에 저장됩니다. 팁: 터미널이 잘못된 경우 "재설정" 명령을 사용해 보십시오. Hint 1. ls 명령어 2. cat 명령어 3. file 명령어 Write Up 더보기 bandit3 문제처럼 ls 명령어로 확인한 결과 inhere 디렉토리에 많은 파일이 확인되었다. 나는 일단 -file00 파일을 cat 명령어를 이용하여 확인하..

[OverTheWire System - Bandit] Level 3 >> Level 4
Wargame/Dreamhack 2021. 10. 26. 16:27

Level Goal The password for the next level is stored in a hidden file in the inhere directory. 다음 단계의 암호는 이 디렉토리의 숨겨진 파일에 저장됩니다. Hint 1. ls 명령어 2. cat 명령어 3. 리눅스 숨겨진 파일 Write Up 더보기 ls 명령어로 홈 디렉토리를 확인해보니, inhere 디렉토리가 있었다. 그래서 안에 뭐가 있는지 궁금하여 inhere 디렉토리도 확인하였다. 확인 한 결과 .hidden 파일이 있다는 것을 알 수 있었다. file 이름 앞에 .이 있다는 것은 숨긴 파일이라는 뜻이다. cat 명령어를 사용하여 .hidden 파일을 확인해봤다. bandit4 :: pIwrPrtPN36QITSp3EQaw..