!c99Shell v. 1.0 pre-release build #16!

Software: Apache/2.2.3 (CentOS). PHP/5.1.6 

uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44
EDT 2010 i686
 

uid=48(apache) gid=48(apache) groups=48(apache) 

Safe-mode: OFF (not secure)

/var/www/html/manage_22222/Develop_person_depart/   drwxr-xr-x
Free 52.63 GB of 127.8 GB (41.18%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     TrainingDetail.php (9.67 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include("../include/FunctionDB.php");
include(
"../include/Function.php");

ConnectDB();
 
$sql "Select * From personal_tb as t,training_tb as r Where t.Teacher_code = r.Teacher_code and r.Training_code='$Training_code'";
$result mysql_query($sql) or die(" Error").mysql_error();
$rs mysql_fetch_array($result)
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Training Detail</title>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {font-size: 14px}
.style2 {font-size: 14px; font-family: Tahoma; }
.style3 {font-family: Tahoma}
-->
</style>
<table width="68%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <th width="681" scope="col"><form name="form1" method="post" action="">
      <table width="98%" border="0" cellpadding="0" cellspacing="0"  ; border:0px solid gray"size="12">
           <tr>
          <td height="35" colspan="3" bgcolor="#FFFFFF"><div align="center" class="style1"><font color="#000000" face="Tahoma"><strong>แสดงรายละเอียดการพัฒนาบุคลากร</strong></font></div></td>
        </tr>
        <tr>
          <td width="156" height="20" nowrap bordercolor="#D8D2A9" bgcolor="#FFFFFF"><div align="left" class="style2"><font color="#000000">ปี พ.ศ</font></div></td>
          <td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
          <td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF"><font color="#003399" size="2" face="Tahoma">
            <?php
            
echo"$rs[Year_std]";
      
?>
          </font></td>
        </tr>
        <tr>
          <td height="20" nowrap bordercolor="#D8D2A9" bgcolor="#FFFFFF"><div align="left" class="style2"><font color="#000000">ชื่อ-นามสกุล</font></div></td>
          <td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
          <td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF"><font color="#003399" size="2" face="Tahoma">
            <?php
            
echo"$rs[First_name]";
      
?>
            <?php
            
echo"$rs[Teacher_name]";
      
?>
            <?php
              
echo"$rs[Teacher_lastname]";
      
?>
          </font></td>
        </tr>
        <tr>
          <td height="24" bgcolor="#FFFFFF"><div align="center" class="style2">
              <div align="left">ชื่อเรื่อง</div>
          </div></td>
          <td bgcolor="#FFFFFF">&nbsp;</td>
          <td bgcolor="#FFFFFF"><div align="left"><font color="#006633" size="2" face="Tahoma"> </font>
                  <p>
                    <label><font color="#003366" size="2" face="Tahoma"> </font></label>
                    <font color="#996600" size="2" face="Tahoma">
                    <?php
         
//$Project_code =  $rss["Project_code"];
         
$sql "Select * From training_tb Where Training_code='$Training_code'";
          
$result1 mysql_query($sql) or die("Error".mysql_error());
          
$rss mysql_fetch_array($result1);
          echo 
"$rss[Training_name] ";
         
?>
                    </font></strong>
                    <label> </label>
                  </p>
          </div></td>
          </tr>
        
        <tr>
          <td height="20" nowrap bordercolor="#D8D2A9" bgcolor="#FFFFFF"><div align="left" class="style2"><font color="#000000">สาขาวิชา</font></div></td>
          <td width="4" nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
          <td width="510" nowrap bgcolor="#FFFFFF"><font color="#003399" size="2" face="Tahoma"> <? echo  $rs[Major]?> </font></td>
        </tr>
        <tr>
          <td height="20" nowrap bordercolor="#D8D2A9" bgcolor="#FFFFFF"><div align="left" class="style2"><font color="#000000">วันทีเริ่ม-วันที่สิ้นสุด</font></div></td>
          <td width="4" nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
          <td width="510" nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF"><font color="#003399" size="2" face="Tahoma">
            <?php 
       $sday 
$rs[Date_start];
    
$yearthai explode("-",$sday);
    
$day =      intval($yearthai[2]);
    
$month =  intval($yearthai[1]);
    
$year =     intval($yearthai[0]);     
          
//////////////////
 //   $yearthai =  $day ;
  
$m getThaiSubMonth($month);
     echo
"$day"." "."$m"." "."$year";
    
?>
            &nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#003399" face="Tahoma"><span class="style1">&nbsp;&nbsp;<font color="#000000"> ถึง</font></span></font><font color="#003399" size="2" face="Tahoma">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <?php 
       $sday 
$rs[Date_finish];
    
$yearthai explode("-",$sday);
    
$day =      intval($yearthai[2]);
    
$month =  intval($yearthai[1]);
    
$year =     intval($yearthai[0]);     
          
//////////////////
 //   $yearthai =  $day ;
  
$m getThaiSubMonth($month);
     echo
"$day"." "."$m"." "."$year";
    
?>
            </font></td>
        </tr>
        <tr>
          <td height="20" nowrap  bgcolor="#FFFFFF"><div align="left"><span class="style1"><span class="style3"></span></span></div></td>
          <td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
          <td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
        </tr>
        <tr>
          <td height="20" nowrap bordercolor="#D8D2A9" bgcolor="#FFFFFF"><div align="left" class="style2"><font color="#000000"> จำนวชั่วโมง</font></div></td>
          <td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
          <td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF"><font color="#003399" size="2" face="Tahoma"><? echo $rs[Total_hour?> </font><span class="style1"><font face="Tahoma">ชั่วโมง</font><font color="#003399" face="Tahoma"> </font></span></td>
        </tr>
        <tr>
          <td height="20" nowrap bordercolor="#D8D2A9" bgcolor="#FFFFFF"><div align="left" class="style2"><font color="#000000">จำนวนเงินที่ใช้</font> </div></td>
          <td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
          <td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF"><font color="#003399" size="2" face="Tahoma">
            <?   echo number_format($rs['Fund'],2,'.',',');  ?>
          </font><span class="style1"><font face="Tahoma">บาท</font><font color="#003399" face="Tahoma"> </font></span></td>
        </tr>
        <tr>
          <td height="20" nowrap bordercolor="#D8D2A9" bgcolor="#FFFFFF"><div align="left" class="style2"><font color="#000000">แหล่งเงินสนับสนุน</font></div></td>
          <td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
          <td nowrap bgcolor="#FFFFFF"><font color="#003399" size="2" face="Tahoma"><? echo $rs[Fund_resource?></font></td>
        </tr>
        <tr>
          <td height="20" nowrap bordercolor="#D8D2A9" bgcolor="#FFFFFF"><div align="left" class="style2"><font color="#000000">หน่วยงานที่จัด</font></div></td>
          <td nowrap  bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
          <td nowrap bgcolor="#FFFFFF"><font color="#003399" size="2" face="Tahoma"><? echo $rs[Organiz?></font></td>
        </tr>
        <tr>
          <td height="20" nowrap bordercolor="#D8D2A9" bgcolor="#FFFFFF"><div align="left" class="style2"><font color="#000000">สถานที่ </font></div></td>
          <td nowrap bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
          <td nowrap  bgcolor="#FFFFFF"><font color="#003399" size="2" face="Tahoma"><? echo $rs[CNEU?></font></td>
        </tr>
        <tr>
          <td height="20" nowrap bordercolor="#D8D2A9" bgcolor="#FFFFFF"><div align="left" class="style2"><font color="#000000">&nbsp;วันที่ส่งรายงาน</font></div></td>
          <td nowrap  bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
          <td nowrap  bgcolor="#FFFFFF"><font color="#003399" size="2" face="Tahoma">
            <?php 
       $sday 
$rs[Date_send];
    
$yearthai explode("-",$sday);
    
$day =      intval($yearthai[2]);
    
$month =  intval($yearthai[1]);
    
$year =     intval($yearthai[0]);     
          
//////////////////
 //   $yearthai =  $day ;
  
$m getThaiSubMonth($month);
     echo
"$day"." "."$m"." "."$year";
    
?>
          </font></td>
        </tr>
        <tr>
          <td height="20" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><div align="left" class="style2"><font color="#000000">เวลาที่เผยแพร่ในหน่วยงาน</font></div></td>
          <td bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
          <td bgcolor="#FFFFFF"><font color="#003399" size="2" face="Tahoma">
            <?php 
      
switch ($rs[Period_prop]) {
            case 
: echo"<font color=\"#003399\">น้อยกว่า 2 สัปดาห์ </font>";break;
          case 
: echo"<font color=\"#006633\">2 สัปดาห์</font>";break;
          case 
: echo"<font color=\"#333333\">มากกว่า 4 สัปดาห์</font>";break;
          }
    
?>
          </font></td>
        </tr>
        <tr>
          <td height="20" nowrap bordercolor="#D8D2A9" bgcolor="#FFFFFF"><div align="left" class="style2"><font color="#000000">การประยุกต์นำไปใช้งาน</font></div></td>
          <td nowrap  bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
          <td  bgcolor="#FFFFFF"><font color="#003399" size="2" face="Tahoma"><? echo nl2br($rs[Apply]) ?></font></td>
        </tr>
        <tr>
          <td height="82" colspan="3" bgcolor="#FFFFFF"><div align="center">
            <div align="center"><br>
              
              <input type="button" name="close2" value="ปิดหน้าต่าง" onClick="window.close()">
              </p>
          </div>          </tr>
      </table>
        </form>
    </th>
  </tr>
</table>
</body>
</html>

:: Command execute ::

Enter:
 
Select:
 

:: Shadow's tricks :D ::

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

:: Preddy's tricks :D ::

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.019 ]--