Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 1.06 KB

Bandit_Level_31.md

File metadata and controls

23 lines (13 loc) · 1.06 KB

Bandit Level 31

In this level we are asked to clone a git repo with git clone ssh://bandit31-git@localhost:2220/home/bandit31-git/repo to find the password.

Looking at the README file we are given the following hint:

080c0f58.png

First, we create the file requested, key.txt, with the contents May I come in?. We now need to commit this file and push it. To commit a file, first we need to tell git that it exists.

git add key.txt

This command returns an error, stating that the file key.txt is set to be ignored:

a866e96e.png

We can override the ignore files with the flag -f. We now need to commit this file. This is done with the command git commit.

git commit -m <update_message>

We can supply any commit message as the task only checks the file. We now need to push the commit to the remote repo. This is done with the command git push. This command generates a reply from the server:

1f17e188.png

This response contains the password: rmCBvG56y58BXzv98yZGdO7ATVL5dW8y