OverTheWire - Bandit - Level 5 → Level 6
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: bandit5
Password: koRexxxxxxxxxxxxxxxxxxxxxxxxxxxx
Let us have a look at the files in the current folder:
|
|
A folder named “inhere” __ is available.
Moving into this folder and listing available files:
|
|
Well, those are a bunch of folders and each folder contains some files.
But from the level goal we know, that our file has following properties:
- human-readable- 1033 bytes in size- not executable
This can be used to parametrize the “find” command as follows:
|
|
The results is:
|
|
Output the content of this file:
|
|
Another way is to search a string with the length between 32-33 with “alnum” characters.
‘[:alnum:]’Alphanumeric characters: ‘[:alpha:]’ and ‘[:digit:]’; in the ‘C’ locale and ASCII character encoding, this is the same as ‘[0-9A-Za-z]’.
Source: https://www.gnu.org/software/grep/manual/html_node/Character-Classes-and-Bracket-Expressions.html
|
|