!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/php/3ros/simplesamlphp/lib/SimpleSAML/XHTML/   drwxrwxr-x
Free 11.92 GB of 61.93 GB (19.24%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     EMail.php (2.65 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * A minimalistic Emailer class. Creates and sends HTML emails.
 *
 * @author Andreas kre Solberg, UNINETT AS. <andreas.solberg@uninett.no>
 * @package simpleSAMLphp
 * @version $Id$
 */
class SimpleSAML_XHTML_EMail {


    private 
$to NULL;
    private 
$cc NULL;
    private 
$body NULL;
    private 
$from NULL;
    private 
$replyto NULL;
    private 
$subject NULL;
    private 
$headers = array();
    

    
/**
     * Constructor
     */
    
function __construct($to$subject$from NULL$cc NULL$replyto NULL) {
        
$this->to $to;
        
$this->cc $cc;
        
$this->from $from;
        
$this->replyto $replyto;
        
$this->subject $subject;
    }

    function 
setBody($body) {
        
$this->body $body;
    }
    
    private function 
getHTML($body) {
        return 
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>simpleSAMLphp Email report</title>
    <style type="text/css">
pre, div.box {
    margin: .4em 2em .4em 1em;
    padding: 4px;

}
pre {
    background: #eee;
    border: 1px solid #aaa;
}
    </style>
</head>
<body>
<div class="container" style="background: #fafafa; border: 1px solid #eee; margin: 2em; padding: .6em;">
$body '
</div>
</body>
</html>'
;
    }

    function 
send() {
        if (
$this->to == NULL) throw new Exception('EMail field [to] is required and not set.');
        if (
$this->subject == NULL) throw new Exception('EMail field [subject] is required and not set.');
        if (
$this->body == NULL) throw new Exception('EMail field [body] is required and not set.');
        
        
$random_hash SimpleSAML_Utilities::stringToHex(SimpleSAML_Utilities::generateRandomBytes(16));
        
        if (isset(
$this->from))
            
$this->headers[]= 'From: ' $this->from;
        if (isset(
$this->replyto))
            
$this->headers[]= 'Reply-To: ' $this->replyto;

        
$this->headers[] = 'Content-Type: multipart/alternative; boundary="simplesamlphp-' $random_hash '"'
        
        
$message '
--simplesamlphp-' 
$random_hash '
Content-Type: text/plain; charset="utf-8" 
Content-Transfer-Encoding: 8bit

strip_tags(html_entity_decode($this->body)) . '

--simplesamlphp-' 
$random_hash '
Content-Type: text/html; charset="utf-8" 
Content-Transfer-Encoding: 8bit

$this->getHTML($this->body) . '

--simplesamlphp-' 
$random_hash '--
'
;
        
$headers implode("\n"$this->headers);

        
$mail_sent = @mail($this->to$this->subject$message$headers);
        
SimpleSAML_Logger::debug('Email: Sending e-mail to [' $this->to '] : ' . ($mail_sent 'OK' 'Failed'));
        if (!
$mail_sent) throw new Exception('Error when sending e-mail');
    }

}

?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.4897 ]--