Rating:

The binary has a stack overflow vulnerability.
We can either call the flag function after setting some variables, or jump to the `system("cat flag.txt")` part directly.

[writeup](https://ptr-yudai.hatenablog.com/entry/2019/04/25/141422#Binary-80pts-Chain-Of-Rope)

Original writeup (https://ptr-yudai.hatenablog.com/entry/2019/04/25/141422#Binary-80pts-Chain-Of-Rope).