All levels

Bandit · Level 31

Level 31

Login

SSH: ssh [email protected] -p 2220

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

Task

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

Solution

Read the README.md - it says we have to push a file named key.txt with the text May I come in?. But the .gitignore file ignores .txt files, so delete the .gitignore file and add the text to key.txt, then push it to the master branch to get the password:

rm .gitignore
cat > key.txt
# May I come in?
# ^C
git add .
git push origin master