Rating:

Exploit printf with a format string and write identical content into the two buffers that are compared.

Format string: `AAAA%6$n%7$n`

Original writeup (https://0xf4b1.github.io/ctftime/tuctf.com/pwn/printfun/).