Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 649 Bytes

4to5.md

File metadata and controls

20 lines (17 loc) · 649 Bytes
bandit4@bandit:~$ ls
inhere
bandit4@bandit:~$ cd inhere/
bandit4@bandit:~/inhere$ ls
-file00  -file01  -file02  -file03  -file04  -file05  -file06  -file07  -file08  -file09

To explore the content of each file we should iterate over this directory.

bandit4@bandit:~/inhere$ for i in $(ls); do cat ./$i; done

In the middle of the output bytes there is our flag, but to have an output much more clear I think it's better use strings command instead of cat

bandit4@bandit:~/inhere$ for i in $(ls); do strings ./$i; done

Ok, now we pick the first output line, koReBOKuIDDepwhWk7jZC0RTdopnAYKh