⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.78
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-pear
/
pear
/
php
/
Horde
/
Imsp
/
Auth
/
Edit File: Plaintext.php
<?php /** * IMSP authentication class for plaintext LOGIN authentication. * * Required parameters:<pre> * 'username' Username to logon to IMSP server as. * 'password' Password for current user. * 'server' The hostname of the IMSP server. * 'port' The port of the IMSP server.</pre> * * Copyright 2003-2017 Horde LLC (http://www.horde.org/) * * See the enclosed file COPYING for license information (LGPL). If you * did not receive this file, see http://www.horde.org/licenses/lgpl21. * * @author Michael J Rubinsky <mrubinsk@horde.org> * @package Horde_Imsp */ class Horde_Imsp_Auth_Plaintext extends Horde_Imsp_Auth_Base { /** * Private authentication function. Provides actual * authentication code. * * @return boolean */ protected function _authenticate() { $userId = $this->_params['username']; $credentials = $this->_params['password']; /* Start the command. */ $this->_imsp->send('LOGIN ', true, false); /* Username as a {}? */ if (preg_match(Horde_Imsp_Client_Base::MUST_USE_LITERAL, $userId)) { $biUser = sprintf('{%d}', strlen($userId)); $result = $this->_imsp->send($biUser, false, true, true); } $this->_imsp->send($userId . ' ', false, false); /* Pass as {}? */ if (preg_match(Horde_Imsp_Client_Base::MUST_USE_LITERAL, $credentials)) { $biPass = sprintf('{%d}', strlen($credentials)); $this->_imsp->send($biPass, false, true, true); } $this->_imsp->send($credentials, false, true); $server_response = $this->_imsp->receive(); if ($server_response != 'OK') { return false; } return true; } /** * Force a logout command to the imsp stream. * */ public function logout() { $this->_imsp->logout(); } /** * Return the driver type * * @return string the type of this IMSP_Auth driver */ public function getDriverType() { return 'plaintext'; } }
Simpan