Writeups OverTheWireBanditLinuxgitbranches

Bandit 29 Writeup - OverTheWire

Writeup for Bandit level 29 from OverTheWire: finding credentials in a git branch.

Contents

Wargame: Bandit

Level: 29

Category: Linux Fundamentals

Description

The main branch of the repository has no password in production. The README says “no passwords in production!” which hints that another branch exists with the credentials.

Overview

Solution

git clone ssh://bandit29-git@localhost:2220/home/bandit29-git/repo
cd repo
git branch -a
git checkout origin/dev
grep password README.md

Password

xbhV3HpNGlTIdnjUrdAlPzc2L6y9EOnS

← Back to Blog