!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/intranet/   drwxrwxrwx
Free 51.23 GB of 127.8 GB (40.08%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     members.php (3.06 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
session_start
();
include_once(
'config.php');      
chkLogin();

getFullName($_SESSION[uid], $_SESSION[gid]);
?>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link href="style.css" rel="stylesheet" type="text/css">
<title>-== : ยินดีต้อนรับระบบ Intranet BCNU : ==-</title>
<script language="JavaScript">

function del (object) {
if (confirm("คุณต้องการจะลบชื่อจากระบบใช่หรือไม่") ==true) {
return true;
}
return false;
}

</script>
</head>

<body leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0">
<table width="755" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="2" align="center"><?php include("header.php");?></td>
  </tr>
  <tr>
    <td colspan="2" background="images/bg_table.png" height="30"><div align="right" class="f3">
     ยินดีต้อนรับ&nbsp;&nbsp;คุณ&nbsp;<?=getFullName($_SESSION[gid]); ?>
    &nbsp;&nbsp;</div></td>
  </tr>
  <tr>
    <td width="30%" bgcolor="#FFEECC">&nbsp;</td>
    <td bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
  
  <tr>
    <td align="center" valign="top" bgcolor="#FFEECC"><?php include("menu_admin.php");?></td>
    <td valign="top" bgcolor="#FFFFFF">
    <?php
    connDB
();
    
$sql ="select * from person";
    
$result mysql_query($sql);
    
$num_rows mysql_num_rows($result);
     echo (
"<div align=center class=f7>มีจำนวนทั้งหมด&nbsp;$num_rows&nbsp;คน</div>");
    echo (
"<br>");
    echo (
"<table width='95%' border='0' align='center' cellpadding='0' cellspacing='1' 
    bgcolor='#E3F0FC'>"
);
          echo (
"<tr>");
          echo (
"<td align=center class='f7' height='20'>ลำดับ</td>");
          echo (
"<td align=center class='f7' height='20'>ชื่อ - นามสกุล</td>");
          echo (
"<td align=center class='f7' height='20'>รายละเอียด</td>");
          echo (
"<td align=center class='f7' height='20'>แก้ไข</td>");
          echo (
"<td align=center class='f7' height='20'>ลบ</td>");
    
$i=0;
    while (
$record=mysql_fetch_array($result)) {
    
$i ++;
    echo (
"<tr>");
    echo (
"<td align=center class=f6 bgcolor='#FFFFFF' height='20'>$i</td>");
    echo (
"<td class=f6 bgcolor='#FFFFFF' height='20'>&nbsp;$record[prefix] $record[fname]&nbsp;&nbsp;$record[lname]</td>");
       echo (
"<td width='15%' align=center class=f6 bgcolor='#FFFFFF' height='20'><a href='detail.php?pid=$record[pid]'>view</a></td>");
       echo (
"<td width='15%' align=center class=f6 bgcolor='#FFFFFF' height='20'><a href='edit.php?pid=$record[pid]'>view</a></td>");
       echo (
"<td width='15%' align=center class=f6 bgcolor='#FFFFFF' height='20'><a href='delete.php?pid=$record[pid]'
    onClick=\"return del(this)\">view</a></td>"
);
    echo (
"</tr>");
    }
    echo (
"</table>");
    
?></td>
  </tr>
  <tr>
    <td bgcolor="#FFEECC">&nbsp;</td>
    <td bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
  <tr>
    <td bgcolor="#FFEECC">&nbsp;</td>
    <td bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
  <tr>
    <td bgcolor="#FFEECC">&nbsp;</td>
    <td bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" align="center"><?php include("footer.php");?></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 ::
 
[ 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.0178 ]--