mercredi 22 novembre 2017

How to bypass / Hack urandom value?

I have this C code and I want to know if possible how to bypass this check ?

int fd, password, input;
fd = open("/dev/urandom", 0);
read(fd, &password, 4);
scanf("%d", &input);

if (password == input)
{
    printf("OK\n")
}

Or is it possible to predict urandom values ?




Aucun commentaire:

Enregistrer un commentaire