OverTheWire: Bandit Level 3 → Level 4


Level Goal

The password for the next level is stored in a hidden file in the inhere directory.

Commands you may need to solve this level

ls, cd, cat, file, du, find

> whatis ls                                                                         
ls (1) - list directory contents

> whatis cd
cd (1) - change working directory

> whatis cat
cat (1) - concatenate files and print on the standard output

> whatis file
file (1) - determine file type

> whatis du
du (1) - estimate file space usage

> whatis find
find (1) - search for files in a directory hierarchy

Note : All commands don’t have to be used to complete level

Helpful Reading Material


View the files that are present in the current working directory using the ls command

bandit3@bandit:~$ ls

Move into the inhere/ directory. This can be done using the cd command

bandit3@bandit:~$ cd inhere/

View files that are in the directory using the ls command. Since we know the file is hidden we have to use the -a flag to view hidden files.

(For more information on the ls command and its various flags refer to man ls or ls --help )

bandit3@bandit:~/inhere$ ls -a
. .. .hidden

View the content of .hidden file using the cat command

bandit3@bandit:~/inhere$ cat .hidden

We have found the password for the next level !!

Logout of current session and use password of user bandit4 to access next level

> ssh bandit4@bandit.labs.overthewire.org -p 2220
This is a OverTheWire game server. More information on http://www.overthewire.org/wargames
bandit4@bandit.labs.overthewire.org's password: pIwrPrtPN36QITSp3EQaw936yaFoFgAB




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Kick-start of my LFX Mentorship with Litmus Chaos

Chaos engineering steps

Building Spartan Node into an Empire

Strava and Relive. How to continue using them together

3 things that tell Product Owners that they need an Agile product roadmap

Kubernetes (Minikube) on Ubuntu

Machine Learning for Programmers

Macbook Pro High Sierra Update

Macbook pro high sierra update

[Financial Engineering] Two Versions of Delta Hedging

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
David Varghese

David Varghese

More from Medium

On Cycling Sponsors, Steve Waugh, Omega-Pharma-Shitstep and Football…

The Nightmare of Architecture Diagrams

TeamLiftr’s Assessment and Visualizations Tools Explained

Git and GitHub