Wargame: Bandit
Level: 27
Category: Linux Fundamentals
Description
A git repository is hosted at ssh://bandit27-git@localhost/home/bandit27-git/repo. The password is in a file in the repository. The goal is to clone it and read the file.
Overview
git clonecopies a remote repository to a local directory.- The password to the repo’s git user is the same as the bandit27 SSH password.
- Cloning into
/tmpavoids home directory permission issues.
Solution
cd /tmp/work
git clone ssh://bandit27-git@localhost:2220/home/bandit27-git/repo
cat repo/README
Password
AVanL161y9rsbcJIsFHuw35rjaOM19nR