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


Viewing file:     jpgraph_canvas.php (2.19 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*=======================================================================
// File:     JPGRAPH_CANVAS.PHP
// Description:    Canvas drawing extension for JpGraph
// Created:     2001-01-08
// Author:    Johan Persson (johanp@aditus.nu)
// Ver:        $Id: jpgraph_canvas.php 21 2005-05-30 20:35:34Z ljp $
//
// Copyright (c) Aditus Consulting. All rights reserved.
//========================================================================
*/

//===================================================
// CLASS CanvasGraph
// Description: Creates a simple canvas graph which
// might be used together with the basic Image drawing
// primitives. Useful to auickoly produce some arbitrary
// graphic which benefits from all the functionality in the
// graph liek caching for example. 
//===================================================
class CanvasGraph extends Graph {
//---------------
// CONSTRUCTOR
    
function CanvasGraph($aWidth=300,$aHeight=200,$aCachedName="",$timeout=0,$inline=1) {
    
$this->Graph($aWidth,$aHeight,$aCachedName,$timeout,$inline);
    }

//---------------
// PUBLIC METHODS    

    
function InitFrame() {
    
$this->StrokePlotArea();
    }

    
// Method description
    
function Stroke($aStrokeFileName="") {
    if( 
$this->texts != null ) {
        for(
$i=0$i<count($this->texts); ++$i) {
        
$this->texts[$i]->Stroke($this->img);
        }
    }                
    
$this->StrokeTitles();

    
// Should we do any final image transformation
    
if( $this->iImgTrans ) {
        if( !
class_exists('ImgTrans') ) {
        require_once(
'jpgraph_imgtrans.php');
        }
        
        
$tform = new ImgTrans($this->img->img);
        
$this->img->img $tform->Skew3D($this->iImgTransHorizon,$this->iImgTransSkewDist,
                         
$this->iImgTransDirection,$this->iImgTransHighQ,
                         
$this->iImgTransMinSize,$this->iImgTransFillColor,
                         
$this->iImgTransBorder);
    }
    

    
// If the filename is given as the special _IMG_HANDLER
    // then the image handler is returned and the image is NOT
    // streamed back
    
if( $aStrokeFileName == _IMG_HANDLER ) {
        return 
$this->img->img;
    }
    else {
        
// Finally stream the generated picture                    
        
$this->cache->PutAndStream($this->img,$this->cache_name,$this->inline,$aStrokeFileName);
        return 
true;
    }
    }
// Class
/* EOF */
?>

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