!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/   drwxr-xr-x
Free 52.3 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:     string_type_native.lib.php (4.04 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * Specialized String Functions for phpMyAdmin
 *
 * Copyright 2002 Robin Johnson <robbat2@users.sourceforge.net>
 * http://www.orbis-terrarum.net/?l=people.robbat2
 *
 * Defines a set of function callbacks that have a pure C version available if
 * the "ctype" extension is available, but otherwise have PHP versions to use
 * (that are slower).
 *
 * The SQL Parser code relies heavily on these functions.
 *
 * @package phpMyAdmin-StringType-Native
 */

/**
 * Checks if a character is an alphanumeric one
 *
 * @uses    PMA_STR_isUpper()
 * @uses    PMA_STR_isLower()
 * @uses    PMA_STR_isDigit()
 * @param   string   character to check for
 * @return  boolean  whether the character is an alphanumeric one or not
 */
function PMA_STR_isAlnum($c)
{
    return (
PMA_STR_isUpper($c) || PMA_STR_isLower($c) || PMA_STR_isDigit($c));
// end of the "PMA_STR_isAlnum()" function

/**
 * Checks if a character is an alphabetic one
 *
 * @uses    PMA_STR_isUpper()
 * @uses    PMA_STR_isLower()
 * @param   string   character to check for
 * @return  boolean  whether the character is an alphabetic one or not
 */
function PMA_STR_isAlpha($c)
{
    return (
PMA_STR_isUpper($c) || PMA_STR_isLower($c));
// end of the "PMA_STR_isAlpha()" function

/**
 * Checks if a character is a digit
 *
 * @uses    PMA_STR_numberInRangeInclusive()
 * @uses    ord()
 * @param   string   character to check for
 * @return  boolean  whether the character is a digit or not
 */
function PMA_STR_isDigit($c)
{
    
$ord_zero 48//ord('0');
    
$ord_nine 57//ord('9');
    
$ord_c    ord($c);

    return 
PMA_STR_numberInRangeInclusive($ord_c$ord_zero$ord_nine);
// end of the "PMA_STR_isDigit()" function

/**
 * Checks if a character is an upper alphabetic one
 *
 * @uses    PMA_STR_numberInRangeInclusive()
 * @uses    ord()
 * @param   string   character to check for
 * @return  boolean  whether the character is an upper alphabetic one or not
 */
function PMA_STR_isUpper($c)
{
    
$ord_zero 65//ord('A');
    
$ord_nine 90//ord('Z');
    
$ord_c    ord($c);

    return 
PMA_STR_numberInRangeInclusive($ord_c$ord_zero$ord_nine);
// end of the "PMA_STR_isUpper()" function

/**
 * Checks if a character is a lower alphabetic one
 *
 * @uses    PMA_STR_numberInRangeInclusive()
 * @uses    ord()
 * @param   string   character to check for
 * @return  boolean  whether the character is a lower alphabetic one or not
 */
function PMA_STR_isLower($c)
{
    
$ord_zero 97;  //ord('a');
    
$ord_nine 122//ord('z');
    
$ord_c    ord($c);

    return 
PMA_STR_numberInRangeInclusive($ord_c$ord_zero$ord_nine);
// end of the "PMA_STR_isLower()" function

/**
 * Checks if a character is a space one
 *
 * @uses    PMA_STR_numberInRangeInclusive()
 * @uses    ord()
 * @param   string   character to check for
 * @return  boolean  whether the character is a space one or not
 */
function PMA_STR_isSpace($c)
{
    
$ord_space 32;    //ord(' ')
    
$ord_tab   9;     //ord('\t')
    
$ord_CR    13;    //ord('\n')
    
$ord_NOBR  160;   //ord('U+00A0);
    
$ord_c     ord($c);

    return (
$ord_c == $ord_space
         
|| $ord_c == $ord_NOBR
         
|| PMA_STR_numberInRangeInclusive($ord_c$ord_tab$ord_CR));
// end of the "PMA_STR_isSpace()" function

/**
 * Checks if a character is an hexadecimal digit
 *
 * @uses    PMA_STR_numberInRangeInclusive()
 * @uses    ord()
 * @param   string   character to check for
 * @return  boolean  whether the character is an hexadecimal digit or not
 */
function PMA_STR_isHexDigit($c)
{
    
$ord_Aupper 65;  //ord('A');
    
$ord_Fupper 70;  //ord('F');
    
$ord_Alower 97;  //ord('a');
    
$ord_Flower 102//ord('f');
    
$ord_zero   48;  //ord('0');
    
$ord_nine   57;  //ord('9');
    
$ord_c      ord($c);

    return (
PMA_STR_numberInRangeInclusive($ord_c$ord_zero$ord_nine)
         || 
PMA_STR_numberInRangeInclusive($ord_c$ord_Aupper$ord_Fupper)
         || 
PMA_STR_numberInRangeInclusive($ord_c$ord_Alower$ord_Flower));
// end of the "PMA_STR_isHexDigit()" function

?>

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