我怎么能不努力奋斗

导航

 

Time to Reset (Exploit, Coding, PHP)

<?php
$start=1453000000;
$cstf="nipNlJ6ZQPuGQ3i90QUTP8JrZSu7W7Va";
function ttr_random($len,$alpha='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789')
{
        $alphalen = strlen($alpha) - 1;
        $key = '';        for($i = 0; $i < $len; $i++)
        {
                $key .= $alpha[rand(0, $alphalen)];
        }
        return $key;
}
for($i=0;$i<1000000;$i++){
    srand($start+$i);
$temp = ttr_random(32);
if($temp===$cstf){
    echo $i ."\n";
    echo ttr_random(16)."\n";
    break;
}
}

?>

 

posted on 2016-01-22 11:16  我怎么能不努力奋斗  阅读(579)  评论(0编辑  收藏  举报