<?php
//±©Á¦ÆƽâMD5µÄPHP°æ
if(($sub=="go")&&($pass!="")) {
if(strlen($pass)!=32){
echo "<script language=\"javascript\">alert(\"ÄãµÄÊäÈëÓÐÎ󣬾MD5¼ÓÃܺóµÄ×Ö·û´®±ØÐëΪ32λ\");";
echo "window.history.back(-1);</script>";exit;
}
$dic="pass.dic";//×Öµä(±ØÐëÏÈÅäÖúÃ×Öµä,ÿÐÐÒ»´®×Ö·û)
if(!file_exists($dic)) {echo "ûÓÐÕÒµ½×Öµä,ÇëÉèÖúÃ×ÖµäµÄλÖÃ";exit;}
$all_pass=file($dic);
$num=sizeof($all_pass);
for($i=0;$i<$num;$i++){
$a=chop($all_pass[$i]);
echo "µ±Ç°²âÊÔÃÜÂ룺".$a."<br>";
if($pass==md5($a)){
echo "<hr>Æƽâ³É¹¦£¬(".$pass.")µÄÃ÷ÎÄΪ£º(".$all_pass[$i].")";
break;
}
}
}
else {
echo "<div align=\"center\"><form action=\"".$PHP_SELF."\">ÇëÊäÈë¾MD5¼ÓÃܺóµÄ×Ö·û£º";
echo "<input type=\"text\" name=\"pass\"><br>";
echo "<input type=\"submit\" name=\"sub\" value=\"go\" maxlength=32 size=32></form></div>";
}
?>
|