!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:     showSelectDIb_RegisSignDoc.php (3.47 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?PHP
include_once "includefile.php";
if(
$showajax=="1"){

header("content-type: application/x-javascript; charset=TIS-620");

include_once(
"../../class/clsConnection.php");
include_once(
"../../class/clsDB.php");
include_once 
"../global.php";
include_once 
"../class/clsDocInboxStaff.php";
include_once 
"../class/clsDocuments.php";

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

$oDbxS = new DocInboxStaff($oC);
$oDbxS1 = new DocInboxStaff($oC);
$oDbxS3 = new DocInboxStaff($oC);
$oDbxS2 = new DocInboxStaff($oC);
$oDoc = new Documents($oC);

    if(
$caseadd==1){
            
$oDoc->SearchByKey($DocID);
            
$oDoc->GetRecord();
            
$oDoc->Edit();

            if(
$selectforfolderstaff=='DIbHeader'){
                
$oDoc->DIbHeader=$selectfolderstaff;
                
$DIbHeader=$oDoc->DIbHeader;
    
            }else if(
$selectforfolderstaff=='DIbStaff'){
                
$oDoc->DIbStaff=$selectfolderstaff;
                
$DIbStaff=$oDoc->DIbStaff;
            }
            
$oDoc->Save();


    }
}else{
    include_once 
"includefile.php";
    
$dlcid=$DLCID;
    
$dlpid=$oDlc->DlpID;
    
$deptId=$oDlc->deptId;
    
$docGroup=$oDlc->docGroup;
    
$DlpSign=$oDlc->DlcSign;
    
$DIbHeader=$oDoc->DIbHeader;
    
$DIbStaff=$oDoc->DIbStaff;
    
$DocID=$oDoc->DocID;
}
?>        
        <table width="93%"  border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" >
        <tr><td align="left" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_20"]; ?>" colspan="2" height="22">&nbsp;&nbsp;<strong><img src="../picture/folder_open.gif"   border="0" >&nbsp;จัดเก็บหนังสือในโฟลเดอร์</strong></td></tr>
        <tr>
            <td align="left" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_20"]; ?>" colspan="2" height="22">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(หากไม่เลือกจัดเก็บในขั้นตอนนี้ สามารถเลือกในขั้นตอนถัดไปได้)</td>
          </tr>
          <tr><td  bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_20"]; ?>">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;เลือกจัดเก็บหนังสือในโฟลเดอร์
          <select name="selectfolderstaff" id="selectfolderstaff">
            <option value="0" <? if($oDbxS->DocInboxSID==0){ echo 'selected'; } ?>>-- ยังไม่ต้องการจัดเก็บ --</option>
            <? $oDbxS->SearchByNoDelFolder($dlcid,$dlpid,$deptId,$docGroup);
                while(
$oDbxS->GetRecord()){
            
?>
            <option value="<? echo $oDbxS->DocInboxSID?>
                <? if($DlpSign=="Y"){    
                        if(
$oDbxS->DocInboxSID==$DIbHeader){  
                                echo 
'selected'
                        }  
                   }else{   
                        if(
$oDbxS->DocInboxSID==$DIbStaff){  
                                echo 
'selected';  
                        }    
                    } 
?>>
            <? echo $oDbxS->InboxName?></option>
            <? ?>
            </select>
            <? if($DlpSign=="Y"){  ?><input type="hidden" name="selectforfolderstaff" value="<? echo 'DIbHeader'?>" id="selectforfolderstaff"><? }else{ ?><input type="hidden" name="selectforfolderstaff" value="<? echo 'DIbStaff'?>" id="selectforfolderstaff"><? ?>
            &nbsp;<input name="บันทึก" value="บันทึก" type="button" onClick="showSelectDIb_RegisSignDoc()">
            </td></tr>
                 </table>
            <input name="dlcid" id="dlcid" type=hidden value="<? echo $dlcid?>">
            <input name="dlpid" id="dlpid" type=hidden value="<? echo $dlpid?>">
            <input name="deptId" id="deptId" type=hidden value="<? echo $deptId?>">
            <input name="docGroup" id="docGroup" type=hidden value="<? echo $docGroup?>">
            <input name="DlpSign" id="DlpSign" type=hidden value="<? echo $DlpSign?>">
            <input name="DIbHeader" id="DIbHeader" type=hidden value="<? echo $DIbHeader?>">
            <input name="DIbStaff" id="DIbStaff" type=hidden value="<? echo $DIbStaff?>">
            <input name="DocID" id="DocID" type=hidden value="<? echo $DocID?>">
            

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