This challenge is identical to the last one. Because we ignore having to overwrite the value the program wants us to write, our exploit should be near identical.
This challenge really is the same. There's a canary, but since we're not overflowing a buffer, it doesn't matter. We can use the identical exploit script to solve this one: