Git Is Good

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

Let's look at the contents of the directory.

>dir
 Volume in drive D is DATA
 Volume Serial Number is 904D-581D

 Directory of D:\gitIsGood

30-10-2016  14:33    <DIR>          .
30-10-2016  14:33    <DIR>          ..
30-10-2016  14:33    <DIR>          .git
30-10-2016  14:33                15 flag.txt
               1 File(s)             15 bytes
               3 Dir(s)  662,738,264,064 bytes free

We can look at the .git directory for the information about the project.

>dir
 Volume in drive D is DATA
 Volume Serial Number is 904D-581D

 Directory of D:\gitIsGood\.git

30-10-2016  14:33    <DIR>          .
30-10-2016  14:33    <DIR>          ..
30-10-2016  14:31    <DIR>          branches
30-10-2016  14:33               220 COMMIT_EDITMSG
30-10-2016  14:31               137 config
30-10-2016  14:31                73 description
30-10-2016  14:31                23 HEAD
30-10-2016  14:31    <DIR>          hooks
30-10-2016  14:33               137 index
30-10-2016  14:31    <DIR>          info
30-10-2016  14:32    <DIR>          logs
30-10-2016  14:33    <DIR>          objects
30-10-2016  14:31    <DIR>          refs
               5 File(s)            590 bytes
               8 Dir(s)  662,738,264,064 bytes free

We can look at the logs using the git log command.

So the flag.txt file was edited three times in the span of around two minutes.

If we use the -p flag, we can see what the edits were.

Now we know that the flag was flag{REDACTED}, which was then changed to flag{protect_your_git} and then again changed to flag{REDACTED}.

Flag

Last updated

Was this helpful?