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


Viewing file:     Addcomment.php (6.92 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

    
    
    
/**  Define Validate Access  */
    
define'_VALID_ACCESS');

    
        
/**  Configuration  */
        
require_once( "./configuration.php" );
        require_once( 
$_Config_absolute_path "/includes/framework.php" );
        require_once( 
"./includes/Function.php" );
    
        
/**  Create Database Object  */
        
$dbObj = new DBConn;

        
//=== SESSION
        
$Username $valid_user
        
        
        
/**  Config Table for This Page  */
        
$myTable1 "personal_tb";
        
//$myTable2 = "training_tb";
        
        
        
        /**  Table  -->  personal_tb  */
        //$query1 = " SELECT *  FROM $myTable1  WHERE Username='$Username' ";
    //    $result1 = $dbObj->execQuery($query1);
    //    $rss = $dbObj->fetchArray($result1);
        
        
    
 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
<link href="./css/default.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="./js/utilities.js"></script>
<script language="javascript">
function checkData() {
var formObj = document.myForm;
    if( ( formObj.Info_name.value == "" ) && ( formObj.Info_detail.value == "" ) ) { alert("กรุณากรอกข้อมูลให้ครบด้วยค่ะ" ); formObj.Info_name.style.backgroundColor='#F1F9FC'; formObj.Info_detail.focus();    return false; }
     if( formObj.Info_name.value == "" ) { alert("กรุณากรอก เรื่อง"); formObj.Info_name.style.backgroundColor='#F1F9FC'; formObj.Info_name.focus(); return false; } 
     if( formObj.Info_detail.value == "" ) { alert("กรุณากรอก รายละเอียด"); formObj.Info_detail.style.backgroundColor='#F1F9FC'; formObj.Info_detail.focus(); return false; } 
    
}
</script>

<title>สายตรงผู้อำนวยการ</title>

</head>

<body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0">
<?php
    
include("templates/incHeader.php");
?>
<table width="1003" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="203" align="left" valign="top" style="padding:10px 0px 0px 5px"><?php include( "templates/incMainMenuLeft.php" );?></td>
    <td width="800" height="440" align="center" valign="top" style="padding:10px 0px 5px 10px"><fieldset>
     <table width="780" border="0" cellspacing="0" cellpadding="0">
      <form id="myForm" name="myForm" method="post" action="InsertComment.php" onSubmit="return checkData();">
      <tr>
        <td height="5"></td>
      </tr>
      <tr>
        <td height="30" background="./images/background/bg-head-topic-w780.gif" class="PADDING-LEFT-10"><div align="left"><strong><a href="index.php">หน้าหลัก</a></strong> <strong>&raquo; <span class="NOTE">สายตรงถึงผู้อำนวยการ</span></strong></div></td>
        </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="150" align="center"><table width="95%" border="0" align="center" cellpadding="1" cellspacing="8" style="border:0px solid gray">
                      <tr bgcolor="#EEEEEE">
                        <td height="22%" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;</td>
                        <td bgcolor="#FFFFFF">ข้อความนี้จะไม่แสดงผ่านหน้าเวป</td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td height="22%" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">เรื่อง</td>
                        <td width="71%" bgcolor="#FFFFFF"><input name="Info_name" type="text" id="Info_name" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="50" /></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td height="102" align="right" valign="top" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10 style2">รายละเอียด</td>
                        <td bgcolor="#FFFFFF"><textarea name="Info_detail" cols="50" rows="5" id="Info_detail" class="d"></textarea> 
                        <script>QBPATH='./editor'; VISUAL=1; SECURE=0;</script>
                         <script src='./editor/quickB.js'></script> 
                       <script src='./editor/tabedit.js'></script>                        </td>
                      </tr>
                      <tr bgcolor="#D2F49F" >
                        <td bgcolor="#FFFFFF"><div align="right">ชื่อ/นามแฝง</div></td>
                        <td bgcolor="#FFFFFF"><input name="Supervisor" type="text" id="Supervisor" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="50" /></td>
                      </tr>
                      <tr bgcolor="#D2F49F" >
                        <td width="27%" bgcolor="#FFFFFF"><div align="right"><span class="style1">E-mail</span></div></td>
                        <td width="71%" bgcolor="#FFFFFF"><input name="Email" type="text" id="Email" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="50" /> 
                          ( 
                        <span class="TEXT-RED10">กรุณากรอกถ้าต้องการให้ตอบกลับ)</span></td>
                      </tr>
                      <tr bgcolor="#D2F49F" >
                        <td align="center" bgcolor="#FFFFFF">&nbsp;</td>
                        <td align="center" bgcolor="#FFFFFF">&nbsp;</td>
                      </tr>
                      <tr bgcolor="#D2F49F" >
                        <td align="center" bgcolor="#FFFFFF">&nbsp;</td>
                        <td align="center" bgcolor="#FFFFFF"><div align="left"><font color="#0000FF" size="2" face="Tahoma">รหัสป้องกัน spam
                          <input type="text" name="antispamcode" size="4" maxlength="10" />
                          <img src="antispam/antispam.php" /></font></div></td>
                      </tr>
                      <tr bgcolor="#D2F49F" >
                        <td align="center" bgcolor="#FFFFFF">&nbsp;</td>
                        <td align="center" bgcolor="#FFFFFF">&nbsp;</td>
                      </tr>
                      <tr bgcolor="#D2F49F" >
                        <td height="25" align="center" bgcolor="#FFFFFF">&nbsp;</td>
                        <td height="25" align="left" bgcolor="#FFFFFF"><input type="submit" name="Submit" value="บันทึก" class="CURSOR-HAND WIDTH60" />
                          &nbsp;
                          <input name="Reset" type="reset" id="Reset" value="รีเซ็ต" class="CURSOR-HAND WIDTH60" /> &nbsp;
                          &nbsp;<input name="Button" type="button" id="Reset" value="ยกเลิก" class="CURSOR-HAND WIDTH60" onclick="location.href='TrainingList.php?Teacher_code<?=$Teacher_code;?>&amp;page=<?=$page;?>'" /></td>
                </tr>
            </table></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr></form>
    </table>
   </fieldset></td>
  </tr>
</table>
<?php include("./templates/incFooter.php"); ?>
</body>
</html>
<?php
    
/**  Free Resource */
    
$dbObj->freeresult($result1);
    
    
/**  Close the Database  */
    
$dbObj->disconn();
    
    
/**  Unset Class  */
    
unset($dbObj);
?>

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