!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:     addTypeQuestion.php (4.09 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "template.php";
showHeader();
//include_once "../class/clsConnection.php";
include_once "../class/clsAssessForm.php";
include_once 
"../class/clsSectionAll.php";
include_once 
"../class/clsSectionRQ.php";
include_once 
"../class/clsSectionTQ.php";
?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">

<? //echo "assid = ". $assid; ?>
<br>
<form name="FormAddType" method="post" action="processSectionAll.php">
<table  width=90%  align=center>
<tr><td>
<fieldset>
 <legend><a href="showListAss.php">รายการแบบประเมิน</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"><a href="createForm.php?assid=<? echo $assid ?>">สร้างฟอร์มแบบประเมิน</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"></font></font> เพิ่มส่วนการประเมิน</legend><p> 
<?

$oC 
= new clsConnection($GLOBALS['HOST'], $GLOBALS['DB_EASS'], $GLOBALS['USER_EASS'], $GLOBALS['PASSWORD_EASS']);

//---นับจำนวนเพื่อกำหนดลำดับของแต่ละชนิดของแบบประเมิน  โดยเพิ่มค่าจำนวนไป 1
//---เพื่อส่งต่อไปยังหน้า processAssForm เพื่อนำค่าลำดับ (หลังจากที่เพิ่มแล้ว) 
//----ใส่ฐานข้อมูลในแต่ละชนิดคำถาม
$oSA = new SectionAll($oC);
$maxSA $oSA->getMaxSeqSA($assid);
$sequence $maxSA+1;

$oSRQ = new SectionRQ($oC);
$numSRQ $oSRQ->RSCountSectionRQ($assid);
$sequenceRQ $numSRQ+1;

$oSTQ = new SectionTQ($oC);
$numSTQ $oSTQ->RSCountSectionTQ($assid);
$sequenceTQ $numSTQ+1;
$typeQuestion 0;
//echo " แบบประเมินที่ : ".$assid;
//echo "<br>  maxSA = ".$maxSA;
//echo "<br>  numSRQ = ".$numSRQ;
//echo "<br>  numSTQ = ".$numSTQ;

?>
<br>
    <input type="hidden" name="method" value="add">
    <input type="hidden" name="assid" value="<?=$assid?>">
    <input type="hidden" name="sequence" value="<?=$sequence?>">
    <input type="hidden" name="sequenceRQ" value="<?=$sequenceRQ?>">
    <input type="hidden" name="sequenceTQ" value="<?=$sequenceTQ?>"><br>
        <table width="400" border="0" align="center">
          <tr> 
            <td height="24" colspan="3" align="center" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_4"];?>"><strong>เพิ่มส่วนของการประเมิน</strong></td>
          </tr>
          <tr> 
            <td colspan="3">&nbsp;</td>
          </tr>
          <tr> 
            <td colspan="3"><table align="center"> <tr><td width="333"><fieldset>
              <legend>เลือกกำหนดลักษณะของคำถาม</legend>
              <table width="303" align="center">
                <tr> 
                  <td width="296"><input name="typeQuestion" type="radio"  id="typeQuestion" value="1" onclick="radioClick(1)" checked>
                    คำถามปลายปิด (เลือกตอบอย่างใดอย่างหนึ่ง)</td>
                </tr>
                <tr> 
                  <td width="296" height="25"><input name="typeQuestion" type="radio"  id="typeQuestion" value="2" onclick="radioClick(2)">
                    คำถามปลายเปิด (ให้เลือกตอบโดยอิสระ)</td>
                </tr>
              </table>
              </fieldset></td></tr> </table>
            </td>
          </tr>
          <tr>
            <td colspan="3" align = "center">&nbsp;</td>
          </tr>
          <tr> 
            <td colspan="3" align = "center"><input type="submit" name="Submit" value="ตกลง" onClick="return checkFormat()"> 
              <input type="button" name="cancel" value="ยกเลิก" onClick="location.href = 'createForm.php?assid=<? echo $assid ?>'"></td>
          </tr>
          <tr> 
            <td width="163">&nbsp;</td>
            <td width="241" colspan="2">&nbsp;</td>
          </tr>
        </table>
        <br>
    </fieldset><br>
        <font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"><b>หมายเหตุ 
        : </b>ส่วนของแบบประเมินเป็นส่วนที่กำหนดลักษณะของการประเมินชนิดนั้นๆ </font></table>
</form>
<? showFooter(); ?>

<script language="javascript">
function radioClick(val){
    document.getElementById('typeQuestion').value=val;
}
function checkFormat(){
    if(document.getElementById('typeQuestion').value ==""){
        alert("กรุณาเลือกลักษณะของคำถาม !");
        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 ::
 
[ 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.0064 ]--