Bandit 7
Challenge
The password for the next level is stored in the file data.txt next to the word millionth.
Approaches
Well, we know we need to look for the word millionth. Let’s peek at what’s in the file, and see how specific we need to get. Grep is probably the right tool for the job, so we’ll start with that, and see how it goes.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
bandit7@bandit:~$ ls -la
total 4108
drwxr-xr-x 2 root root 4096 Feb 21 22:03 .
drwxr-xr-x 70 root root 4096 Feb 21 22:04 ..
-rw-r--r-- 1 root root 220 Jan 6 2022 .bash_logout
-rw-r--r-- 1 root root 3771 Jan 6 2022 .bashrc
-rw-r----- 1 bandit8 bandit7 4184396 Feb 21 22:03 data.txt
-rw-r--r-- 1 root root 807 Jan 6 2022 .profile
bandit7@bandit:~$ cat data.txt | grep million
multimillionaires UURj7MIL1MFzHOH81FmD78CHk0MkWPzY
millionth FLAG_FLAG_FLAG_FLAG_FLAG
million's xKy3GrEjEtddZSAoVB5baQNfpwugIy5N
millions sBRp6cu4Mc1oN3dZTJRkdmL6v4NbbJI2
millionaire's O9ZcsxJTfNc2ghFddOkGJuuPbCiLdSV8
million HBpmJAaKZRzNQzgyWo5IqzT3QMShzQP4
millionaire MZiQH4tMTKJQ1fC9pxWsLJXRluaX21t8
multimillionaire W8XFPwx9Wk1synHoDEJJgb4VoO1lkdSB
millionaires 8811d0IRBO5WSFbzLZWQXAtvaxqVaWXO
multimillionaire's 8Mdsan4hxS6wbG1aNmO4KPLdPZGX5ewb
bandit7@bandit:~$ cat data.txt | grep millionth
millionth FLAG_FLAG_FLAG_FLAG_FLAG
|
Wow, that was straight forward too. I think what they wanted us do was combine a few commands we’ve already used (cat, grep).