Tags: binary-exploitation 

Rating:

Obviously we are supposed to predict the result of rand() with srand(time(NULL)).

Luckily, if we generate the values(rand() with srand(time(NULL)), we will get the same result as remote does(Ensure run your script in the same second as remote(UTC))

And the rest is easy.

expolit [here](https://gist.github.com/0x01f/e742c7a2faaee4019ade6a4d5d3b6e2f)

Original writeup (https://gist.github.com/0x01f/e742c7a2faaee4019ade6a4d5d3b6e2f).