DEV Community

Krishna
Krishna

Posted on

1

OverTheWire Bandit Level 3 Level 4 walk-through

Challenge page => https://overthewire.org/wargames/bandit/bandit4.html

This challenge also involves reading the password from a hidden file, which is present in the inhere directory.

When we navigate to the directory and list the files, there's nothing

inhere dir contents

But we know the file is there.


Hint 1: Once again, look at the list of the commands. Which one is likely to show us the hidden files in a directory?


Didn't get it? Its ok!


Hint 2: Maybe ask the Duck about "show hidden files in Linux" ?


Yep, it was the ls command all along, which has an additional option to show you hidden files aka files whose names start with a dot.

inhere dir contents

Congrats! Yet another flag conquered!

Do your career a big favor. Join DEV. (The website you're on right now)

It takes one minute, it's free, and is worth it for your career.

Get started

Community matters

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs