Pico CTF


Commitment Issues

Description

I accidentally wrote the flag down. Good thing I deleted it! You download the challenge files here:

Hints

  1. Version control can help you recover files if you change or lose them!
  2. Read the chapter on Git from the picoPrimer PicoPrimer.
  3. You can 'checkout' commits to see the files inside them.

Solution

picoCTF{s@n1t1z3_c785c319}

CLI

kappa@kappa-Aspire-Z5600:~/Desktop/commitmentIssues/drop-in$ ls
message.txt
kappa@kappa-Aspire-Z5600:~/Desktop/commitmentIssues/drop-in$ cat message.txt
TOP SECRET

kappa@kappa-Aspire-Z5600:~/Desktop/commitmentIssues/drop-in$ git log
commit 42942c9c605b30100f5d859ef6e172027447c0db (HEAD -> master)
Author: picoCTF "ops@picoctf.com"
Date: Tue Mar 12 00:06:23 2024 +0000

create flag

kappa@kappa-Aspire-Z5600:~/Desktop/commitmentIssues/drop-in$ git show 42942c
commit 42942c9c605b30100f5d859ef6e172027447c0db (HEAD -> master)
Author: picoCTF "ops@picoctf.com"
Date: Tue Mar 12 00:06:23 2024 +0000

remove sensitive info

diff --git a/message.txt b/message.txt
index 0e0fefc..d552d1e 100644
--- a/message.txt
+++ b/message.txt
@@ -1 +1 @@
-picoCTF{s@n1t1z3_c785c319}
+TOP SECRET