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

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/it-man.ztu.edu.ua/src/vendor/laravel/framework/src/Illuminate/Cache/   drwxr-xr-x
Free 116.5 GB of 200.55 GB (58.09%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

namespace Illuminate\Cache;

use 
Illuminate\Contracts\Cache\Repository as Cache;

class 
RateLimiter
{
    
/**
     * The cache store implementation.
     *
     * @var \Illuminate\Contracts\Cache\Repository
     */
    
protected $cache;

    
/**
     * Create a new rate limiter instance.
     *
     * @param  \Illuminate\Contracts\Cache\Repository  $cache
     * @return void
     */
    
public function __construct(Cache $cache)
    {
        
$this->cache $cache;
    }

    
/**
     * Determine if the given key has been "accessed" too many times.
     *
     * @param  string  $key
     * @param  int  $maxAttempts
     * @param  int  $decayMinutes
     * @return bool
     */
    
public function tooManyAttempts($key$maxAttempts$decayMinutes 1)
    {
        if (
$this->cache->has($key.':lockout')) {
            return 
true;
        }

        if (
$this->attempts($key) > $maxAttempts) {
            
$this->cache->add($key.':lockout'time() + ($decayMinutes 60), $decayMinutes);

            
$this->resetAttempts($key);

            return 
true;
        }

        return 
false;
    }

    
/**
     * Increment the counter for a given key for a given decay time.
     *
     * @param  string  $key
     * @param  int  $decayMinutes
     * @return int
     */
    
public function hit($key$decayMinutes 1)
    {
        
$this->cache->add($key1$decayMinutes);

        return (int) 
$this->cache->increment($key);
    }

    
/**
     * Get the number of attempts for the given key.
     *
     * @param  string  $key
     * @return mixed
     */
    
public function attempts($key)
    {
        return 
$this->cache->get($key0);
    }

    
/**
     * Reset the number of attempts for the given key.
     *
     * @param  string  $key
     * @return mixed
     */
    
public function resetAttempts($key)
    {
        return 
$this->cache->forget($key);
    }

    
/**
     * Get the number of retries left for the given key.
     *
     * @param  string  $key
     * @param  int  $maxAttempts
     * @return int
     */
    
public function retriesLeft($key$maxAttempts)
    {
        
$attempts $this->attempts($key);

        return 
$attempts === $maxAttempts $maxAttempts $attempts 1;
    }

    
/**
     * Clear the hits and lockout for the given key.
     *
     * @param  string  $key
     * @return void
     */
    
public function clear($key)
    {
        
$this->resetAttempts($key);

        
$this->cache->forget($key.':lockout');
    }

    
/**
     * Get the number of seconds until the "key" is accessible again.
     *
     * @param  string  $key
     * @return int
     */
    
public function availableIn($key)
    {
        return 
$this->cache->get($key.':lockout') - time();
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

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