상세 컨텐츠

본문 제목

Bandit Level 7 -> Level 8

ENG/Bandit

by jaws99 2024. 9. 7. 19:02

본문

반응형

Level Goal

The password for the next level is stored in the file data.txt next to the word millionth

Commands you may need to solve this level

man, grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd

  • `grep` is used to search for patterns within files.

 

Write up

bandit7@bandit:~$ ls
data.txt
bandit7@bandit:~$ cat data.txt
Togo's  zMSk3jmZQL6OHd0BnkBcantGvGbTuyDR
loader  6kP31IsFVItYVYIulUxVorvHQpct2F6A
horseradish's   LAD77UITMQFCxqRiAAO6KNSCRUaqdQJ4
Savoyard        uKtULf3kVyUGKd1KBE0O6JVvXtkrapBe
Keller's        BG48vRqDH3HjHDDk5ZEivyz7Q5Ex4qCU
.................

 

There is a file where we need to find the word 'millionth,' but the content is too long to search line by line.

 

 

bandit7@bandit:~$ cat data.txt | grep millionth
millionth       dfwvzFQi4mU0wfNbFOe9RoWskMLg7eEc

 

By using the `grep` command to match the pattern, we can quickly find the content and retrieve the password!

 

 

Next Level : Level 8 -> 9

반응형

'ENG > Bandit' 카테고리의 다른 글

Bandit Level 9 -> Level 10  (1) 2024.09.09
Bandit Level 8 -> Level 9  (1) 2024.09.08
Bandit Level 6 -> Level 7  (0) 2024.09.06
Bandit Level 5 -> Level 6  (0) 2024.08.16
Bandit Level 4 -> Level 5  (0) 2024.08.12

관련글 더보기