Rating:

Writeup is in form of Python code with pwntools. I highly recommend watching this video for greater understanding: https://www.youtube.com/watch?v=0KVtyDQHWm0

Original writeup (https://github.com/pmateja/picoCTF_2022_writeups/blob/main/buffer_overflow_3.py).