Linux server.edchosting.com 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
LiteSpeed
Server IP : 75.98.162.185 & Your IP : 216.73.216.163
Domains :
Cant Read [ /etc/named.conf ]
User : goons4good
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
a2-optimized /
app /
classes /
Delete
Unzip
Name
Size
Permission
Date
Action
class.A2OptAction.php
16.53
KB
-rw-r--r--
2025-04-29 15:40
class.A2OptBase.php
34.32
KB
-rw-r--r--
2025-04-29 15:40
class.A2OptDrupal.php
27.68
KB
-rw-r--r--
2025-04-29 15:40
class.A2OptDrupal8.php
23.09
KB
-rw-r--r--
2025-04-29 15:40
class.A2OptJoomla.php
28.43
KB
-rw-r--r--
2025-04-29 15:40
class.A2OptJoomla25.php
178
B
-rw-r--r--
2025-04-29 15:40
class.A2OptJoomla3.php
182
B
-rw-r--r--
2025-04-29 15:40
class.A2OptMagento.php
16.07
KB
-rw-r--r--
2025-04-29 15:40
class.A2OptMemcache.php
7.77
KB
-rw-r--r--
2025-04-29 15:40
class.A2OptOpenCart.php
25.74
KB
-rw-r--r--
2025-04-29 15:40
class.A2OptPDO.php
683
B
-rw-r--r--
2025-04-29 15:40
class.A2OptPrestaShop.php
21.11
KB
-rw-r--r--
2025-04-29 15:40
class.A2OptStaging.php
1.87
KB
-rw-r--r--
2025-04-29 15:40
class.A2OptTest.php
5.06
KB
-rw-r--r--
2025-04-29 15:40
class.A2OptTurboCache.php
14.24
KB
-rw-r--r--
2025-04-29 15:40
class.A2OptWordPress.php
48.93
KB
-rw-r--r--
2025-04-29 15:40
class.A2Optimize.php
5.25
KB
-rw-r--r--
2025-04-29 15:40
class.MemcacheLite.php
5.22
KB
-rw-r--r--
2025-04-29 15:40
class.MemcachedInstance.php
3.82
KB
-rw-r--r--
2025-04-29 15:40
Save
Rename
<?php class MemcachedInstance extends A2OptBase { public $id; public $user; public $perms; public $size; public $threads; public $max_connections; public $sequential_requests; public $socket_path; public $socket; public $pidfile; public $instance; public function __construct($id, $user) { if (file_exists('/usr/bin/selectorctl')) { $installed_extensions = shell_exec("/usr/bin/selectorctl --interpreter=php --user={$user} --list-user-extensions"); } else { $installed_extensions = shell_exec('php -m'); } $extension_array = explode("\n", $installed_extensions); $conf = ''; $this->id = $id; if (!$this->username) { $this->user = $user; $this->username = $user; } else { $this->user = $this->username; } $this->perms = 770; $this->size = 16; $this->threads = 1; $this->max_connections = 1024; $this->sequential_requests = 20; $this->socket_path = "/opt/memcached/run/{$user}/memcached-{$this->id}.sock"; $this->socket = "unix:///opt/memcached/run/{$user}/memcached-{$this->id}.sock"; $this->pidfile = "/opt/memcached/run/{$user}/memcached-{$this->id}.pid"; if (file_exists("/opt/memcached/etc/conf/{$user}.conf")) { $conf = file("/opt/memcached/etc/conf/{$user}.conf"); $found = false; $instance = ''; for ($line = 0;$line < count($conf) && !$found;$line++) { $instance = explode(',', trim($conf[$line])); if ($instance[0] == $id) { $found = true; } } if (is_array($instance)) { $this->id = $instance[0]; $this->user = $instance[1]; $this->perms = $instance[2]; $this->size = $instance[3]; $this->threads = $instance[4]; $this->max_connections = $instance[5]; $this->sequential_requests = $instance[6]; $this->socket_path = "/opt/memcached/run/{$user}/memcached-{$this->id}.sock"; $this->socket = "unix:///opt/memcached/run/{$user}/memcached-{$this->id}.sock"; $this->pidfile = "/opt/memcached/run/{$user}/memcached-{$this->id}.pid"; } } if (in_array('memcached', $extension_array)) { $this->socket = $this->socket_path; } $redis_enabled = false; $redis_socket = ''; if (file_exists("/home/{$this->username}/.redis/redis.sock")) { $redis_enabled = true; $redis_socket = "/home/{$this->username}/.redis/redis.sock"; } if (!$this->is_cagefs()) { $running_processes = shell_exec('ps -ax'); $process_array = explode("\n", $running_processes); foreach ($process_array as $process) { if (strpos('redis-server 127', $process) === false) { // not found } else { $redis_enabled = true; $redis_socket = '127.0.0.1:6379'; } if (strpos('memcached -p 11211', $process) === false) { // not found } else { $this->socket = '127.0.0.1:11211'; $this->socket_path = '127.0.0.1:11211'; } } } $this->instance = (object) [ 'id' => $this->id, 'user' => $this->user, 'perms' => $this->perms, 'size' => $this->size, 'threads' => $this->threads, 'max_connections' => $this->max_connections, 'sequential_requests' => $this->sequential_requests, 'socket_path' => $this->socket_path, 'socket' => $this->socket, 'pidfile' => $this->pidfile, 'redis_enabled' => $redis_enabled, 'redis_socket' => $redis_socket, ]; } public function get_instance() { return $this->instance; } public function check() { if ( isset($this->id) && isset($this->user) && isset($this->perms) && isset($this->size) && isset($this->max_connections) && isset($this->sequential_requests) && isset($this->socket_path) && isset($this->pidfile) && isset($this->socket) && is_numeric($this->perms) && is_numeric($this->size) && is_numeric($this->max_connections) && is_numeric($this->sequential_requests) ) { return true; } else { $this->error('The Memcached instance given was missing information.'); } return false; } }