Challenge Information
- Platform: OverTheWire (Bandit)
- Difficulty: Easy
- Category: Linux
Overview
The password for the next level is stored in the only human-readable file in the inhere directory. Tip: if your terminal is messed up, try the “reset” command.
Solution
SSH into machine on port 2220 with password from previous level.
ssh -p 2220 bandit4@bandit.labs.overthewire.org
Use file command with -i flag to see type of the files. Find the file with ascii charset.
file -i ./-file07
Then cat the file
cat ./-file07

Lessons Learned
- Using the
filecommand to get more details about files.
Tools Used
sshcatfile