BB

technology and craziness.

BB

technology and craziness.

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:

1
2
bandit4@bandit:~$ ls
inhere

A folder named “inhere__ is available.
Moving into this folder and listing available files:

1
2
3
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:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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:

1
2
bandit4@bandit:~/inhere$ cat ./-file07
koRexxxxxxxxxxxxxxxxxxxxxxxxxxxx