403Webshell
Server IP : 104.21.21.239  /  Your IP : 216.73.217.123
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/connections/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/connections//batch.php
<?php
	if (PHP_SAPI !== 'cli') :
		throw new Exception('Trying to run a batch job via HTTP.  Aborting.');
		exit;
	endif;
	if (empty($argv[1])) :
		throw new Exception('No batch job provided.  Aborting.');
		exit;
	endif;
	$job_name = $argv[1];
	include_once('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);
	$authorized_call = 1; 
	require_once('mod/_functions.php'); 
	if (page_allowed($job_name)) :
		include_once(dirname(__FILE__) . '/batch/'.$job_name.'.php');
	else :
		echo 'Not Authorized!';
	endif;
?>

Youez - 2016 - github.com/yon3zu
LinuXploit