These will include the challenges I was able to do in the last 2 hours of the 24 hour ctf @ CodeFest 2021. I was able to solve the entire pwn category which was easy and beginner friendly and one forensics challenge which was very practical and straight-forward.
Pwn Category
C is Hard
Download files from here
This was the first challenge which has stack overflow vulnerability and the goal was to overflow the buf and call a hidden function called print_flag.
Let's start by analyzing the function in radare2.
r2 -R'stdin=input.txt' ./source_fixed.