!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.39 GB of 7.22 GB (19.21%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ximss.php (2.36 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Communigate driver for the Password Plugin for Roundcube 
 *
 * Tested with Communigate Pro 5.1.2
 *
 * Configuration options:
 *   password_ximss_host - Host name of Communigate server
 *   password_ximss_port - XIMSS port on Communigate server
 *
 *
 * References:
 *   http://www.communigate.com/WebGuide/XMLAPI.html
 *
 * @version 2.0
 * @author Erik Meitner <erik wanderings.us>
 */

class rcube_ximss_password
{
    function 
save($pass$newpass)
    {
        
$rcmail rcmail::get_instance();

        
$host $rcmail->config->get('password_ximss_host');
        
$port $rcmail->config->get('password_ximss_port');
        
$sock stream_socket_client("tcp://$host:$port"$errno$errstr30);

        if (
$sock === FALSE) {
            return 
PASSWORD_CONNECT_ERROR;
        }

        
// send all requests at once(pipelined)
        
fwrite$sock'<login id="A001" authData="'.$_SESSION['username'].'" password="'.$pass.'" />'."\0");
        
fwrite$sock'<passwordModify id="A002" oldPassword="'.$pass.'" newPassword="'.$newpass.'"  />'."\0");
        
fwrite$sock'<bye id="A003" />'."\0");

  
//example responses
  //  <session id="A001" urlID="4815-vN2Txjkggy7gjHRD10jw" userName="user@example.com"/>\0
  //  <response id="A001"/>\0
  //  <response id="A002"/>\0
  //  <response id="A003"/>\0
  // or an error:
  //  <response id="A001" errorText="incorrect password or account name" errorNum="515"/>\0

        
$responseblob '';
        while (!
feof($sock)) {
            
$responseblob .= fgets($sock1024);
        }

        
fclose($sock);

        foreach( 
explode"\0",$responseblob) as $response ) {
            
$resp simplexml_load_string("<xml>".$response."</xml>");

            if( 
$resp->response[0]['id'] == 'A001' ) {
                if( isset( 
$resp->response[0]['errorNum'] ) ) {
                    return 
PASSWORD_CONNECT_ERROR;
                }
            }
            else if( 
$resp->response[0]['id'] == 'A002' ) {
                if( isset( 
$resp->response[0]['errorNum'] )) {
                    return 
PASSWORD_ERROR;
                }
            }
            else if( 
$resp->response[0]['id'] == 'A003' ) {
                if( isset(
$resp->response[0]['errorNum'] )) {
                    
//There was a problem during logout(This is probably harmless)
                
}
            }
        } 
//foreach

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