Git IS Good (CTF Learn)

Forensics

Challengeā€Šā€”ā€ŠGit Is Goodā€Šā€”ā€ŠCTFlearnā€Šā€”ā€ŠCTF Practiceā€Šā€”ā€ŠCTF Problemsā€Šā€”ā€ŠCTF Challenges

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

Don’t forget we always work inside VMsĀ .

So we’ll upload the file there and thenĀ :

Here we have decompressed the file, after verifying its typeĀ :

Here we navigated to the compressed file using cd, then read the flag.txt file using catĀ .

I didn’t think it would be that easy, so I continued my researchĀ :

The command **grep -r 'flag'** **/home/sansforensics/CTFLERARN/gitIsGood/.git/** is searching for the string 'flag' recursively in all files within the specified directory **/home/sansforensics/CTFLERARN/gitIsGood/.git/** and its subdirectories. Here's a breakdown of the components:

  • grep: This is the command-line utility used for searching patterns in text.

  • -r: This option stands for ā€œrecursiveā€ and is used to search for the specified pattern in all files within the specified directory and its subdirectories.

  • ā€˜flag’: This is the string or pattern that grep is searching for in the files.

  • /home/sansforensics/CTFLERARN/gitIsGood/.git/: This is the path to the directory where the search is being performed. In this case, it’s theĀ .git directory within the gitIsGood project.

The **git show HEAD** command in Git is used to display the detailed information about the latest commit in the current branch. Here's a breakdown of the components:

  • git: This is the Git version control system.

  • show: This is the command used to show various types of objects in Git, such as commits, tags, or trees.

  • HEAD: This is a special reference that points to the latest commit on the current branch. It represents the tip of the current branch.

When you run git show HEAD, Git will display information about the latest commit on the current branch, including details such as the commit message, author, date, and the changes made in that commit.

you see information about the latest commitĀ ,author, date, commit message, and a unified diff showing the changes made in the commit. The actual output may vary based on the content of your commitĀ .

Here is the flag\ See you soon in other reports….!!

Abdelwahab_Shandy

AS_Cyber