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


Viewing file:     v_addStudentDomitory.php (4.86 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$row_cur 
= (isset($qu_cur) && $qu_cur!=NULL) ? $qu_cur->row() : NULL;
$row_tm = (isset($qu_tm) && $qu_tm!=NULL) ? $qu_tm->row() : NULL;
?>
<table width="100%">
    <tr>
        <td>
            <div align="center">
            <?php echo form_open($this->config->item("rg_folder")."dom/sdm_insert_update", array("name" => "myform""id" => "myform"));?>
            <table width="100%" border="0">
                <tr>
                    <td class="h error">บันทึกข้อมูลการพักหอพัก</td>
                </tr>
                <tr>
                    <td><br /></td>
                </tr>
                <tr>
                    <td><table class="szone">
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone">ชื่อหลักสูตร</td>
                            <td><font size="2"><?php echo explodeSquare(setValue('curName',$row_cur));?></font>
                            <input type="hidden" name="curId" id="curId" value="<?php echo setValue('curId',$row_cur);?>"></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone">ปีการศึกษาที่เข้า</td>
                            <td><font size="2"><?php echo $adY;?></font>
                            <input type="hidden" name="adY" id="adY" value="<?php echo $adY;?>"></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone">ปีการศึกษา</td>
                            <td><font size="2"><?php echo $acY;?></font>
                            <input type="hidden" name="acY" id="acY" value="<?php echo $acY;?>"></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone">ภาคการศึกษา</td>
                            <td><font size="2" ><?php echo setValue('tmCode',$row_tm);?></font>
                            <input type="hidden" name="tmId" id="tmId" value="<?php echo setValue('tmId',$row_tm);?>"></td>
                        </tr>
                    </table></td>
                </tr>
                <tr>
                    <td><br /></td>
                </tr>
                <tr>
                    <td colspan="2"><table class="headCol">
                        <tr>
                            <th class="stdCodeCol"><font color="<?php echo $font_color_table;?>">รหัสนักศึกษา</font></th>
                            <th><font color="<?php echo $font_color_table;?>">ชื่อนักศึกษา</font></th>
                            <th><font color="<?php echo $font_color_table;?>">จอง</font></th>
                            <th><font color="<?php echo $font_color_table;?>">ได้</font></th>
                            <th class="date"><font color="<?php echo $font_color_table;?>">หอพัก/ห้องพัก</font></th>
                            <th class="domAmtCol"><font color="<?php echo $font_color_table;?>">จำนวนเดือน</font></th>
                        </tr>
<?php
                $i 
0;
                if (isset(
$rs_std) && $rs_std->num_rows()) {
                    foreach (
$rs_std->result() as $row_std) {
                        
$row_dmb = isset($rs_dmb[$row_std->stdId]) ? $rs_dmb[$row_std->stdId]->row() : NULL;

                        echo 
"<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
                            <td align="center"><font size="2"><?php echo $row_std->stdCode;?></font>
                            <input type="hidden" name="stdId<?php echo $i;?>" id="stdId<?php echo $i;?>" value="<?php echo $row_std->stdId;?>"></td>
                            <td class="indent"><font size="2" ><?php echo $row_std->prefixName.$row_std->stdName.' '.$row_std->stdSurname;?></font></td>
                            <td class="indent"><font size="2" ><?php echo getval('hwName2'$row_dmb).' '.getval('hwName1'$row_dmb);?></font></td>
                            <td class="indent"><font size="2" ><?php echo $row_std->hwName2.' '.$row_std->hwName1;?></font></td>
                            <td align="center">
<?php
                            
echo form_dropdown('sdmDmId'.$i$rs_dmset_value('sdmDmId'.$i, (getval('sdmDmId'$row_std) ? getval('sdmDmId'$row_std) : getval('plHwId'$row_dmb))));
?>
                            <span class="error"><?php echo form_error('sdmDmId'.$i);?></span></td>
                            <td align="center"><input type="text" name="sdmNumMonth<?php echo $i;?>" value="<?php echo number_format(setValue('sdmNumMonth',$row_std),2);?>" size="4" >
                            <span class="error"><?php echo form_error('sdmNumMonth'.$i);?></span><!-- maxlength="2" class="required-int" --></td>
                        </tr>
<?php
                        $i
++;
                    }
                }
?>
                    </table></td>
                </tr>
                <tr>
                    <td align="right"><font size="2" >รวม <?php echo $i;?> รายการ</font></td>
                </tr>
                <tr>
                    <td align="center">
                    <input name="add" type="submit" value="บันทึก" onClick="return confirmSubmit('กรุณาตรวจสอบข้อมูลให้เรียบร้อยก่อนบันทึก !!')" />
                    <input type="reset" name="clear" value="เคลียร์ข้อมูล">
                    <input type="button" name="back" id="back" value="ย้อนกลับ" onclick="location.href='<?php echo site_url($this->config->item('rg_folder')).'/dom/showStdDom';?>'" />
                    <input type="hidden" name="cnt" id="cnt" value="<?php echo $i;?>"></td>
                </tr>
            </table><?php echo form_close();?></div>
        </td>
    </tr>
</table>

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