!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/domains/classify.picotech.app/public_html/vendor/pestphp/pest/src/Support/   drwxr-xr-x
Free 29.06 GB of 117.98 GB (24.63%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Str.php (3.14 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

declare(strict_types=1);

namespace 
Pest\Support;

/**
 * @internal
 */
final class Str
{
    
/**
     * Pool of alpha-numeric characters for generating (unsafe) random strings
     * from.
     */
    
private const POOL '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';

    
/**
     * @var string
     */
    
private const PREFIX '__pest_evaluable_';

    
/**
     * Create a (unsecure & non-cryptographically safe) random alpha-numeric
     * string value.
     *
     * @param  int  $length  the length of the resulting randomized string
     *
     * @see https://github.com/laravel/framework/blob/4.2/src/Illuminate/Support/Str.php#L240-L242
     */
    
public static function random(int $length 16): string
    
{
        return 
substr(str_shuffle(str_repeat(self::POOL5)), 0$length);
    }

    
/**
     * Checks if the given `$target` starts with the given `$search`.
     */
    
public static function startsWith(string $targetstring $search): bool
    
{
        return 
str_starts_with($target$search);
    }

    
/**
     * Checks if the given `$target` ends with the given `$search`.
     */
    
public static function endsWith(string $targetstring $search): bool
    
{
        
$length strlen($search);
        if (
$length === 0) {
            return 
true;
        }

        return 
$search === substr($target, -$length);
    }

    
/**
     * Makes the given string evaluable by an `eval`.
     */
    
public static function evaluable(string $code): string
    
{
        
$code str_replace('_''__'$code);

        
$code self::PREFIX.str_replace(' ''_'$code);

        
// sticks to PHP8.2 function naming rules https://www.php.net/manual/en/functions.user-defined.php
        
return (string) preg_replace('/[^a-zA-Z0-9_\x80-\xff]/''_'$code);
    }

    
/**
     * Get the portion of a string before the last occurrence of a given value.
     */
    
public static function beforeLast(string $subjectstring $search): string
    
{
        if (
$search === '') {
            return 
$subject;
        }

        
$pos mb_strrpos($subject$search);

        if (
$pos === false) {
            return 
$subject;
        }

        return 
substr($subject0$pos);
    }

    
/**
     * Returns the content after the given "search".
     */
    
public static function after(string $subjectstring $search): string
    
{
        return 
$search === '' $subject array_reverse(explode($search$subject2))[0];
    }

    
/**
     * Determine if a given value is a valid UUID.
     */
    
public static function isUuid(string $value): bool
    
{
        return 
preg_match('/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iD'$value) > 0;
    }

    
/**
     * Creates a describe block as `$describeDescription` → `$testDescription` format.
     */
    
public static function describe(string $describeDescriptionstring $testDescription): string
    
{
        return 
sprintf('`%s` → %s'$describeDescription$testDescription);
    }

    
/**
     * Determine if a given value is a valid URL.
     */
    
public static function isUrl(string $value): bool
    
{
        return (bool) 
filter_var($valueFILTER_VALIDATE_URL);
    }
}

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