Post

Commitment issue

I accidentally wrote the flag down. Good thing I deleted it!

Commitment issue

Getting Start:

This pico-CTF is pretty much tuff you are not use to at git. to complete this CTF , first know about ==git init,commit,branch,add,merge.==

First download the file and open the hidden ./git file and open the head. here a refshared, Go to that directory.

Here we can see the username picoxyz and email xyz@ctf given and a ==hash-type== text also, its your ==commit ID==. it’s looks like this :

==e720dc26a1a55405fbdf4d338d465335c439fb3e==

now come back to ./git file. and type git config –global user.email “"

also git config –global user.name “"

now type git init. you show a message like this git ==reinitialized.==

type git log . you must be show this type of message :

1
2
3
4
5
6
7
8
9
10
11
12
13
  commit a6dca68e4310585eac3b5c9caf0f75967dfe972c (HEAD, master)
  Author: picoCTF <ops@picoctf.com>
  Date:   Sat Mar 9 21:10:06 2024 +0000
  
      remove sensitive info
  
  commit e720dc26a1a55405fbdf4d338d465335c439fb3e
  Author: picoCTF <ops@picoctf.com>
  Date:   Sat Mar 9 21:10:06 2024 +0000
  
      create flag
  

We can see here two commit shows, so, copy the 2nd commit where it shows ==create flag.==

Copy the commit id we need it on future.

type git merge .[we just copied now]

type git add .

Done. now open the message.txt file you will got the flag…

HAPPY HUNT……….!

This post is licensed under CC BY 4.0 by the author.