!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.4.18 (Ubuntu). PHP/7.0.33-0ubuntu0.16.04.16 

uname -a: Linux digifus 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/almazenServer/application/third_party/   drwxr-xr-x
Free 10.11 GB of 29.4 GB (34.38%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     pdf_context.php (3.43 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
//
//  FPDI - Version 1.5.2
//
//    Copyright 2004-2014 Setasign - Jan Slabon
//
//  Licensed under the Apache License, Version 2.0 (the "License");
//  you may not use this file except in compliance with the License.
//  You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
//  Unless required by applicable law or agreed to in writing, software
//  distributed under the License is distributed on an "AS IS" BASIS,
//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//  See the License for the specific language governing permissions and
//  limitations under the License.
//

/**
 * Class pdf_context
 */
class pdf_context
{
    
/**
     * Mode
     *
     * @var integer 0 = file | 1 = string
     */
    
protected $_mode 0;

    
/**
     * @var resource|string
     */
    
public $file;

    
/**
     * @var string
     */
    
public $buffer;

    
/**
     * @var integer
     */
    
public $offset;

    
/**
     * @var integer
     */
    
public $length;

    
/**
     * @var array
     */
    
public $stack;

    
/**
     * The constructor
     *
     * @param resource $f
     */
    
public function __construct(&$f)
    {
        
$this->file =& $f;
        if (
is_string($this->file))
            
$this->_mode 1;

        
$this->reset();
    }

    
/**
     * Get the position in the file stream
     *
     * @return int
     */
    
public function getPos()
    {
        if (
$this->_mode == 0) {
            return 
ftell($this->file);
        } else {
            return 
0;
        }
    }

    
/**
     * Reset the position in the file stream.
     *
     * Optionally move the file pointer to a new location and reset the buffered data.
     *
     * @param null $pos
     * @param int $l
     */
    
public function reset($pos null$l 100)
    {
        if (
$this->_mode == 0) {
            if (!
is_null($pos)) {
                
fseek ($this->file$pos);
            }

            
$this->buffer $l fread($this->file$l) : '';
            
$this->length strlen($this->buffer);
            if (
$this->length $l)
                
$this->increaseLength($l $this->length);
        } else {
            
$this->buffer $this->file;
            
$this->length strlen($this->buffer);
        }
        
$this->offset 0;
        
$this->stack = array();
    }

    
/**
     * Make sure that there is at least one character beyond the current offset in the buffer.
     *
     * To prevent the tokenizer from attempting to access data that does not exist.
     *
     * @return bool
     */
    
public function ensureContent()
    {
        if (
$this->offset >= $this->length 1) {
            return 
$this->increaseLength();
        } else {
            return 
true;
        }
    }

    
/**
     * Forcefully read more data into the buffer
     *
     * @param int $l
     * @return bool
     */
    
public function increaseLength($l 100)
    {
        if (
$this->_mode == && feof($this->file)) {
            return 
false;
        } else if (
$this->_mode == 0) {
            
$totalLength $this->length $l;
            do {
                
$toRead $totalLength $this->length;
                if (
$toRead 1)
                    break;

                
$this->buffer .= fread($this->file$toRead);
            } while (((
$this->length strlen($this->buffer)) != $totalLength) && !feof($this->file));

            return 
true;
        } else {
            return 
false;
        }
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0061 ]--