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


Viewing file:     ChangeDept.php (5 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";
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);
?>
<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>
<iframe id="changeDept" name="changeDept" src="" style="width:0px;height:0px;border:0"></iframe>
<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>
    <? if($oPS->CountPerson()!=0){  ?>      
      <table border="0" align="center" width="100%"><tr><td align="center"><br>
    <font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2"><strong>
    <? if($result=="1"){ 
                  echo 
"ยังไม่มีการปรับโครงสร้างเพื่อการส่งหนังสือในระบบสารบรรณ";
          }else if(
$result=="0"){        
                  echo 
"ปรับโครงสร้างเพื่อการส่งหนังสือในระบบสารบรรณเรียบร้อยแล้ว";
          } 
?> 
          </strong></font>
    
    <form name="ff" method="post" action="checkChangeDept.php" onsubmit="return checkFormat2();" target="changeDept">
       <input type="hidden" name="method" value="changeDept">
       <input type="submit" name="changeDept" value="ปรับโครงสร้างเพื่อการส่งหนังสือในระบบสารบรรณ">
        <input type="hidden" name="result" id="result" value=<? echo $result?>>
     </form>
            <? echo "ก่อนปรับโครงสร้าง จะต้องมีการสำเนาข้อมูลของโครงสร้างเก่าไว้ทุกครั้ง ";?><br><br>
            <table width="60%" border="1" cellpadding="0" cellspacing="0" align="center" style="border-collapse:collapse" bordercolor="#DADADA">
            <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_15'];?>" align="center" height="22"><td align="center" ><strong>โครงสร้างเพื่อการส่งหนังสือในระบบสารบรรณ</strong></td></tr>
            <? $oDP2->SearchBydeptParent(); $oDP2->GetRecord();  ?>
            <tr><td width="3%" height="22" align="left"><strong>&nbsp;&nbsp;<? echo $oDP2->deptName?></strong></td></tr> 
            <? $oDP->RSDeptByMaxdeptDate();
                    while(
$oDP->GetRecord()){
            
?>
                    <td width="3%" height="22" align="left">&nbsp;&nbsp;&nbsp;&nbsp;<img src="../picture/linesub.gif"  border="0" align="absmiddle">&nbsp;      
                    <a href="ChangeDept.php?dID=<? echo $oDP->deptId?>">
                    <font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="1"><strong><? echo $oDP->deptName;?>&nbsp;(<? echo a2th($oPS->CountPersonDept($oDP->deptId)); ?>)</strong></font></a></td></tr>
                    <? if($oDP->deptId==$dID){  
                            
$oDP3->SearchByKey($oDP->deptId);
                            
$oDP3->GetRecord();
                                
$oPS->SearchByDeptId($oDP3->deptId);
                                
$i=0;
                                while(
$oPS->GetRecord()){
                                    
$i++;
                                    if((
$i%2) == 0)
                                          echo 
"<tr>";
                                    else
                                          echo 
"<tr bgcolor=\"".$GLOBALS['COLOR_BG_TABLE_8']."\">";
                    
?>
                    <td colspan="2" height="22" align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <? echo $i.".&nbsp;".GetPrefix($oPS->prefixId).$oPS->fName."&nbsp;".$oPS->lName?></td></tr>
                    <?   //while
                         
//show person in dept ?>
            <?  }  // loop dept  ?>
            </table><br><br>
      </td></tr></table>
      <? }else{ ?>
      <font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2"><strong>
     <br><br><br>ยังไม่มีการนำเข้าข้อมูลบุคลากร ไม่สามารถปรับโครงสร้างเพื่อการส่งหนังสือในระบบสารบรรณได้<br><br><br><br><br></strong></font>
     <?  }?>
</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">คลิกที่ชื่อหน่วยงานเมื่อต้องการดูรายละเอียดรายชื่อบุคลากร</font></td>
        </tr>
      </table> <br><br> <br><br> <br><br>
</td>
</tr>
</table>
</body>
</html>
<script language="javascript">
function checkFormat2(){
        window.alert("หมายเหตุ :: การปรับโครงสร้างเพื่อการส่งหนังสือในระบบสารบรรณจะเปลี่ยนแปลง\nข้อมูลหน่วยงาน และข้อมูลบุคลากร ผู้รับผิดชอบระบบ\nต้องตั้งค่าการใช้งานระบบใหม่");
        var agree=confirm("คุณต้องการปรับโครงสร้างเพื่อการส่งหนังสือในระบบสารบรรณใช่หรือไม่ ?");
        if (agree){
                    return true ;
        }else{
                    return false ;
        }    
}
</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 ::
 
[ 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.0064 ]--