CTF

Level 4 - Find password in a hidden file inside inhere directory (Misc)

Description

The goal of this level is to get the password for the next level stored in a hidden file inside the inhere directory

Tech used

  • cat
  • find
  • cd
  • [ls]

Solutions

Run ssh bandit3@bandit.labs.overthewire.org -p 2220. Password is MNk8KNH3Usiio41PRUEoDFPqfxLPlSmx

  • Find hidden file & print its output
    • Run cd inhere
    • Run find . -type f -exec cat {} ";" (no -type gives output for . directory too)
  • List directory to find hidden files & print output
    • Run cd inhere
    • Run ls -a to check if spaces in this filename is present
    • Run cat ./...Hiding-From-You