DEV Community

Micheal Mac Donnacha
Micheal Mac Donnacha

Posted on

Overthewire.org Bandit Level 3 -> 4

A walkthrough for Overthewire.org Bandit Level 3 -> 4


Level Goal

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


Walkthrough

Login to the server using the password obtained from the previous level Bandit level 2 -> 3.

username: bandit3

ssh bandit3@bandit.labs.overthewire.org -p 2220
Enter fullscreen mode Exit fullscreen mode

Change directory into inhere, running ls command will show no files.

bandit3@bandit:~$ ls
inhere
bandit3@bandit:~$ cd inhere/
bandit3@bandit:~/inhere$ ls  

Enter fullscreen mode Exit fullscreen mode

Running ls -a will let us see all files including hidden files.

-a for all files (do not ignore entries starting with .)

We can then see a file named .hidden.

The you can print to screen using cat command.

bandit3@bandit:~/inhere$ ls -a
.  ..  .hidden
bandit3@bandit:~/inhere$ cat ./.hidden
pIwrPr##########################
Enter fullscreen mode Exit fullscreen mode

Top comments (0)