OverTheWire - Bandit - Level 4 → Level 5

Warning: This post contains a solution!

Only continue if:
1.) you want to see a possible alternative solution or
2.) you are stuck and need a hint!

Connect to the server using the following credentials:

Server: bandit.labs.overthewire.org
Port: 2220
Username: bandit4
Password: pIwrxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Let us have a look at the files in the current folder:

bandit4@bandit:~$ ls

A folder named "inhere" is available.
Moving into this folder and listing available files:

bandit4@bandit:~$ cd inhere/
bandit4@bandit:~/inhere$ ls
-file00  -file01  -file02  -file03  -file04  -file05  -file06  -file07  -file08  -file09

A total of ten files are in the folder.
Checking what type of files we have shows, that only one of those files is an ASCII text file:

bandit4@bandit:~/inhere$ file ./-file0*
./-file00: data
./-file01: data
./-file02: data
./-file03: data
./-file04: data
./-file05: data
./-file06: data
./-file07: ASCII text
./-file08: data
./-file09: data

Output the content of this file:

bandit4@bandit:~/inhere$ cat ./-file07
Show Comments