QUANTUM SECURITY WEBSHELL
≡
Server IP: 198.38.85.171
Client IP: 216.73.216.150
Server Info: Apache
PHP Version: 8.1.33
Current Path: /var/roundcube
Current Directory:
var
/
roundcube
/
Name
Size
Actions
..
[DIR]
[Open]
[Delete]
[Rename]
roundcube_password_config.php
243 bytes
[Open]
[Edit]
[Delete]
[Download]
[Rename]
roundcube_password_driver.php
2159 bytes
[Open]
[Edit]
[Delete]
[Download]
[Rename]
Editing: roundcube_password_driver.php
<?php // Place into public_html/plugins/password/drivers/enhance.php // Constants from the password plugin – normally already defined, // but it’s safe to re-define with the same values if needed. if (!defined('PASSWORD_SUCCESS')) { define('PASSWORD_SUCCESS', 0); } if (!defined('PASSWORD_ERROR')) { define('PASSWORD_ERROR', 1); } if (!defined('PASSWORD_CRYPT_ERROR')) { define('PASSWORD_CRYPT_ERROR', 2); } class rcube_enhance_password { public function save($curpass, $newpass, $username = null) { $rcmail = rcmail::get_instance(); $user = $username ?: $rcmail->get_user_name(); $payload = ["ChangePassword" => [ 'email_address' => $user, 'old_password' => $curpass, 'new_password' => $newpass, ]]; $decoded = appcd_request($payload); if (!is_array($decoded) || !$decoded['Ok']) { /*rcube::raise_error([ 'code' => 600, 'file' => __FILE__, 'line' => __LINE__, 'message' => "Password plugin: API error response ($responseBody)", ], true, false); */ return [ 'code' => PASSWORD_ERROR, 'message' => 'Backend says: ' . $decoded['Error']['msg'], ]; } return PASSWORD_SUCCESS; } } function appcd_request(array $request, float $timeout = 30.0): ?array { $socketPath = '/var/run/enhance/unpriv.sock'; $errno = 0; $errstr = ''; $fp = @stream_socket_client( 'unix://' . $socketPath, $errno, $errstr, $timeout ); if (!$fp) { throw new RuntimeException("Failed to connect to appcd: $errstr ($errno)"); } fwrite($fp, json_encode($request, JSON_UNESCAPED_SLASHES) . "\n"); $responseLine = fgets($fp); fclose($fp); if ($responseLine === false) { return null; } $decoded = json_decode(trim($responseLine), true); if (!is_array($decoded)) { throw new RuntimeException("Invalid JSON from appcd: $responseLine"); } return $decoded; }
Coded by
Ken.ph