Hidden files
User rung2
ssh -p 2222 rung2@play.ctf.wail.ly
Goal
The password for the next level is in a hidden file somewhere under the archive directory.
Commands that may help
lscdcat
Reading
man ls: the option-a, which also lists the entries whose name starts with a dot.cdis built into the shell, so it is described inman bash, section SHELL BUILTIN COMMANDS.help cdprints a shorter summary.
Prerequisite: not tied to a lecture chapter.
Hints
Hint 1
A file whose name starts with a dot is hidden: a plain
ls does not show it. Start by looking at what archive contains with ls archive, then move into its directories with cd followed by a directory name.Hint 2
ls -a shows every entry, hidden ones included. Among them, . is the directory you are in and .. the one above it: cd .. takes you one step back up. A hidden entry can be a directory, which you can enter like any other.Hint 3
Go into
archive/2024 and list it with ls -a: there is a hidden directory, .keep. Go into it, list it with ls -a again, and print the hidden file you find there with cat.