OverTheWire Bandit Level 9 Walkthrough
Today we're going to do a walkthrough of level 9 of the Bandit CTF wargame hosted at OverTheWire.org. First, let's take a look at the level's objectives:
https://overthewire.org/wargames/bandit/bandit10.html
The Flag for this level is located in the data.txt file in a human-readable string preceded by several = characters.
Next, let's login to the game server with SSH. Remember to use the Flag of the previous level as the SSH password.
ssh bandit9@bandit.labs.overthewire.org -p 2220
Now to locate the data.txt file:
pwd
ls -a
Because the level objective indicates that there are only a few human readable strings in the data.txt file, we'll use the strings command to extract human-readable strings (ASCII) from the file, and the grep command to output only stings that are preceded by several = characters. We wrap the = characters in quotes because they're special characters.
strings data.txt | grep "===="
Summary
Bandit9 requires us to sort through a file that contains mostly data info, but has the Flag string located next to specific ASCII characters which we isolated using grep.
Finish
Comments
Post a Comment