CTFlearn 104 - Git Is Good!
Write-up on CTFlearn’s challenge 104 - Git Is Good! The flag is redacted… or is it? Challenge author: intelagent.
Forensics, 50 points
The flag used to be there. But then I redacted it. Good Luck. https://mega.nz/#!3CwDFZpJ!Jjr55hfJQJ5-jspnyrnVtqBkMHGJrd6Nn_QqM7iXEuc
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.
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.
By moving through the commits, we can actually find a version in which the real flag was in the flag.txt file.
Let me know what you think of this article on twitter @noxtal_ or leave a comment below!