Thumbnail: ctflearn

CTFlearn 104 - Git Is Good!

by on under writeups
1 minute read

Write-up on CTFlearn’s challenge 104 - Git Is Good! The flag is redacted… or is it? Challenge author: intelagent.


Challenge

Forensics, 50 points

The flag used to be there. But then I redacted it. Good Luck. https://mega.nz/#!3CwDFZpJ!Jjr55hfJQJ5-jspnyrnVtqBkMHGJrd6Nn_QqM7iXEuc

Solution

As the title says, this challenge is about Git. If you don’t know Git yet, you should really learn more about it (resource here), since it is a primordial thing to know in programming these days.

Let’s download and extract the zip file from the Mega link and see what this is about. As you can see, we are given a Git repository containing only one file, flag.txt. The problem is that the flag has been redacted.

ZIP Content

Let’s take a deeper look at this repository using Git. I personally use GitKraken Git GUI as my Git client, but you can use any similar tool or even plain command-line Git. Commits

By moving through the commits, we can actually find a version in which the real flag was in the flag.txt file. Solution

comments powered by Disqus