http://chinalover.sinaapp.com/web12/index.php

题意:输入key,key的值需要等于54975581388,但是key的每一位数字不能是1-9

题解:

原理:php的弱类型的特性

<?php
function noother_says_correct($number)
{
       $one = ord('1');
       $nine = ord('9');
       for ($i = 0; $i < strlen($number); $i++)
       {   
               $digit = ord($number{$i});
               if ( ($digit >= $one) && ($digit <= $nine) )
               {
                       return false;
               }
       }
          return $number == '54975581388';
}
$flag='*******';
if(noother_says_correct($_GET['key']))
   echo $flag;
else 
   echo 'access denied';
?>

 

十进制:54975581388

十六进制:0xccccccccc