403Webshell
Server IP : 104.21.80.248  /  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//editttt.php
<html>
        <?php require"header.php" ?>
<body>

<?php require"navbar.php" ?>

<form name="frmSearch" method="post" action="<?php echo $_SERVER['SCRIPT_NAME'];?>">


<div class="container">

<!-- <table class="table table-bordered">
  <thead>
    <tr>
      <th> --><br><center>
	  <h3>แก้ไขรายชื่อ</h3></><br>

    <?php
//กำหนดตัวแปรเพื่อนำไปใช้งาน
$hostname = "localhost"; //ชื่อโฮสต์
$user = "root"; //ชื่อผู้ใช้
$password = "P@ssw0rdMySQL0"; //รหัสผ่าน
$dbname = "quiz"; //ชื่อฐานข้อมูล
$tblname = "quiz_pass"; //ชื่อตาราง
// เริ่มติดต่อฐานข้อมูล
mysql_connect($hostname, $user, $password) or die("ติดต่อฐานข้อมูลไม่ได้");
// เลือกฐานข้อมูล
mysql_select_db($dbname) or die("เลือกฐานข้อมูลไม่ได้");
// คำสั่ง SQL และสั่งให้ทำงาน
$sql = "update $tblname set id=id, name='$name', email='$email', tel='$tel' where id=$id"; // กำหนดคำสั่ง SQL เพื่อแสดงข้อมูล
$dbquery = mysql_db_query($dbname, $sql);
echo "<Font Size=4><B>แก้ไขข้อมูลเรียบร้อยแล้ว</B>";
echo "<Br><A Href=\"editt.php\"> ดูผลการเปลี่ยนแปลง</A>"; // เครื่องหมาย \ หน้า " ทำให้ไม่เกิด error เมื่อรัน
?>
</div>

  <?php require"footer.php" ?>

</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit