OverTheWire Bandit Level 3 Walkthrough
Today we're doing a walkthrough for level 3 of the Bandit CTF wargames hosted at OverTheWire.org. First, let's take a look at the objectives for this level:
https://overthewire.org/wargames/bandit/bandit4.html
This level's Flag is located in a hidden file in the inhere directory. Next, let's login to the game server using SSH:
ssh bandit3@bandit.labs.overthewire.org -p 2220
We'll use the Flag from the previous level as the SSH password for the current level. Let's take a look at what directory we're in, then perform a ls command to look for the inhere directory, using the -a switch to include hidden files and directories:
pwd
ls -a
Next, we'll use the cd command to change directories, then do ls -a again to locate the hidden file:
cd inhere
ls -a
Finally, we cat out the .hidden file to get the level's Flag:
cat .hidden
Summary
Bandit3 requires us to access hidden directories and files to access the level's Flag. We located the hidden directory and file by using the ls command with the -a switch.
Finish
Comments
Post a Comment