!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.32 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:     kanji-encoding.lib.php (3.9 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
*/ /** * Gets the php internal encoding codes and sets the available encoding * codes list * 2002/1/4 by Y.Kawada * * @global string the current encoding code * @global string the available encoding codes list * * @return boolean always true */ function PMA_internal_enc_check() { global $internal_enc, $enc_list; $internal_enc = mb_internal_encoding(); if ($internal_enc == 'EUC-JP') { $enc_list = 'ASCII,EUC-JP,SJIS,JIS'; } else { $enc_list = 'ASCII,SJIS,EUC-JP,JIS'; } return TRUE; } // end of the 'PMA_internal_enc_check' function /** * Reverses SJIS & EUC-JP position in the encoding codes list * 2002/1/4 by Y.Kawada * * @global string the available encoding codes list * * @return boolean always true */ function PMA_change_enc_order() { global $enc_list; $p = explode(',', $enc_list); if ($p[1] == 'EUC-JP') { $enc_list = 'ASCII,SJIS,EUC-JP,JIS'; } else { $enc_list = 'ASCII,EUC-JP,SJIS,JIS'; } return TRUE; } // end of the 'PMA_change_enc_order' function /** * Kanji string encoding convert * 2002/1/4 by Y.Kawada * * @param string the string to convert * @param string the destinasion encoding code * @param string set 'kana' convert to JIS-X208-kana * * @global string the available encoding codes list * * @return string the converted string */ function PMA_kanji_str_conv($str, $enc, $kana) { global $enc_list; if ($enc == '' && $kana == '') { return $str; } $nw = mb_detect_encoding($str, $enc_list); if ($kana == 'kana') { $dist = mb_convert_kana($str, 'KV', $nw); $str = $dist; } if ($nw != $enc && $enc != '') { $dist = mb_convert_encoding($str, $enc, $nw); } else { $dist = $str; } return $dist; } // end of the 'PMA_kanji_str_conv' function /** * Kanji file encoding convert * 2002/1/4 by Y.Kawada * * @param string the name of the file to convert * @param string the destinasion encoding code * @param string set 'kana' convert to JIS-X208-kana * * @return string the name of the converted file */ function PMA_kanji_file_conv($file, $enc, $kana) { if ($enc == '' && $kana == '') { return $file; } $tmpfname = tempnam('', $enc); $fpd = fopen($tmpfname, 'wb'); $fps = fopen($file, 'r'); PMA_change_enc_order(); while (!feof($fps)) { $line = fgets($fps, 4096); $dist = PMA_kanji_str_conv($line, $enc, $kana); fputs($fpd, $dist); } // end while PMA_change_enc_order(); fclose($fps); fclose($fpd); unlink($file); return $tmpfname; } // end of the 'PMA_kanji_file_conv' function /** * Defines radio form fields to switch between encoding modes * 2002/1/4 by Y.Kawada * * @param string spaces character to prepend the output with * * @return string xhtml code for the radio controls */ function PMA_set_enc_form($spaces) { return "\n" . $spaces . 'non' . "\n" . $spaces . 'EUC' . "\n" . $spaces . 'SJIS' . "\n" . $spaces . ' ' . $GLOBALS['strEncto'] . '
' . "\n" . $spaces . '' . "\n" . $spaces . ' ' . $GLOBALS['strXkana'] . '
' . "\n"; } // end of the 'PMA_set_enc_form' function PMA_internal_enc_check(); ?>

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