码迷,mamicode.com
首页 > Web开发 > 详细

[wechall] Time to Reset (Exploit, Coding, PHP)

时间:2016-01-22 14:06:50      阅读:998      评论:0      收藏:0      [点我收藏+]

标签:

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;
}
}

?>

 

[wechall] Time to Reset (Exploit, Coding, PHP)

标签:

原文地址:http://www.cnblogs.com/Christmas/p/5150633.html

(1)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!