403Webshell
Server IP : 172.67.187.206  /  Your IP : 172.71.28.156
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Inetpub/www/training/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Inetpub/www/training//inserttt.php
<meta http-equiv="refresh" content="1;URL=insertt.php" />

<?php
$servername = "localhost";
$username = "root";
$password = "P@ssw0rdMySQL0";
$dbname = "quiz";

// Create connection
$conn = mysqli_connect($servername, $username, $password, $dbname);
// Check connection
if (!$conn) {
  die("Connection failed: " . mysqli_connect_error());
}

$name = $_POST["name"];
$email = $_POST["email"];
$tel = $_POST["tel"];
$member = $_POST["member"];
$school = $_POST["school"];
$subject = $_POST["subject"];
$status = $_POST["status"];
$score = $_POST["score"];
$percent = $_POST["percent"];

function DateThai($strDate)
{
  $strYear = date("Y",strtotime($strDate))+543;
  $strMonth= date("n",strtotime($strDate));
  $strDay= date("j",strtotime($strDate));
  $strHour= date("H",strtotime($strDate));
  $strMinute= date("i",strtotime($strDate));
  $strSeconds= date("s",strtotime($strDate));
  $strMonthCut = Array("","มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม");
  $strMonthThai=$strMonthCut[$strMonth];
  return "ให้ไว้ ณ วันที่ $strDay $strMonthThai พุทธศักราช $strYear";
}
$date = date("Y-m-d");
$strDate = "$date";
$datethai = DateThai($strDate);

$sql = "INSERT INTO quiz_pass (name, email, tel, member, school, subject, status, score, percent, date)
VALUES ('$name', '$email', '$tel', '$member', '$school', '$subject', '$status', '$score', '$percent', '$datethai')";






if (mysqli_query($conn, $sql)) {
  echo "เรียบร้อยแล้ว";
} else {
  echo "Error: " . $sql . "<br>" . mysqli_error($conn);
}

mysqli_close($conn);

?>

Youez - 2016 - github.com/yon3zu
LinuXploit