Blog search: #PRNG

Tags

Random - Pwnable.kr

Posted on Nov. 26, 2015

Let's have a look at random.c:

Code random.c

A little research on google shows that the ^ operator is the XOR bitwise operator, what we need is a key that applied to 'random' using this operator gives us the value 0xdeadbeef.

What's the value of 'random'? It is the result ...