All levels

Bandit · Level 29

Level 29

Login

SSH: ssh [email protected] -p 2220

Challenge URL: https://overthewire.org/wargames/bandit/bandit30.html

Task

There is a git repository at ssh://bandit29-git@localhost/home/bandit29-git/repo via the port 2220. The password for the user bandit29-git is the same as for the user bandit29. Clone the repository and find the password for the next level.

Solution

Clone the repo and go inside. There are multiple branches - check by:

git branch -a

To go to a branch:

git checkout branch_name

Check the dev branch. Once you switch to a branch the file contents will be of that branch. Check the contents of the files - here, the README file has the password:

cat README.md