Wargame/Bandit2022. 3. 7. 17:32Bandit Level 11 → Level 12

Level Goal다음 레벨을 위한 패스워드는 data.txt 파일에 저장되어 있고, 거기에 모든 소문자 및 대문자는 13번 이동되어있다.Commands you may need to solve this levelgrep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxdAnswer$ ls$ cat ./data.txt$ cat ./data.txt | tr [A-Za-z] [N-ZA-Mn-za-m]      // tr 명령어를 사용해 13자리를 이동해서 제자리로 돌려준다. bandit12 password : 5Te8Y4drgCRfCx8ugdwuEX8KFC6k2EUu

Wargame/Bandit2022. 3. 7. 17:12Bandit Level 10 → Level 11

Level Goal다음 레벨을 위한 패스워드는 'data.txt'에 저장되어 있고 base64로 인코딩 되어있다. Commands you may need to solve this levelgrep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxdAnswer$ ls$ cat data.txt$ cat ./data.txt | base64 --decode        // data.txt의 데이터를 base64로 디코딩 해준다.$ base64 -d data.txt                            // data.txt를 -d 옵션을 사용하여 디코딩 해준다. bandit11 password : IFukwKGsFW8MOq3IRFqrxE1hxTNEbUPR

Wargame/Bandit2022. 3. 7. 17:05Bandit Level 9 → Level 10

Level Goal다음 레벨을 위한 패스워드는 읽을 수 있는 문자열 중 하나로 data.txt 파일에 저장되어 있습니다.패스워드는 몇몇개의 "=" 문자로 시작하며 읽을 수 있는 몇 안 되는 글자 중 하나다.Commands you may need to solve this levelgrep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxdAnswer$ ls -al$ cat data.txt$ cat ./data.txt | grep "="       // data.txt 파일 중 "="을 찾아라.$ strings ./data.txt                 // data.txt를 문자열로 끊어서 나타내기$ strings ./data.txt | grep =  ..

Wargame/Bandit2022. 3. 5. 20:42Bandit Level 8 → Level 9

Level Goal다음 레벨을 위한 패스워드는 'data.txt' 파일에 저장되어 있습니다. 그리고 단 한 번만 나타나는 텍스트 라인입니다. Commands you may need to solve this levelgrep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxdAnswer$ ls$ cat data.txt                              // data.txt 파일 내용을 확인. 하지만 너무 많은 데이터가 나온다.$ cat ./data.txt | sort                   // data.txt 파일 내용을 정렬해준다.$ cat ./data.txt | sort | uniq -c     // data.txt 파일의 데..

Wargame/Bandit2022. 3. 4. 23:32Bandit Level 7 → Level 8

Level Goal다음 레벨을 위한 패스워드는 'data.txt' 파일에 'millionth'라는 단어 옆에 저장되어 있다. Commands you may need to solve this levelgrep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxdAnswer$ ls$ cat data.txt$ cat ./data.txt | grep millionth   // 현재 폴더 아래의 data.txt 파일에서 millionth라는 단어를 찾기 // |(파이프) 왼쪽을 입력으로 받아 오른쪽 명령어를 수행한다. bandit8 password : cvX2JJa4CFALtqS87jk27qwqGhBM9plV

Wargame/Bandit2022. 3. 4. 23:24Bandit Level 6 → Level 7

Level Goal다음 레벨을 위한 패스워드는 서버 어딘가에 저장되어 있다. 그리고 다음 속성을 따른다.owned by user bandit 7       // 소유자 bandit7owned by group bandit6     // 소유 그룹 bandit633 bytes in size                    // 33byte 크기Answer$ ls$ find / -size 33c -user bandit7 -group bandit6                         // 위의 조건들을 포함하여 루트 디렉터리 아래의 모든 파일 찾기$ find / -size 33c -user bandit7 -group bandit6 2> /dev/null   // 2> /dev/null : 휴지통 같은 ..

Wargame/Bandit2022. 3. 4. 23:11Bandit Level 5 → Level 6

Level Goal다음 레벨을 위한 패스워드는 'inhere' 디렉터리 아래 어딘가에 위치해 있다. 그리고 목적 이 파일은 다음의 속성들을 가진다.human-readable     읽기 가능한1033 bytes in size  크기 1033 바이트not executable        실행이 불가능한Answer$ ls$ cd inhere$ ls -al$ find . -size 1033c   // find : 현재 폴더 아래의 모든 파일 중 1033 byte인 파일을 찾는 명령어(c : byte 단위)$ cat ./maybehere07/.file2 bandit6 password : DXjZPULLxYr17uwoI01bNLQbtFemEgo7

Wargame/Bandit2022. 3. 4. 22:59Bandit Level 4 → Level 5

Level Goal다음 레벨을 위한 패스워드는 'inhere' 디렉터리 안에 사람이 읽을 수 있는 파일에 저장되어 있다.팁 : 만약 당신의 터미널이 엉망이라면 'reset' 명령을 사용하세요. Commands you may need to solve this levells, cd, cat, file, du, findAnswer$ ls$ cd inhere$ ls$ file ./*            // file : 현재 폴더에 파일 유형을 확인 시 사용, * : 모든$ cat ./-file07   // 아스키 문자로 표시된 파일07 내용 확인 bandit5 password : koReBOKuIDDepwhWk7jZC0RTdopnAYKh

image