!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:     editmajoredu.php (6.54 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/clsmajoredu.php";        
confirmSubmit();    
$oMe = new MajorEdu($oC1);
?>
<script language="JavaScript1.2">
function checkFormat(){
    if(document.ps.majoreduName.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"> <a href="addmajoredu.php">ข้อมูลสาขาวิชาการศึกษา</a> <img src="../picture/ico3.gif" align="absmiddle" border="0"> แก้ไข</font></legend>
            <label><div align="center"><br><form name="ps" method="post" action="processmajoredu.php"><table width="416" align="center" border="0" cellpadding="0" cellspacing="1">
                <tr><td width="414" colspan="2" align="center"><font size="3" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>"><strong>แก้ไข</strong></font></td></tr>
                <tr><td>&nbsp;</td></tr>
                <tr>
                    <td><table width="405" align="center" border="0" cellpadding="1" cellspacing="1" bordercolor="<?php echo $GLOBALS['COLOR_BORDER_TABLE_2'];?>">
<?php 
                        $oMe 
->SearchByKey($majoreduId);
                        
$oMe->GetRecord();
?>
                    <tr>
                    <td align="left" width="188"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>ชื่อสาขาวิชาการศึกษา </b></font></td>
                            <td align="left" width="10">&nbsp;</td>
                            <td align="left" width="199"><input type="text" name="majoreduName"  value = "<?php echo $oMe->majoreduName;?>" size="20" >
                            <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font></td>
                        </tr>
                    </table></td>
                </tr>
                <tr>
                    <td align="center"><br><input name="edit" type="submit" value="แก้ไข"  onClick = "return checkFormat()">
                    <input type="reset" name="clear" value="เคลียร์ข้อมูล">
                <input type="button" name="cancel" value="ยกเลิก" onClick="location.href = 'addbranch_edu.php'"> 
                <input type="hidden" name="method" value="edit">
                <input type="hidden" name="psearch" value="<?php echo $psearch;?>">
                                    <input type="hidden" name="pg" value="<? echo $pg?>">
                    <input type="hidden" name="majoreduId"  value="<?php echo $majoreduId?>"></td>
                </tr>
            </table></form><p>&nbsp;</p><p><table width="610" align="center" border="0" cellpadding="0" cellspacing="1">
            <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> 
                    <td colspan="2"><table width="608" border="1" cellspacing="0" cellpadding="0" bordercolor="<?php echo $GLOBALS['COLOR_BORDER_TABLE_1'];?>">
                  <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TABLE_2'];?>"> 
                    <td width="80" height="22" align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_1'];?>"><strong>ลำดับ
                      </strong></font></td>
                    <td width="394" height="22" align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_1'];?>"><strong>ชื่อสาขาวิชาการศึกษา 
                      </strong></font></td>
                    <td width="63" align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_1'];?>"><strong>แก้ไข</strong></font></td>
                    <td width="61" align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_1'];?>"><strong>ลบ</strong></font></td>
                  </tr>
                  <?php
                $oMe
->RSMajorEduNameId($psearch);
                
$record $oMe->GetRowSelected();
                if (
$pg==""
                    
$pg=1;
                
$i = ($pg-1)*$GLOBALS["rowPerPage"];
                
$oMe->NextPage($pg);
                 while(
$oMe->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 $oMe->majoreduName;?></font></td>
                  <td align="center"><a href="editmajoredu.php?pg=<? echo $pg?>&majoreduId=<?php echo $oMe->majoreduId;?>&psearch=<? echo $psearch?>"><img src="../picture/editnew.gif" width="23" height="19" align="absmiddle" border="0"></a></td>
                  <td align="center"><a href="processmajoredu.php?majoreduId=<?php echo $oMe->majoreduId;?>&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" width="289"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">หน้า-&gt; 
<?php
                $mxPage
=$oMe->NumPage();    
                for(
$i=1;$i<=$mxPage;$i++){
                        if(
$i == $pg)
                            echo 
$i." ";
                        else {
?>
                            <a href="addmajoredu.php?pg=<?php echo $i;?>&psearch=<? echo $psearch?>"><?php echo '[ '.$i.' ]'; if($i==9){echo "<br>";}?></a>
<?php
                        
}
                    }
?>
                </font></td>
                    
              <td width="318" 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></p></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.0171 ]--