Skip to content

Instantly share code, notes, and snippets.

@CreateRemoteThread
Created May 9, 2016 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CreateRemoteThread/86e93d03648a2a5dcadf4866635dee06 to your computer and use it in GitHub Desktop.
Save CreateRemoteThread/86e93d03648a2a5dcadf4866635dee06 to your computer and use it in GitHub Desktop.
<?php
$last_mtrand = 681012574;
for($ms_seed = 0;$ms_seed < 9000+5000;$ms_seed++)
{
mt_srand($ms_seed);
if(mt_rand() == $last_mtrand)
{
$next_mtrand = mt_rand();
printf(" + seed found: %d. next mt_rand: %d\n",$ms_seed,$next_mtrand);
printf(" + access: 3magic.asis-ctf.ir/3magic/?page=../files/".$next_mtrand."_42\n");
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment