bandit_31/README.md
OverTheWire git gitpush gitignore There is a git repository at ssh://bandit31-git@bandit.labs.overthewire.org/home/bandit31-git/repo via the port 2220. The password for the user bandit31-git is the same as for the user bandit31.

Bandit Level 31

  • The README in this repo says to create a file called key.txt with the content May I come in? and push it to the remote’s master branch.
    • The server checks what we push and responds with the password.
  • Created the file and tried to git add key.txt but it was being ignored by .gitignore which had *.txt in it.
    • Used git add -f key.txt to force-add the file despite the .gitignore rule.
    • Then git commit -m "push key" and git push origin master.
    • The server validated the file content and returned the next password in the push response.

Password

47e603bb428404d265f59c42920d81e5