!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.33 GB of 127.8 GB (40.94%)
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.4 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "template.php";
include_once 
"../class/clsTable.php";
include_once 
"../class/clsPerson.php";
include_once 
"../link/function.php";

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

$oPS = new Person($oC);
include_once 
"getPrefix.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>
<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"> 
     <div align="right"><a href="updatePersonDept.php"><img src="../picture/sendusers.gif" alt=""  border="0" > แก้ไขข้อมูลหน่วยงานที่สังกัดรายกลุ่ม</a>
     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
     <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
             <tr><td height="30"><strong><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_2"];?>"><img src="../picture/mainuser.gif" alt=""  border="0" >&nbsp;&nbsp;แก้ไขข้อมูลบุคลากรรายบุคคล</font></strong></td></tr>
              <tr><td  height="30" align="left"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_2"];?>">&nbsp;&nbsp;
            <img src="../picture/search2.jpg" alt=""  border="0" >
            ค้นหารายชื่อบุคลากร</font></td></tr>
              <tr>
            <td height="30" align="left"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_2"];?>">&nbsp;&nbsp;&nbsp;&nbsp;ชื่อ - นามสกุล ::</font>
            <input type="text" name="name" value="<? echo $name?>">&nbsp;<input type=submit value="ค้นหา" align=center>
              </td>
          </tr>
            <tr>
            <td align="center"><br>
        <? if($name!=""){ ?>    
        <table width="80%" 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 height="24" colspan="4"    align="center" ><strong><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_2"];?>">&nbsp;&nbsp; 
              รายชื่อบุคลากร</font></strong></td>
          </tr>
          <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>"> 
            <td height="26" width="82" align="center" ><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_2"];?>"><strong>ลำดับที่</strong></font></td>
            <td width="927" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_2"];?>"><strong>ชื่อ-นามสกุล</strong></font></td>
          </tr>
          <?php 

                  $oPS
->SearchByName($name);
                while(
$oPS->GetRecord()){
                                if((
$i%2) == 0)
                                          echo 
"<tr>";
                                    else
                                          echo 
"<tr bgcolor=\"".$GLOBALS['COLOR_BG_TABLE_8']."\">";
?>
          
            <td width="82" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><? echo ($i+1);?>
              </font></td>
            <td align="left"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>">
            <a href="editPsInfo.php?ps=<? echo $oPS->personId?>&name=<? echo $name?>"><? echo "&nbsp;&nbsp;".GetPrefixshow($oPS->prefixId).$oPS->fName."&nbsp;".$oPS->lName?></a>            
              </font></td>
          </tr>
          <? $i++;  }
          if(
$i==0){
           
?>
           <tr><td colspan="2" align="center" height="22"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">** ไม่มีข้อมูลบุคลากร **</font></td></tr>
           <? ?>
       </table><? ?></td></tr></table>
</form>
</fieldset>
         <table width="704" border="0" align="center">
        <tr> 
          <td width="76" align="left"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">&nbsp;<strong>หมายเหตุ 
            : </strong>&nbsp;</font></td>
          <td width="618" align="left"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">
                คลิกที่รายชื่อบุคลากรที่ต้องการแก้ไขข้อมูลบุคลากร</font></td>
        </tr>
      </table> <br><br>
</td>
</tr>
</table>
</body>
</html>
<script language="javascript">
function checkFormat(){
        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.0062 ]--