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

/**
 * domainFACTORY Password Driver
 *
 * Driver to change passwords with the hosting provider domainFACTORY.
 * See: http://www.df.eu/
 *
 * @version 2.0
 * @author Till Krüss <me@tillkruess.com>
 * @link http://tillkruess.com/projects/roundcube/
 *
 */

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

        if (
is_null($curpass)) {
            
$curpass $rcmail->decrypt($_SESSION['password']);
        }

        if (
$ch curl_init()) {
            
// initial login
            
curl_setopt_array($ch, array(
                
CURLOPT_RETURNTRANSFER => true,
                
CURLOPT_URL => 'https://ssl.df.eu/chmail.php',
                
CURLOPT_POST => true,
                
CURLOPT_POSTFIELDS => array(
                    
'login' => $rcmail->user->get_username(),
                    
'pwd' => $curpass,
                    
'action' => 'change'
                
)
            ));

            if (
$result curl_exec($ch)) {
                
// login successful, get token!
                
$postfields = array(
                    
'pwd1' => $passwd,
                    
'pwd2' => $passwd,
                    
'action[update]' => 'Speichern'
                
);

                
preg_match_all('~<input name="(.+?)" type="hidden" value="(.+?)">~i'$result$fields);
                foreach (
$fields[1] as $field_key => $field_name) {
                    
$postfields[$field_name] = $fields[2][$field_key];
                }

                
// change password
                
$ch curl_copy_handle($ch);
                
curl_setopt($chCURLOPT_POSTFIELDS$postfields);
                if (
$result curl_exec($ch)) {
                    if (
strpos($result'Einstellungen erfolgreich') !== false) {
                        return 
PASSWORD_SUCCESS;
                    }
                } else {
                    return 
PASSWORD_CONNECT_ERROR;
                }
            } else {
                return 
PASSWORD_CONNECT_ERROR;
            }
        } else {
            return 
PASSWORD_CONNECT_ERROR;
        }

        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.0403 ]--