Skip to main content

Bandit Level 9 → 10

Shubham
Cybersecurity Enthusiast

Login: ssh bandit9@bandit.labs.overthewire.org -p 2220
Password: 4CKMh1JI91bUIZZPXDqGanal4xvAg0JM

task

The password for the next level is stored in the file data.txt in one of the few human-readable strings, preceded by several ‘=’ characters.

theory lil bit

  1. strings: This command extracts human-readable character sequences from binary or data files. It is essential when a file contains non-printable characters that would mess up your terminal if you used cat.
  2. grep: Filters the output of the strings command to find the specific pattern of equal signs (=) mentioned in the task.
  3. Efficiency: Combining these tools allows you to sift through a large, messy data file to find a specific string without having to read through thousands of lines of gibberish.

solution

bandit9@bandit:~$ ls
data.txt
bandit9@bandit:~$ strings data.txt | grep "=="
========== the
========== password
f\Z'========== is
========== FGUW5ilLVJrxX9kMYMmlN4MgbpfMiqey

<!-- truncate -->