php_mt_seed-PHP mt_rand() random number seed cracking use

download

website
Insert picture description here

installation

Unzip
Insert picture description heretar zxvf php_mt_seed-4.0.tar.gz

Update

The installation is not the latest version, it needs to be updated first
make

Appears in the updated folder
Insert picture description here

The executable file php_mt_seed appears

Privilege escalation

Insert picture description herechmod 777 php_mt_seed-4.0/

After the preparation is complete, start inputting the initial file seed and get the result
Insert picture description here

Execution seed

Generate the correct seed

<?php
mt_srand(3701604078);
echo mt_rand()."\n";
echo mt_rand()+mt_rand();
?>

Results of the

Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_46250265/article/details/113919405