Hijack

LD_PRELOAD: Not-So-Random

Not-So-Random: Using LD_PRELOAD to Hijack the rand() Function

    Today I wanted to continue the series on using LD_PRELOAD.  In today’s post we are going to use LD_PRELOAD to hijack the rand() function in a simple random number guessing game to control the generation of random numbers and effectively be able to cheat in this simple game by making it extremely predictable.  The code …

Not-So-Random: Using LD_PRELOAD to Hijack the rand() Function Read More »

Scroll to Top