Level27

Level Goal

There is a git repository at ssh://bandit27-git@localhost/home/bandit27-git/repo. The password for the user bandit27-git is the same as for the user bandit27.

Solution

As stated in the goal, we will need to use git to solve this challenge. We will first need to clone the given repo. Note: A slight edit to the given URL is needed since the game’s SSH daemon is listening on port 2220. After cloning the repo we will look at it’s contents and see the repo’s README. The README contains the password for bandit28.

root@0xCAB: /writeups/overthewire/bandit/level27/

$ git clone ssh://bandit27-git@localhost:2220/home/bandit27-git/repo
Cloning into 'repo'...
...
Receiving objects: 100% (3/3), 286 bytes | 286.00 KiB/s, done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0

$ la repo
.git README

$ cat repo/README
The password to the next level is: AVanL161y9rsbcJIsFHuw35rjaOM19nR

$