403Webshell
Server IP : 27.254.96.235  /  Your IP : 216.73.216.44
Web Server : Apache/2
System : Linux cs95 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : piboonsa ( 1055)
PHP Version : 8.0.30
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 : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  /home/piboonsa/public_html/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/piboonsa/public_html/send.php
<?php 
	session_start();
	include("dbconfig/config.php");
	function generate_verification() {
		srand((double)microtime()*1000000); 
		$rand = rand(0,999999999);  
		$thecode = substr(strtoupper(md5($rand)), 2, 5); 
		$thecode = str_replace("1", "A", $thecode);
		$thecode = str_replace("0", "B", $thecode);
		$thecode = str_replace("1", "B", $thecode);
		$_SESSION["thecode"] = $thecode; 
	}
?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<?php include("title.inc.php");?>
</head>

<body>
	<?php include("head.inc.php");?>
    <div class="cover">
    	<div class="detail"><br>
        	<h1><img src="images/topic-contact.jpg" align="absmiddle"> ติดต่อเรา</h1>
            <p align="center" style="height:9em; padding-top:6em;">
			<?php 
                $subject = $_REQUEST["subject"];
                $email = $_REQUEST["email"];
                $message = $_REQUEST["message"]; 
                $name = $_REQUEST["name"]; 
                $tel = $_REQUEST["tel"]; 
                $verify = $_REQUEST['verify'];
                
                if($_SESSION["thecode"]==$verify){
                  $str_count = substr_count($email,'@');
                  if($str_count != 1) {
                    exit('error!!!');
                    }
                   
                    //$to = "info@piboonsawasdee.ac.th";
                    $to = "kobizdesign@gmail.com";
                    $mailSubject = "ติดต่อโรงเรียนเทศบาลพิบูลสวัสดี";
                    $mailHeaders = "From: ".$email."\n";
                    $mailHeaders.= "Mime-Version: 1.0\n";
                    $mailHeaders.= "Content-Type: text/plain;charset=utf-8\n";
                    $mailHeaders.= "Content-Transfer-Encoding: 8bit\n";
                    
                    $body = "หัวข้อ: $subject\n";
                    $body .= "รายละเอียด: $message\n";
                    $body .= "ชื่อ-สกุล: $name\n";
                    $body .= "อีเมล์+: $email\n";
                    $body .= "เบอร์โทร: $tel\n\n";
                    
                    mail($to, $mailSubject, $body, $mailHeaders);
                }
                else{
                   exit('error!!!');
                }
                generate_verification();
                echo "ขอบคุณค่ะ !!!<br />ทางเราได้รับข้อมูลเรียบร้อยแล้ว";
          ?>
       </p>
        </div>
    </div>
    <?php include("foot.inc.php");?>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit