.:: :[ AK-74 Security Team Web-shell ]: ::.
phpinfo()
PHP
<?php function mysql_connect($HostName,$Admin,$AdminPass) { return @mysqli_connect($HostName,$Admin,$AdminPass); } function mysql_select_db ($DbName) { global $dbconn; @mysqli_select_db($dbconn, $DbName); } function mysql_query($sql, $con='') { global $dbconn; if(!$con) { $con = $dbconn; } return mysqli_query($con, $sql); } // mysqli_real_escape_string 의 alias 기능을 한다. function sql_real_escape_string($str, $link=null) { global $dbconn; if(!$link) $link = $dbconn; if(function_exists('mysqli_connect')) { return mysqli_real_escape_string($link, $str); } return mysql_real_escape_string($str, $link); } function mysql_data_seek($result,$off) { @mysqli_data_seek($result,$off); } function mysql_fetch_row($que) { return @mysqli_fetch_row($que); } function mysql_fetch_array($que) { return @mysqli_fetch_array($que); } function mysql_fetch_assoc($que) { return mysqli_fetch_assoc($que); } function mysql_num_rows($que) { return mysqli_num_rows($que); } function db_info($con) { return mysqli_get_server_info($con); } function db_error() { return mysqli_error(); } function mysql_close($conn) { return mysqli_close($conn); } function mysql_insert_id($conn) { return mysqli_insert_id($conn); } /* function mysql_result($res,$row=0) { $data=mysqli_fetch_row($res); return $data[$row]; } */ function mysql_result($res,$row=0,$col=0) { $nums=mysqli_num_rows($res); if($nums && $row<=($nums-1) && $row>=0) { mysqli_data_seek($res,$row); $resrow=(is_numeric($col))?mysqli_fetch_row($res):mysqli_fetch_assoc($res); if(isset($resrow[$col])) { return $resrow[$col]; } } return false; } function mysql_error() { global $dbconn; @mysqli_error($dbconn); } //DB-UID데이터 function getUidData($table,$uid) { return getDbData($table,'uid='.$uid,'*'); } //DB데이터 1ROW function getDbData($table,$where,$data) { $row = db_fetch_array(getDbSelect($table,$where,$data)); return $row; } //DB데이터 ARRAY function getDbArray($table,$where,$data,$sort,$orderby,$recnum,$p) { global $DB_CONNECT; $rcd = db_query('select '.$data.' from '.$table.($where?' where '.$where:'').' order by '.$sort.' '.$orderby.($recnum?' limit '.round(($p-1)*$recnum).', '.$recnum:''),$DB_CONNECT); return $rcd; } //DB데이터 NUM function getDbRows($table,$where) { global $DB_CONNECT; $rows = db_fetch_array(db_query('select count(*) from '.$table.($where?' where '.$where:''),$DB_CONNECT)); return $rows[0] ? $rows[0] : 0; } //DB데이터 MAX function getDbCnt($table,$type,$where) { global $DB_CONNECT; $cnts = db_fetch_array(db_query('select '.$type.' from '.$table.($where?' where '.$where:''),$DB_CONNECT)); return $cnts[0] ? $cnts[0] : 0; } //DB셀렉트 function getDbSelect($table,$where,$data) { global $DB_CONNECT,$_SERVER; $r = db_query('select '.$data.' from '.$table.($where?' where '.$where:''),$DB_CONNECT); return $r; } //DB삽입 function getDbInsert($table,$key,$val) { global $DB_CONNECT; db_query("insert into ".$table." (".$key.")values(".$val.")",$DB_CONNECT); } //DB업데이트 function getDbUpdate($table,$set,$where) { global $DB_CONNECT; db_query("update ".$table." set ".$set.($where?' where '.$where:''),$DB_CONNECT); } //DB삭제 function getDbDelete($table,$where) { global $DB_CONNECT; db_query("delete from ".$table.($where?' where '.$where:''),$DB_CONNECT); } ?>
Rename:
-