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

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

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

Safe-mode: OFF (not secure)

/uploads/script/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Plugins/   drwxr-xr-x
Free 13.01 GB of 57.97 GB (22.44%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/*
 * This file is part of SwiftMailer.
 * (c) 2004-2009 Chris Corbyn
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/**
 * Reduces network flooding when sending large amounts of mail.
 *
 * @author Chris Corbyn
 */
class Swift_Plugins_BandwidthMonitorPlugin implements Swift_Events_SendListenerSwift_Events_CommandListenerSwift_Events_ResponseListenerSwift_InputByteStream
{
    
/**
     * The outgoing traffic counter.
     *
     * @var int
     */
    
private $out 0;

    
/**
     * The incoming traffic counter.
     *
     * @var int
     */
    
private $in 0;

    
/** Bound byte streams */
    
private $mirrors = [];

    
/**
     * Not used.
     */
    
public function beforeSendPerformed(Swift_Events_SendEvent $evt)
    {
    }

    
/**
     * Invoked immediately after the Message is sent.
     */
    
public function sendPerformed(Swift_Events_SendEvent $evt)
    {
        
$message $evt->getMessage();
        
$message->toByteStream($this);
    }

    
/**
     * Invoked immediately following a command being sent.
     */
    
public function commandSent(Swift_Events_CommandEvent $evt)
    {
        
$command $evt->getCommand();
        
$this->out += \strlen($command);
    }

    
/**
     * Invoked immediately following a response coming back.
     */
    
public function responseReceived(Swift_Events_ResponseEvent $evt)
    {
        
$response $evt->getResponse();
        
$this->in += \strlen($response);
    }

    
/**
     * Called when a message is sent so that the outgoing counter can be increased.
     *
     * @param string $bytes
     */
    
public function write($bytes)
    {
        
$this->out += \strlen($bytes);
        foreach (
$this->mirrors as $stream) {
            
$stream->write($bytes);
        }
    }

    
/**
     * Not used.
     */
    
public function commit()
    {
    }

    
/**
     * Attach $is to this stream.
     *
     * The stream acts as an observer, receiving all data that is written.
     * All {@link write()} and {@link flushBuffers()} operations will be mirrored.
     */
    
public function bind(Swift_InputByteStream $is)
    {
        
$this->mirrors[] = $is;
    }

    
/**
     * Remove an already bound stream.
     *
     * If $is is not bound, no errors will be raised.
     * If the stream currently has any buffered data it will be written to $is
     * before unbinding occurs.
     */
    
public function unbind(Swift_InputByteStream $is)
    {
        foreach (
$this->mirrors as $k => $stream) {
            if (
$is === $stream) {
                unset(
$this->mirrors[$k]);
            }
        }
    }

    
/**
     * Not used.
     */
    
public function flushBuffers()
    {
        foreach (
$this->mirrors as $stream) {
            
$stream->flushBuffers();
        }
    }

    
/**
     * Get the total number of bytes sent to the server.
     *
     * @return int
     */
    
public function getBytesOut()
    {
        return 
$this->out;
    }

    
/**
     * Get the total number of bytes received from the server.
     *
     * @return int
     */
    
public function getBytesIn()
    {
        return 
$this->in;
    }

    
/**
     * Reset the internal counters to zero.
     */
    
public function reset()
    {
        
$this->out 0;
        
$this->in 0;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

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