상세 컨텐츠

본문 제목

Bandit Level 10 -> Level 11

ENG/Bandit

by jaws99 2024. 9. 11. 16:55

본문

반응형

Level Goal

The password for the next level is stored in the file data.txt, which contains base64 encoded data

Commands you may need to solve this level

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

`base64` is used to encode or decode a file or standard input and output the result to standard output.

Helpful Reading Material

 

Write up

bandit10@bandit:~$ ls
data.txt
bandit10@bandit:~$ cat data.txt
VGhlIHBhc3N3b3JkIGlzIGR0UjE3M2ZaS2IwUlJzREZTR3NnMlJXbnBOVmozcVJyCg==

 

There is a file encoded in base64, and when we use the `cat` command to view its content, it shows an unreadable combination of strings.

 

-d, --decode
	decode data

 

By using `man base64` or `base64 --help` to view the options, we'll find that the `-d` option is used to decode the data.

 

 

bandit10@bandit:~$ base64 -d data.txt
The password is dtR173fZKb0RRsDFSGsg2RWnpNVj3qRr

 

With this, we can easily find the password.

 

 

 

bandit10@bandit:~$ echo 'The password is dtR173fZKb0RRsDFSGsg2RWnpNVj3qRr' | base64
VGhlIHBhc3N3b3JkIGlzIGR0UjE3M2ZaS2IwUlJzREZTR3NnMlJXbnBOVmozcVJyCg==

 

Using `base64` to encode data doesn't require any options; the encoded output will still represent the same content as the original file.

 

 

Next Level : Level 11 -> 12

반응형

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

Bandit Level 12 -> Level 13  (2) 2024.10.03
Bandit Level 11 -> Level 12  (0) 2024.09.13
Bandit Level 9 -> Level 10  (1) 2024.09.09
Bandit Level 8 -> Level 9  (1) 2024.09.08
Bandit Level 7 -> Level 8  (0) 2024.09.07

관련글 더보기