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


Viewing file:     InsertActivity.php (3.5 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include("../../include/FunctionDB.php");
 
ConnectDB();
$Flag true;    
$Activity_name htmlspecialchars(trim($_POST[Activity_name]));
$Period htmlspecialchars(trim($_POST[Period]));
$Target htmlspecialchars(trim($_POST[Target]));
$Objective htmlspecialchars(trim($_POST[Objective]));
$Result_oper $_POST[Result_oper];
$Dif_result  $_POST[Budget] - $_POST[Budget_use];
///////////////////// check name
if ($Activity_name =="")
{
$msg .="<li>กรุณากรอกชื่อ กิจกกรม/โครงการ ";
$button ="<input type=\"button\" value=\"Back to Edit\" onclick=\"history.back();\" style=\"font-weight:bold;color:#FFF;background-color:#036;border-style:outset;border-color:#69F;font-family:Tohoma;\">";
$Flag false;
}
/////////////////// 
if ($Activity_type  =="")
{
$msg .="<li>กรุณาเลือก ชนิด กิจกกรม/โครงการ";
$button ="<input type=\"button\" value=\"Back to Edit\" onclick=\"history.back();\" style=\"font-weight:bold;color:#FFF;background-color:#036;border-style:outset;border-color:#69F;font-family:Tohoma;\">";
$Flag false;
}

///////////////////////// Check Status to Insert Data /////////////////////////////
   
if( $Flag)
    {
     
//Activity_name  Activity_type  Perform  Activity  Period  Fund  Budget_use  Dif_result  Source  Target  Amount  Supervisor  Duty  Objective  Index_mature  Spec  Affect_class  Asses  Result_oper 
  
InsertActivity($Activity_name,$Activity_type,$Perform,$Activity,$Period,$Budget,$Budget_use,$Dif_result,$Source,$Target,$Amount,$Supervisor,$Duty,$Objective,$Index_mature,$Affect_class,$Ec41_1,$Ec41_2 ,$Ec41_3,$Ec41_4,$Ec41_5,$Ec41_6,$Ec41_7,$Ec41_8,$Ec41_9,$Ec41_10,$Ec41_11,$Ec42_1,$Ec42_2,$Ec42_3,$Ec42_4,$Ec42_5,$Ec42_6,$Ec42_7,$Ec42_8,$Ec42_9,$Ec42_10,$Ec42_11,$Ec42_12,$Ec42_13,$Ec42_14,$Ec42_15,$Ec43_1,$Ec43_2,$Ec43_3,$Ec43_4,$Ec43_5,$Ec43_6,$Ec43_7,$Ec43_8,$Ec43_9,$Ec43_10,$Ec44_1,$Ec44_2,$Ec44_3,$Ec44_4,$Ec44_5,$Ec44_6,$Ec44_7,$Ec44_8,$Ec44_9,$Ec44_10,$Ec44_11,$Ec44_12,$Ec44_13,$Ec44_14,$Ec44_15,$Result_oper);
// InsertEs($code,$Ec41_1,$Ec41_2 ,$Ec41_3,$Ec41_4,$Ec41_5,$Ec41_6,$Ec41_7,$Ec41_8,$Ec41_9,$Ec41_10,$Ec41_11);
     
      
$msg.="<li>ระบบจัดเก็บข้อมูลของท่านเรียบร้อยแล้ว";
       echo
"<meta http-equiv=\"refresh\" content=\"1;URL=ActivityList.php\">\n";
     }
    
CloseDB();
?>
<html>
<head>
<title>Student Activity Detail</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link rel="stylesheet" href="../../css/style1.css" type="text/css">
</head>
<body bgcolor="#F4F1FE">
<form>
<br>
  <table width="57%" border="0" cellspacing="0"cellpadding="2"align="center">
    <tr>
      <td><div align="center"><span><b><font color="#003366" size="4" face="Tahoma">::แบบฟอร์มการโครงการ/กิจกรรมนักศึกษา::</font></b></span></div></td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="1"cellpadding="0"align="center"bordercolor="#0B62D9" class="table">
          <tr> 
            <td bgcolor="#CCCCFF"> <div align="center"><b><font color="#003399" size="4" face="Tahoma">ระบบแจ้ง</font></b></div></td>
          </tr>
          <tr> 
            <td bgcolor="#000000"> <table width="90%" border="0" cellspacing="0"cellpadding="2"align="center">
                <tr> 
                  <td><font color="#FFFFFF"><strong><span><font size="4" face="Tahoma"><?php echo $msg;?></font></span></strong></font></td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td bgcolor="#CCCCFF"> <div align="center"><b><font color="#CCFF00"><?php echo $button;?></font></b></div></td>
          </tr>
        </table>
</td>
</tr>
</table>
<br>
<br>
</form>
</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.0058 ]--