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


Viewing file:     formCreateDoc.php (13.26 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "template.php";
include_once 
"../class/clsDocType.php";
include_once 
"../link/keyThai.php";
include_once 
"../link/function.php";
include_once 
"../link/functionshow.php";
include_once 
"funct.php";
include_once 
"../link/keyThai.php";
include_once 
"../class/clsDocSpeedLevel.php";
include_once 
"../class/clsDocSecreLevel.php";


$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);
$oDt = new doctype($oC);
$InputThai=$oSys->SearchByInputThai();
$oDsl = new DocSpeedLevel($oC);
$oDcl = new DocSecretLevel($oC);
?>
<html>
<head>
<script language="javascript" src="../source/calendarDateInput.js"></script>
<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="createDoc.php">ÊÃéÒ§ËÃ×;ÔÁ¾ì˹ѧÊ×ÍÃÒª¡ÒÃ</a></font></legend>
      <form name="ff"  METHOD="POST" target="formWin">
        <table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#DADADA" >
        <tr><td align="center" height="22" colspan=3><strong>ÊÃéÒ§ËÃ×;ÔÁ¾ì˹ѧÊ×ÍÃÒª¡Òà:: <? $oDt->SearchByKey($dt); $oDt->getRecord(); echo $oDt->DtName?></strong></td></tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td align="right">&nbsp;</td>
          </tr>
          <? if($dt!="9"){ ?>
          <tr height=22>
            <td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" >&nbsp;<b><? echo ShowNameDocNo($dt);?></b></td>
            <td width="0%" align="center"><strong>:</strong></td>
            <td width="75%"><input type="text" name="DocNo" id="DocNo" size="30" onKeyUp="CheckInput('<? echo $InputThai?>','DocNo')"></td>
          </tr>
          <? }?>
          <? if($dt=="2"){ ?>
          <tr height=22>
            <td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" >&nbsp;<b>¶Ö§</b></td>
            <td width="0%" align="center"><strong>:</strong></td>
            <td width="75%"><input type="text" name="DocTo" id="DocTo" size="60" onKeyUp="CheckInput('<? echo $InputThai?>','DocTo')"></td>
          </tr>
          <? }?>
          <? if($dt!="2" && $dt!="10" && $dt!="11"){ ?>
          <tr height=22>
            <td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" >&nbsp;<b><? echo ShowNameDate($dt);?></b></td>
            <td width="0%" align="center"><strong>:</strong></td>
            <td ><script>DateInput('DocDate', true, 'DD/MM/YYYY','<?php echo getNowDateFw2();?>');</script></td>
          </tr>
          <? }?>
          <? if($dt!="2"){ ?>
          <tr height=22>
            <td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" >&nbsp;<b><? echo ShowNameDeptCreate($dt);?></b></td>
            <td width="0%" align="center"><strong>:</strong></td>
            <td ><input type="text" name="DocDeptCreate" id="DocDeptCreate" size="60" onKeyUp="CheckInput('<? echo $InputThai?>','DocDeptCreate')"></td>
          </tr>          

          <? }?>
          <? if($dt!="2"){ ?>
          <tr height=22>
            <td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" >&nbsp;<b><? echo ShowNameSubject($dt);?></b></td>
            <td width="0%" align="center"><strong>:</strong></td>
            <td width="75%"><input type="text" name="DocSubject" id="DocSubject" size="60" onKeyUp="CheckInput('<? echo $InputThai?>','DocSubject')"></td>
          </tr>
          <? }?>          
          <? if($dt=="1" || $dt=="3"){ ?>
          <tr height=22>
            <td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" >&nbsp;<b>(¤Ó¢Öé¹µé¹)</b></td>
            <td width="0%" align="center"><strong>:</strong></td>
            <td width="75%"><input type="text" name="DocTo2" id="DocTo2" size="60" onKeyUp="CheckInput('<? echo $InputThai?>','DocTo2')"></td>
          </tr>
          <? }?>
          <? if($dt=="1"){ ?>
          <tr height=22>
            <td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" >&nbsp;<b>ÍéÒ§¶Ö§ (¶éÒÁÕ)</b></td>
            <td width="0%" align="center"><strong>:</strong></td>
            <td width="75%"><input type="text" name="DocRef" id="DocRef" size="60" onKeyUp="CheckInput('<? echo $InputThai?>','DocRef')"></td>
          </tr>
          <? }?>
          <? if($dt=="1"){ ?>
          <tr height=22>
            <td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" >&nbsp;<b>ÊÔ觷ÕèÊè§ÁÒ´éÇ (¶éÒÁÕ)</b></td>
            <td width="0%" align="center"><strong>:</strong></td>
            <td width="75%"><input type="text" name="DocOther" id="DocOther" size="60" onKeyUp="CheckInput('<? echo $InputThai?>','DocOther')"></td>
          </tr>
          <? }?>
          <? if($dt=="1" || $dt=="3" || $dt=="2"){ ?>
          <tr height=22>
            <td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" >&nbsp;<b>ªÑ鹤ÇÒÁàÃçÇ (¶éÒÁÕ)</b></td>
            <td width="0%" align="center"><strong>:</strong></td>
            <td width="75%">
                <select name="DslID" id="DslID">
                <? $oDsl->RSDocSpeedLevel();
                            while(
$oDsl->GetRecord()){?>
                <option value="<? echo $oDsl->DslID;?><? if($DslID!="" && $DslID==$oDsl->DslID){   echo "selected"; }?>><? echo $oDsl->DslName?></option>
                <? ?>
              </select></td>
          </tr>
          <? }?>
          <? if($dt=="1" || $dt=="3" || $dt=="2"){ ?>
          <tr height=22>
            <td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" >&nbsp;<b>ªÑ鹤ÇÒÁÅѺ (¶éÒÁÕ)</b></td>
            <td width="0%" align="center"><strong>:</strong></td>
            <td width="75%">
                <select name="DclID" id="DclID" >
                <? $oDcl->RSDocSecretLevel();
                            while(
$oDcl->GetRecord()){?>
                <option value="<? echo $oDcl->DclID;?><? if($DclID!="" && $DclID==$oDcl->DclID){   echo "selected"; }?>><? echo $oDcl->DclName?></option>
                <? ?>
              </select></td>
          </tr>
          <? }?>
          <tr><td>&nbsp;</td></tr>
          <tr height=22>
            <td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" >&nbsp;<b>¢éͤÇÒÁÊèǹ·Õè 1</b></td>
            <td width="0%" align="center"><strong>:</strong></td>
            <td width="75%"><textarea name="DocDetail1" id="DocDetail1" cols="70" rows="4"  <? echo showtextarea('DocDetail1',$InputThai); ?> ></textarea></td>
          </tr>
          <tr height=22>
            <td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" >&nbsp;<b>¢éͤÇÒÁÊèǹ·Õè 2 (¶éÒÁÕ)</b></td>
            <td width="0%" align="center"><strong>:</strong></td>
            <td width="75%"><textarea name="DocDetail2" id="DocDetail2" cols="70" rows="4"  <? echo showtextarea('DocDetail2',$InputThai); ?> ></textarea></td>
          </tr>
          <tr height=22>
            <td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" >&nbsp;<b>¢éͤÇÒÁÊèǹ·Õè 3 (¶éÒÁÕ)</b></td>
            <td width="0%" align="center"><strong>:</strong></td>
            <td width="75%"><textarea name="DocDetail3" id="DocDetail3" cols="70" rows="4"  <? echo showtextarea('DocDetail3',$InputThai); ?> ></textarea></td>
          </tr>
          <tr height=22>
            <td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" >&nbsp;<b>¢éͤÇÒÁÊèǹ·Õè 4 (¶éÒÁÕ)</b></td>
            <td width="0%" align="center"><strong>:</strong></td>
            <td width="75%"><textarea name="DocDetail4" id="DocDetail4" cols="70" rows="4"  <? echo showtextarea('DocDetail4',$InputThai); ?> ></textarea></td>
          </tr>
          <tr><td>&nbsp;</td></tr>
          <? if($dt=="1" || $dt=="3"){ ?>
          <tr height=22>
            <td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" >&nbsp;<b>(¤Óŧ·éÒÂ)</b></td>
            <td width="0%" align="center"><strong>:</strong></td>
            <td width="75%"><input type="text" name="DocEnd" id="DocEnd" size="60" onKeyUp="CheckInput('<? echo $InputThai?>','DocEnd')"></td>
          </tr>
          <? }?>
          <tr height=22>
            <td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" >&nbsp;<b><? echo ShowNameDeptSign($dt);?></b></td>
            <td width="0%" align="center"><strong>:</strong></td>
            <td width="75%"><input type="text" name="DocEndSign" id="DocEndSign" size="60" onKeyUp="CheckInput('<? echo $InputThai?>','DocEndSign')"></td>
          </tr>
          <? if($dt=="1" || $dt=="3" || $dt=="5" || $dt=="6" || $dt=="7" || $dt=="9" || $dt=="13"){ ?>
          <tr height=22>
            <td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" >&nbsp;<b>µÓá˹è§</b></td>
            <td width="0%" align="center"><strong>:</strong></td>
            <td width="75%"><input type="text" name="DocPosition" id="DocPosition" size="60" onKeyUp="CheckInput('<? echo $InputThai?>','DocPosition')"></td>
          </tr>
          <? }?>
          <? if($dt=="2" ||$dt=="10" || $dt=="11"){ ?>
          <tr height=22>
            <td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" >&nbsp;<b>(Çѹ à´×͹ »Õ)</b></td>
            <td width="0%" align="center"><strong>:</strong></td>
            <td ><script>DateInput('DocDateSign', true, 'DD/MM/YYYY','<?php echo getNowDateFw2();?>');</script></td>
          </tr>
          <? }?>
          <tr><td>&nbsp;</td></tr>
          <? if($dt=="1" || $dt=="2"){ ?>
          <tr height=22>
            <td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" >&nbsp;<b>ÊèǹÃÒª¡ÒÃà¨éҢͧàÃ×èͧ</b></td>
            <td width="0%" align="center"><strong>:</strong></td>
            <td ><input type="text" name="DocDeptOwner" id="DocDeptOwner" size="60" onKeyUp="CheckInput('<? echo $InputThai?>','DocDeptOwner')"></td>
          </tr>
          <? }?>
          <? if($dt=="1" || $dt=="2"){ ?>
          <tr height=22>
            <td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" >&nbsp;<b>â·Ã. ËÃ×Í·ÕèµÑé§</b></td>
            <td width="0%" align="center"><strong>:</strong></td>
            <td ><input type="text" name="DocTelOwner" id="DocTelOwner" size="60" onKeyUp="CheckInput('<? echo $InputThai?>','DocTelOwner')"></td>
          </tr>
          <? }?>
          <? if($dt=="1"){ ?>
          <tr height=22>
            <td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" >&nbsp;<b>â·ÃÊÒÃ</b></td>
            <td width="0%" align="center"><strong>:</strong></td>
            <td ><input type="text" name="DocFaxOwner" id="DocFaxOwner" size="60" onKeyUp="CheckInput('<? echo $InputThai?>','DocFaxOwner')"></td>
          </tr>
          <? }?>
          <? if($dt=="1"){ ?>
          <tr height=22>
            <td width="25%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" >&nbsp;<b>ÊÓà¹ÒÊ觠(¶éÒÁÕ)</b></td>
            <td width="0%" align="center"><strong>:</strong></td>
            <td ><input type="text" name="DocCopySend" id="DocCopySend" size="60" onKeyUp="CheckInput('<? echo $InputThai?>','DocCopySend')"></td>
          </tr>
          <? }?>
            <tr><td>&nbsp;</td></tr>
          <input type="hidden" name="dt" id="dt" value="<? echo $dt?>">
          <tr><td align=center colspan=3><input type="submit" name="gen" value="µÑÇÍÂèÒ§¡è͹¾ÔÁ¾ì" onclick="exportDoc('printhtml');">&nbsp;<input type="submit" name="gen" value="Êè§ÍÍ¡à»ç¹ word" onclick="return exportDoc('printword');">&nbsp;<input type="submit" name="ddgen" value="Êè§ÍÍ¡ä»Ë¹éÒŧ·ÐàºÕ¹" onclick="return exportRegis();">&nbsp;<input type="button" name="cancel" value="¡ÅѺ˹éÒËÅÑ¡" onClick="location.href = 'createDoc.php'"><input type="hidden" name="DocFrom" id="DocFrom">
          </td></tr>
        </table>
        </form>
</fieldset> 
</td></tr></table>
</body>
</html>
<script language="javascript">
function exportRegis(){
    dt=document.getElementById('dt').value;
    if(dt==1){ 
        rs=1;
        document.getElementById('DocFrom').value=document.getElementById('DocDeptCreate').value;
    }else if(dt==2){
        rs=1;
        document.getElementById('DocFrom').value=document.getElementById('DocTo').value;
    }else if(dt==3){
        rs=3;
        document.getElementById('DocFrom').value=document.getElementById('DocDeptCreate').value;
    }else if(dt==5){
        rs=5; 
    }else if(dt==6){
        rs=5; 
    }else if(dt==7){
        rs=5; 
    }else if(dt==9){
        rs=5; 
    }else if(dt==10){
        rs=5;
    }else if(dt==11){
        rs=5;
    }else if(dt==13){
        rs=5;
    }
    document.ff.action="addRegisDoc.php?RsID="+rs+"&DtID="+dt;
    return true;
}
function exportDoc(typeDoc){
    dt=document.getElementById('dt').value;
    if(dt==1){ 
        fn="exportDocHTML1.php"; 
    }else if(dt==2){
        fn="exportDocHTML2.php"; 
    }else if(dt==3){
        fn="exportDocHTML3.php"; 
    }else if(dt==5){
        fn="exportDocHTML5.php"; 
    }else if(dt==6){
        fn="exportDocHTML6.php"; 
    }else if(dt==7){
        fn="exportDocHTML7.php"; 
    }else if(dt==9){
        fn="exportDocHTML9.php"; 
    }else if(dt==10){
        fn="exportDocHTML10.php"; 
    }else if(dt==11){
        fn="exportDocHTML11.php"; 
    }else if(dt==13){
        fn="exportDocHTML13.php"; 
    }
    
    if(typeDoc=='printhtml'){    
        document.ff.action=fn+"?typeDoc=printhtml";
        document.ff.target='_blank';
        window('','formWin','left=20,top=20,width=1024,height=800,toolbar=1,resizable=1,scrollbars=1,menubar=1');
        document.ff.submit();
        return true;
    }else if(typeDoc=='printword'){
        document.ff.action=fn+"?typeDoc=printword";
        //document.ff.submit();
    }
    
    return true;
}
function checkFormat(){
        var agree=confirm("¤Ø³µéͧ¡Òúѹ·Ö¡¢éÍÁÙÅ¢éͤÇÒÁºÑ¹·Ö¡µèÍà¹×èͧ\ná¹è¹Í¹ãªèËÃ×ÍäÁè ?");
        if (agree){
            document.ff.action="exportDocHTML1.php";
            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.0065 ]--