To comply with the write-up rule of root-me.org, in this write-up, I just talk about some hints related this challenge. Here is no solution and correct answer.
To solve this challenge, there is something to be careful.
Think about Little-endian, The "count++" inside the green box in the photo above, and the location of variables in memory. you can get enough the flag.
Also, since there is an infinite loop, I recommend you to use a debugger to test a payload.