Description

Someone’s commits seems to be preventing the program from working. Who is it?You can download the challenge files here:

Hints

  • In collaborative projects, many users can make many changes. How can you see the changes within one file?
  • Read the chapter on Git from the picoPrimer here.
  • You can use python3 <file>.py to try running the code, though you won’t need to for this challenge.

Answer

  1. Lets view the git log
┌──(0xneobyte㉿0xNeoShell)-[~/drop-in]
└─$ git log --oneline
ee09a4c (HEAD -> master) important business work
7d196f4 important business work
4d6ef56 important business work
f901ef0 important business work
4686127 important business work
4b32f06 important business work
2aff241 important business work
7ccd029 important business work
e6bb1c9 important business work
d6ec817 important business work
74292a0 important business work
9c29314 important business work
3ebc050 important business work
8fc8764 important business work
75fc2cf important business work
af4aa27 important business work
4873489 important business work
522de9e important business work
8e41d90 important business work
ded224c important business work
90309c6 important business work
f3c0135 important business work
ad2bc15 important business work
a1e9def important business work
ab75201 important business work
26d7bde important business work
66ed3fd important business work
c228920 important business work
d3e4f78 important business work
e3c5636 important business work
e5227ab important business work
45dd499 important business work
4f17b47 important business work
839778c important business work
23428a0 important business work
bb796c5 important business work
f0f7a1e important business work
a8ddcf1 important business work
eaecb9e important business work
c463097 important business work
00058b5 important business work
4e799d2 important business work
b93b6b4 important business work
8e9cb04 important business work
5c81f3e important business work
f216d19 important business work
14e17eb important business work
91ceb97 important business work
60b2ca0 important business work
55a8841 important business work
06c29f1 important business work
ae364e1 important business work
8af3609 important business work
60bdda4 important business work
fd37585 important business work
f01139f important business work
45c1658 important business work

…moree :3 lot of commits msgs

  1. Lets see what happen if we run that python script
┌──(0xneobyte㉿0xNeoShell)-[~/drop-in]
└─$ python message.py
  File "/home/0xneobyte/drop-in/message.py", line 1
    print("Hello, World!"
         ^
SyntaxError: '(' was never closed
  1. It’s just a hello world line with syntax error

  2. Looking for git commits on specific message.py

┌──(0xneobyte㉿0xNeoShell)-[~/drop-in]
└─$ git log -p -- message.py --oneline
commit fadeca9476b6713ec8cdda633aca9e9aebffc698
Author: picoCTF{@sk_th3_1nt3rn_e9957ce1} <ops@picoctf.com>
Date:   Sat Mar 9 21:09:11 2024 +0000
 
    optimize file size of prod code
 
diff --git a/message.py b/message.py
index 7df869a..326544a 100644
--- a/message.py
+++ b/message.py
@@ -1 +1 @@
-print("Hello, World!")
+print("Hello, World!"
 
commit 2dd46769e2d65656bb14aed0ff5d3237daaa7d9d
Author: picoCTF <ops@picoctf.com>
Date:   Sat Mar 9 21:09:11 2024 +0000
 
    create top secret project
 
diff --git a/message.py b/message.py
new file mode 100644
index 0000000..7df869a
--- /dev/null
+++ b/message.py
@@ -0,0 +1 @@
+print("Hello, World!")

Flag : picoCTF{@sk_th3_1nt3rn_e9957ce1}