!C99Shell v. 1.0 pre-release build #13!

Software: Apache. PHP/5.5.15 

uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 

SYSTEM 

Safe-mode: OFF (not secure)

E:\xampp\xampp\htdocs\jaime\Xcode\AccessControl\   drwxrwxrwx
Free 7.97 GB of 239.26 GB (3.33%)
Detected drives: [ a ] [ c ] [ d ] [ e ] [ f ]
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     14.php (1.79 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
// Include MySQL class
require_once ('Database/MySQL.php');

// Include Session class
require_once ('Session/Session.php');

// Include Auth class
require_once ('AccessControl/Auth.php');

// Include User class
require_once ('AccessControl/User.php');

$host='localhost';   // Hostname of MySQL server
$dbUser='harryf';    // Username for MySQL
$dbPass='secret';    // Password for user
$dbName='sitepoint'// Database name

// Instantiate MySQL connection
$db=& new MySQL($host,$dbUser,$dbPass,$dbName);

// Instantiate the Authentication class
$auth=& new Auth($db,'13.php','secret');

// Instantiate the User class
$user=& new User($db);

// Switch on the view GET variable
switch (@$_GET['view']) {
    case 
'create':
        
// Define permission (corresponding to a name in permissions table)
        
$permission='create';
        
// Create a message for users with access to this area
        
$msg='From here you can create new content';
        break;
    case 
'edit':
        
$permission='edit';
        
$msg='From here you can edit existing content';
        break;
    case 
'delete':
        
$permission='delete';
        
$msg='From here you can delete existing content';
        break;
    default:
        
$permission='view';
        
$msg='From here you can read existing content';
}

// Check the user's permission. If inadequate, change the msg
if ( !$user->checkPermission($permission) ) {
    
$msg='You do not have permission to do this';
}
?>
<p><?php echo ( $msg ); ?>
<p>
<a href="<?php echo ( $_SERVER['PHP_SELF'] ); ?>">Main</a> |
<a href="<?php echo ( $_SERVER['PHP_SELF'] ); ?>?view=create">Create</a> |
<a href="<?php echo ( $_SERVER['PHP_SELF'] ); ?>?view=edit">Edit</a> |
<a href="<?php echo ( $_SERVER['PHP_SELF'] ); ?>?view=delete">Delete</a>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0156 ]--