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

Wargame/Bandit2022. 3. 4. 22:44Bandit Level 3 → Level 4

Level Goal다음 레벨에 대한 패스워드는 'inhere'이라는 디렉터리에 숨겨진 파일에 저장되어 있다. Commands you may need to solve this levells, cd, cat, file, du, findAnswer$ ls$ cd inhere           // inhere 폴더로 들어가기.$ ls -al                  // -al 숨겨진 파일까지 전부 다 확인$ cat .hidden bandit4 password : pIwrPrtPN36QITSp3EQaw936yaFoFgAB

Wargame/Bandit2022. 3. 4. 22:35Bandit Level 2 → Level 3

Level Goal다음 레벨에 대한 패스워드는 홈 디렉터리에 위치한 'spaces in this filename' 이라는 파일에 저장되어 있습니다. Commands you may need to solve this levells, cd, cat, file, du, findAnswer$ ls$ cat spaces\ in\ this\ filename// 띄어쓰기는 '\ '로 표시한다.(백슬래시 띄어쓰기 한 칸) bandit3 password : UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK

Wargame/Bandit2022. 3. 4. 22:26Bandit Level 1 → Level 2

Level Goal다음 레벨에 대한 패스워드는 홈 디렉터리에 위치한 -(dash) 파일에 위치해있다. Commands you may need to solve this levells, cd, cat, file, du, findAnswer$ ls$ cat // ls로 파일을 확인하고 dash 파일의 내용을 확인 할 때는  bandit2 password : CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9

image