Writeups OverTheWireBanditLinuxgitgit log

Bandit 28 Writeup - OverTheWire

Writeup for Bandit level 28 from OverTheWire: recovering credentials from git history.

Contents

Wargame: Bandit

Level: 28

Category: Linux Fundamentals

Description

The cloned repository contains a README with the password redacted. The password was present in an earlier commit before it was removed. The goal is to find it in the git history.

Overview

Solution

cd /tmp/work && git clone ssh://bandit28-git@localhost:2220/home/bandit28-git/repo
cd repo
git log --oneline
git show <hash of "fix info leak" commit>

Password

tQKvmcwNYcFS6vmPHIUSI3ShmsrQZK8S

← Back to Blog