!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/vendor/egulias/email-validator/src/Egulias/EmailValidator/Parser/   drwxrwxr-x
Free 15.64 GB of 61.93 GB (25.25%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

namespace Egulias\EmailValidator\Parser;

use 
Egulias\EmailValidator\EmailLexer;
use 
Egulias\EmailValidator\EmailValidator;

abstract class 
Parser
{
    protected 
$warnings = array();
    protected 
$lexer;
    protected 
$openedParenthesis 0;

    public function 
__construct(EmailLexer $lexer)
    {
        
$this->lexer $lexer;
    }

    public function 
getWarnings()
    {
        return 
$this->warnings;
    }

    abstract public function 
parse($str);

    
/** @return int */
    
public function getOpenedParenthesis()
    {
        return 
$this->openedParenthesis;
    }

    
/**
     * validateQuotedPair
     */
    
protected function validateQuotedPair()
    {
        if (!(
$this->lexer->token['type'] === EmailLexer::INVALID
            
|| $this->lexer->token['type'] === EmailLexer::C_DEL)) {
            throw new \
InvalidArgumentException('ERR_EXPECTING_QPAIR');
        }

        
$this->warnings[] = EmailValidator::DEPREC_QP;
    }

    protected function 
parseComments()
    {
        
$this->openedParenthesis 1;
        
$this->isUnclosedComment();
        
$this->warnings[] = EmailValidator::CFWS_COMMENT;
        while (!
$this->lexer->isNextToken(EmailLexer::S_CLOSEPARENTHESIS)) {
            if (
$this->lexer->isNextToken(EmailLexer::S_OPENPARENTHESIS)) {
                
$this->openedParenthesis++;
            }
            
$this->warnEscaping();
            
$this->lexer->moveNext();
        }

        
$this->lexer->moveNext();
        if (
$this->lexer->isNextTokenAny(array(EmailLexer::GENERICEmailLexer::S_EMPTY))) {
            throw new \
InvalidArgumentException('ERR_EXPECTING_ATEXT');
        }

        if (
$this->lexer->isNextToken(EmailLexer::S_AT)) {
            
$this->warnings[] = EmailValidator::DEPREC_CFWS_NEAR_AT;
        }
    }

    protected function 
isUnclosedComment()
    {
        try {
            
$this->lexer->find(EmailLexer::S_CLOSEPARENTHESIS);
            return 
true;
        } catch (\
RuntimeException $e) {
            throw new \
InvalidArgumentException('ERR_UNCLOSEDCOMMENT');
        }
    }

    protected function 
parseFWS()
    {
        
$previous $this->lexer->getPrevious();

        
$this->checkCRLFInFWS();

        if (
$this->lexer->token['type'] === EmailLexer::S_CR) {
            throw new \
InvalidArgumentException('ERR_CR_NO_LF');
        }

        if (
$this->lexer->isNextToken(EmailLexer::GENERIC) && $previous['type']  !== EmailLexer::S_AT) {
            throw new \
InvalidArgumentException('ERR_ATEXT_AFTER_CFWS');
        }

        if (
$this->lexer->token['type'] === EmailLexer::S_LF || $this->lexer->token['type'] === EmailLexer::C_NUL) {
            throw new \
InvalidArgumentException('ERR_EXPECTING_CTEXT');
        }

        if (
$this->lexer->isNextToken(EmailLexer::S_AT) || $previous['type']  === EmailLexer::S_AT) {
            
$this->warnings[] = EmailValidator::DEPREC_CFWS_NEAR_AT;
        } else {
            
$this->warnings[] = EmailValidator::CFWS_FWS;
        }
    }

    protected function 
checkConsecutiveDots()
    {
        if (
$this->lexer->token['type'] === EmailLexer::S_DOT && $this->lexer->isNextToken(EmailLexer::S_DOT)) {
            throw new \
InvalidArgumentException('ERR_CONSECUTIVEDOTS');
        }
    }

    protected function 
isFWS()
    {
        if (
$this->escaped()) {
            return 
false;
        }

        if (
$this->lexer->token['type'] === EmailLexer::S_SP ||
            
$this->lexer->token['type'] === EmailLexer::S_HTAB ||
            
$this->lexer->token['type'] === EmailLexer::S_CR ||
            
$this->lexer->token['type'] === EmailLexer::S_LF ||
            
$this->lexer->token['type'] === EmailLexer::CRLF
        
) {
            return 
true;
        }

        return 
false;
    }

    protected function 
escaped()
    {
        
$previous $this->lexer->getPrevious();

        if (
$previous['type'] === EmailLexer::S_BACKSLASH
            
&&
            
$this->lexer->token['type'] !== EmailLexer::GENERIC
        
) {
            return 
true;
        }

        return 
false;
    }

    protected function 
warnEscaping()
    {
        if (
$this->lexer->token['type'] !== EmailLexer::S_BACKSLASH) {
            return 
false;
        }

        if (
$this->lexer->isNextToken(EmailLexer::GENERIC)) {
            throw new \
InvalidArgumentException('ERR_EXPECTING_ATEXT');
        }

        if (!
$this->lexer->isNextTokenAny(array(EmailLexer::S_SPEmailLexer::S_HTABEmailLexer::C_DEL))) {
            return 
false;
        }

        
$this->warnings[] = EmailValidator::DEPREC_QP;
        return 
true;

    }

    protected function 
checkDQUOTE($hasClosingQuote)
    {
        if (
$this->lexer->token['type'] !== EmailLexer::S_DQUOTE) {
            return 
$hasClosingQuote;
        }
        if (
$hasClosingQuote) {
            return 
$hasClosingQuote;
        }
        
$previous $this->lexer->getPrevious();
        if (
$previous['type'] === EmailLexer::GENERIC && $this->lexer->isNextToken(EmailLexer::GENERIC)) {
            throw new \
InvalidArgumentException('ERR_EXPECTING_ATEXT');
        }

        
$this->warnings[] = EmailValidator::RFC5321_QUOTEDSTRING;
        try {
            
$this->lexer->find(EmailLexer::S_DQUOTE);
            
$hasClosingQuote true;
        } catch (\
Exception $e) {
            throw new \
InvalidArgumentException('ERR_UNCLOSEDQUOTEDSTR');
        }

        return 
$hasClosingQuote;
    }

    protected function 
checkCRLFInFWS()
    {
        if (
$this->lexer->token['type'] !== EmailLexer::CRLF) {
            return;
        }
        if (
$this->lexer->isNextToken(EmailLexer::CRLF)) {
            throw new \
InvalidArgumentException('ERR_FWS_CRLF_X2');
        }
        if (!
$this->lexer->isNextTokenAny(array(EmailLexer::S_SPEmailLexer::S_HTAB))) {
            throw new \
InvalidArgumentException('ERR_FWS_CRLF_END');
        }
    }
}

:: 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.2982 ]--