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


Viewing file:     clsDocNoRequest.php (2.93 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "../link/keyThai.php";
class 
DocNoRequest  extends clsDB{

var 
$result

var 
$DnID;
var 
$DocID;
var 
$RegisterID;
var 
$RegisterYear;
var 
$RegisterName;
var 
$DocNo;
var 
$RegisterNo;
var 
$CorrespondenceDate;
var 
$Subject;
var 
$RegisterDate;
var 
$DlcID;
var 
$personId;

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

function 
Save(){
    if(
$this->RegisterDate==''){ $this->RegisterDate='0000-00-00 00:00:00';  }

    if (
$this->status==1){    
         
$sql "insert into  docnorequest values(
            '"
.th2a($this->DnID)."',
            '"
.th2a($this->DocID)."',
            '"
.th2a($this->RegisterID)."',
            '"
.th2a($this->RegisterYear)."',
            '"
.th2a($this->RegisterName)."',
            '"
.th2a($this->DocNo)."',
            '"
.th2a($this->RegisterNo)."',
            '"
.th2a($this->CorrespondenceDate)."',
            '"
.th2a($this->Subject)."',
            '"
.th2a($this->RegisterDate)."',
            '"
.th2a($this->DlcID)."',
            '"
.th2a($this->personId)."'
            )"
;
    }else {
        
$sql "update docnorequest set 
            DocID='"
.th2a($this->DocID)."', 
            RegisterID='"
.th2a($this->RegisterID)."', 
            RegisterYear='"
.th2a($this->RegisterYear)."', 
            RegisterName='"
.th2a($this->RegisterName)."', 
            DocNo='"
.th2a($this->DocNo)."', 
            RegisterNo='"
.th2a($this->RegisterNo)."', 
            CorrespondenceDate='"
.th2a($this->CorrespondenceDate)."', 
            Subject='"
.th2a($this->Subject)."', 
            RegisterDate='"
.th2a($this->RegisterDate)."', 
            DlcID='"
.th2a($this->DlcID)."', 
            personId='"
.th2a($this->personId)."'
            where DnID='"
.th2a($this->DnID)."'";
    }
    return 
$this->Dml($sql);
}

function 
Delete(){
    return 
$this->Dml("delete from docnorequest where DnID='$this->DnID'");
}
function 
NumRow(){
    return 
$this->GetRowSelected();
}
function 
GetNextCode(){
    
$this->SetQuery("select max(DnID) as num from docnorequest");
    if (
$result=$this->GetResult()) {
        return 
$result['num']+1;
    }
}

function 
RSDocuments(){
    
$this->SetQuery("select * from docnorequest order by DnID");
}

function 
GetRecord(){
    
$numFields $this->NumField();
    
$row $this->GetResult();
    if (
$row){
        for (
$i=0$i<$numFields$i++){
            eval(
"\$this->".mysql_field_name($this->rs$i)."=\$row['".mysql_field_name($this->rs$i)."'];");
            
$this->DnID=a2th($this->DnID);
            
$this->DocID=a2th($this->DocID);
            
$this->RegisterID=a2th($this->RegisterID);
            
$this->RegisterYear=a2th($this->RegisterYear);
            
$this->RegisterName=a2th($this->RegisterName);
            
$this->DocNo=a2th($this->DocNo);
            
$this->RegisterNo=a2th($this->RegisterNo);
            
$this->CorrespondenceDate=a2th($this->CorrespondenceDate);
            
$this->Subject=a2th($this->Subject);
            
$this->RegisterDate=a2th($this->RegisterDate);
            
$this->DlcID=a2th($this->DlcID);        
            
$this->personId=a2th($this->personId);
        }
        return 
true;
    }else{    
// clear value of Member;
        
for ($i=0$i<$numFields$i++){
            eval(
"\$this->".mysql_field_name($this->rs$i)."='';");
        }
        return 
false;
    }
}

function 
SearchByKey($xKey){
    if (
$this->SetQuery("select * from docnorequest where DnID= '$xKey'")){ 
        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.0154 ]--