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


Viewing file:     AddTreatprice.php (7.33 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start
();
 if (
session_is_registered("valid_user"))
 {
include(
"../include/FunctionDB.php");
include(
"admin_menu.php");
include(
"../include/Function.php");
 
ConnectDB();

?> 

<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<script language="JavaScript" type="text/JavaScript">
function browse()
{
form1.Imag1.src = form1.Img1.value;
}
function MM_reloadPage(init) {  //reloads the window if Na v4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->

function chk(c){
if (c.checked){
document.all.Soulmate.disabled=true;
document.all.Total_child.disabled=true;
}
else{
document.all.Soulmate.disabled=false;
document.all.Total_child.disabled=false;
}
}
var highlightcolor="lightyellow"
var ns6=document.getElementById&&!document.all
var previous=''
var eventobj
//Regular expression to highlight only form elements
var intended=/INPUT|TEXTAREA|SELECT|OPTION/

//Function to check whether element clicked is form element
function checkel(which){
if (which.style&&intended.test(which.tagName)){
if (ns6&&eventobj.nodeType==3)
eventobj=eventobj.parentNode.parentNode
return true
}
else
return false
}

//Function to highlight form element
function highlight(e){
eventobj=ns6? e.target : event.srcElement
if (previous!=''){
if (checkel(previous))
previous.style.backgroundColor=''
previous=eventobj
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
}
else{
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
previous=eventobj
}
}   
function handleEnter (field, event) {
        var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
        if (keyCode == 13) {
            var i;
            for (i = 0; i < field.form.elements.length; i++)
                if (field == field.form.elements[i])
                    break;
            i = (i + 1) % field.form.elements.length;
            field.form.elements[i].focus();
            return false;
        } 
        else
        return true;
    }    
</script>
<style type="text/css">
<!--
.style5 {color: #663366}
.style2 {    font-size: 14px;
    font-weight: bold;
}
.style6 {font-size: 14px}
-->
</style>
<table width="815" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="815" ><br />
        <fieldset>
        <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="Frmperson.php">หน้าหลัก</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><a href="TreatpriceList.php">ข้อมูลค่ารักษา</a></font></legend>
          <label> </label>
        <div align="center">
          <form action="InsertTreatment.php" method="post" name="form1" id="form1">
            <table width="477" height="205" border="0" cellpadding="0" cellspacing="1" bordercolor="#99CCFF">
              <tr bgcolor="#eeeeee">
                <td height="35" colspan="3"><div align="center"><font face="Tahoma, MS Sans Serif"><strong><font color="#003366" size="4">เพิ่มข้อมูลการรักษา</font></strong></font></div></td>
              </tr>
              <tr bgcolor="#eeeeee">
                <td width="23%" height="22"><div align="center" class="style5"><font size="2" face="Tahoma, MS Sans Serif">รหัส</font></div></td>
                <td width="4%"><div align="center"><font color="#FF0000" size="4" face="Tahoma, MS Sans Serif"><strong>*</strong></font></div></td>
                <td width="73%"><font face="Tahoma, MS Sans Serif">
                  <input name="Code_1" type="text" id="Code_1" size="15" />
                </font></td>
              </tr>
              <tr bgcolor="#eeeeee">
                <td height="22"><div align="center" class="style5"><font size="2" face="Tahoma, MS Sans Serif">หมวดการรักษา</font></div></td>
                <td><div align="center"><font color="#FF0000" size="4" face="Tahoma, MS Sans Serif"><strong>*</strong></font></div></td>
                <td><font size="2" face="Tahoma, MS Sans Serif">
                  <input type="radio" name="Name" value="ทั่วไป" onkeypress="return handleEnter(this, event)">
                  ทั่วไป
                  <input type="radio" name="Name" value="ประจำ" onkeypress="return handleEnter(this, event)">
                  ประจำ</font></td>
              </tr>
              <tr bgcolor="#eeeeee">
                <td height="22"><div align="center" class="style5"><font size="2" face="Tahoma, MS Sans Serif">รายการรักษา(Eg)</font></div></td>
                <td><div align="center"><font color="#FF0000" size="4" face="Tahoma, MS Sans Serif"><strong>*</strong></font></div></td>
                <td><font face="Tahoma, MS Sans Serif">
                  <input name="Description_1" type="text" id="Description_1" size="40" />
                </font></td>
              </tr>
              <tr bgcolor="#eeeeee">
                <td height="22"><div align="center" class="style5"><font size="2" face="Tahoma, MS Sans Serif">รายการรักษา(ไทย)</font></div></td>
                <td><div align="center"><font color="#FF0000" size="4" face="Tahoma, MS Sans Serif"><strong>*</strong></font></div></td>
                <td><font face="Tahoma, MS Sans Serif">
                  <input name="Description_2" type="text" id="Description_2" size="40" />
                </font></td>
              </tr>
              <tr bgcolor="#eeeeee">
                <td height="22"><div align="center" class="style5"><font size="2" face="Tahoma, MS Sans Serif">ประเภทการรักษา</font></div></td>
                <td><div align="center"><font color="#FF0000" size="4" face="Tahoma, MS Sans Serif"><strong>*</strong></font></div></td>
                <td><font face="Tahoma, MS Sans Serif">
                  <input name="Description_3" type="text" id="Description_3" size="40" />
                </font></td>
              </tr>
              <tr bgcolor="#eeeeee">
                <td height="22"><div align="center" class="style5"><font size="2" face="Tahoma, MS Sans Serif">ราคาค่ารักษา</font></div></td>
                <td><div align="center"><font color="#FF0000" size="4" face="Tahoma, MS Sans Serif"><strong>*</strong></font></div></td>
                <td><font face="Tahoma, MS Sans Serif">
                  <input name="Price" type="text" id="Price" size="5" />
                  บาท </font></td>
              </tr>
              <tr bgcolor="#eeeeee">
                <td height="29" colspan="3"><div align="center"> <font face="Tahoma, MS Sans Serif">
                    <input type="submit" name="Submit" value="  เพิ่ม  " />
                    <input type="reset" name="Reset" value="ยกเลิก " />
                </font></div></td>
              </tr>
            </table>
          </form>
        </div>
        </fieldset>
      <br />
        <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ :</b><br />
    </font></td>
  </tr>
</table>
<?php 
    
}
else
{
  echo
"<body bgcolor=\"#CCCCCC\">";
 echo
"<meta http-equiv=\"refresh\" content=\"3;URL=../login.php\" target=\"mainFrame\">\n";
    echo
"<center>";
  echo
"<br><br><br><b><font face=\"Tahoma\" size=\"4\" color=\"#FF0000\">Please Login</font> </b><br>";
   echo
"<br><br><font face=\"Tahoma\" size=\"10\" color=\"#000000\"> ERROR 404 PERMISION DENY</font><br>";
  echo
"<br><font face=\"Tahoma\" size=\"4\" color=\"#000000\"> คุณไม่มสิทธ์ใช้งาน</font>";
      echo
"</center>";
      echo
"</body>";

?>

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