overthewire-writeups

Bandit27 -> 28: Exploring the Git Repository

Challenge

Level Description

The password for the next level is stored in a Git repository at ssh://bandit27-git@localhost/home/bandit27-git/repo. You need to clone this repository to find the password.

The Process

This level introduces Git, the most popular version control system in the world. Instead of searching a file system, I had to download (clone) a project history.

Since I couldn’t write to the current directory, I created a temporary workspace in /tmp, cloned the repository, and then looked at the contents.

The Execution

  1. Create a temporary directory: ```bash $ mkdir /tmp/myclonedrepo $ cd /tmp/myclonedrepo


2. **Clone the repository**:
I used the `git clone` command. The server asked for the password for `bandit27-git` (which is the same as the password for the current level, `bandit27`).
```bash
$ git clone ssh://bandit27-git@localhost:2220/home/bandit27-git/repo

  1. Inspect the files: Once cloned, a new directory named repo appeared. I entered it and listed the files. ```bash $ cd repo $ ls $ cat README

```

The password was sitting right there inside the README file.

Password For the Next Level

[SPOILER]

What I Learned

Helpful Reading Material