pwncollege / linux-luminarium

BSD 2-Clause "Simplified" License
11 stars 13 forks source link

No padding text/lines in `/challenge/data.txt` #29

Open RazviOverflow opened 4 weeks ago

RazviOverflow commented 4 weeks ago

In Linux Luminarum > Comprehending Commands > grepping for a needle in a haystack, the challenge states:

In this challenge, I've put a hundred thousand lines of text into the /challenge/data.txt file. Grep it for the flag!

However, you can just cat the file since there is no lorem ipsum text at all.

$ ls -laih /challenge/data.txt 
183966333 -rw-r--r-- 1 root root 58 Aug 14 16:26 /challenge/data.txt

Seems like this is not the expected /challenge/data.txt file.

fpotier commented 4 weeks ago

Challenge init command: https://github.com/pwncollege/linux-luminarium/blob/58c3fdada9691795a498576bf36893ddb6d2663d/commands/grep/.init#L3

The dictionary file doesn't exist anymore

hacker@commands~grepping-for-a-needle-in-a-haystack:~/pwn.college$ ls /usr/share/dict/american-english
ls: cannot access '/usr/share/dict/american-english': No such file or directory
fpotier commented 3 weeks ago

seems to be fixed by https://github.com/pwncollege/dojo/commit/1465cf8571ce7ddd315e2f5240e8bfd6f0ba27ed

$ wc /challenge/data.txt 
102402 102402 972456 /challenge/data.txt