!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache. PHP/5.6.40-67+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux hosting1.erectacloud.it 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC
2024 x86_64
 

uid=5229(web473) gid=5117(client172) groups=5117(client172),5002(sshusers) 

Safe-mode: OFF (not secure)

/var/www/clients/client172/web473/web/OLD_WP/wp-content/plugins/wordpress-seo/admin/views/   drwxr-xr-x
Free 181.11 GB of 490.84 GB (36.9%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     tool-file-editor.php (5.29 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * @package WPSEO\Admin
 */

if ( ! defined'WPSEO_VERSION' ) ) {
    
header'Status: 403 Forbidden' );
    
header'HTTP/1.1 403 Forbidden' );
    exit();
}

$robots_file    get_home_path() . 'robots.txt';
$ht_access_file get_home_path() . '.htaccess';

if ( isset( 
$_POST['create_robots'] ) ) {
    if ( ! 
current_user_can'edit_files' ) ) {
        die( 
__'You cannot create a robots.txt file.''wordpress-seo' ) );
    }

    
check_admin_referer'wpseo_create_robots' );

    
ob_start();
    
error_reporting);
    
do_robots();
    
$robots_content ob_get_clean();

    
$f fopen$robots_file'x' );
    
fwrite$f$robots_content );
}

if ( isset( 
$_POST['submitrobots'] ) ) {
    if ( ! 
current_user_can'edit_files' ) ) {
        die( 
__'You cannot edit the robots.txt file.''wordpress-seo' ) );
    }

    
check_admin_referer'wpseo-robotstxt' );

    if ( 
file_exists$robots_file ) ) {
        
$robotsnew stripslashes$_POST['robotsnew'] );
        if ( 
is_writable$robots_file ) ) {
            
$f fopen$robots_file'w+' );
            
fwrite$f$robotsnew );
            
fclose$f );
            
$msg __'Updated Robots.txt''wordpress-seo' );
        }
    }
}

if ( isset( 
$_POST['submithtaccess'] ) ) {
    if ( ! 
current_user_can'edit_files' ) ) {
        die( 
__'You cannot edit the .htaccess file.''wordpress-seo' ) );
    }

    
check_admin_referer'wpseo-htaccess' );

    if ( 
file_exists$ht_access_file ) ) {
        
$ht_access_new stripslashes$_POST['htaccessnew'] );
        if ( 
is_writeable$ht_access_file ) ) {
            
$f fopen$ht_access_file'w+' );
            
fwrite$f$ht_access_new );
            
fclose$f );
        }
    }
}

if ( isset( 
$msg ) && ! empty( $msg ) ) {
    echo 
'<div id="message" class="updated fade"><p>'esc_html$msg ), '</p></div>';
}

if ( 
is_multisite() ) {
    
$action_url network_admin_url'admin.php?page=wpseo_files' );
}
else {
    
$action_url admin_url'admin.php?page=wpseo_tools&tool=file-editor' );
}

echo 
'<br><br>';
$helpcenter_tab = new WPSEO_Option_Tab'bulk-editor''Bulk editor',
    array( 
'video_url' => 'https://yoa.st/screencast-tools-file-editor' ) );

$helpcenter = new WPSEO_Help_Center'bulk-editor'$helpcenter_tab );
$helpcenter->output_help_center();

echo 
'<h2>'__'Robots.txt''wordpress-seo' ), '</h2>';


if ( ! 
file_exists$robots_file ) ) {
    if ( 
is_writableget_home_path() ) ) {
        echo 
'<form action="'esc_url$action_url ), '" method="post" id="robotstxtcreateform">';
        
wp_nonce_field'wpseo_create_robots''_wpnonce'truetrue );
        echo 
'<p>'__'You don\'t have a robots.txt file, create one here:''wordpress-seo' ), '</p>';
        echo 
'<input type="submit" class="button" name="create_robots" value="'__'Create robots.txt file''wordpress-seo' ), '">';
        echo 
'</form>';
    }
    else {
        echo 
'<p>'__'If you had a robots.txt file and it was editable, you could edit it from here.''wordpress-seo' ), '</p>';
    }
}
else {
    
$f fopen$robots_file'r' );

    
$content '';
    if ( 
filesize$robots_file ) > ) {
        
$content fread$ffilesize$robots_file ) );
    }
    
$robots_txt_content esc_textarea$content );

    if ( ! 
is_writable$robots_file ) ) {
        echo 
'<p><em>'__'If your robots.txt were writable, you could edit it from here.''wordpress-seo' ), '</em></p>';
        echo 
'<textarea class="large-text code" disabled="disabled" rows="15" name="robotsnew">'$robots_txt_content'</textarea><br/>';
    }
    else {
        echo 
'<form action="'esc_url$action_url ), '" method="post" id="robotstxtform">';
        
wp_nonce_field'wpseo-robotstxt''_wpnonce'truetrue );
        echo 
'<p><label for="robotsnew" class="yoast-inline-label">'__'Edit the content of your robots.txt:''wordpress-seo' ), '</label></p>';
        echo 
'<textarea class="large-text code" rows="15" name="robotsnew" id="robotsnew">'$robots_txt_content'</textarea><br/>';
        echo 
'<div class="submit"><input class="button" type="submit" name="submitrobots" value="'__'Save changes to Robots.txt''wordpress-seo' ), '" /></div>';
        echo 
'</form>';
    }
}
if ( ( isset( 
$_SERVER['SERVER_SOFTWARE'] ) && stristr$_SERVER['SERVER_SOFTWARE'], 'nginx' ) === false ) ) {

    echo 
'<h2>'__'.htaccess file''wordpress-seo' ), '</h2>';

    if ( 
file_exists$ht_access_file ) ) {
        
$f fopen$ht_access_file'r' );

        
$contentht '';
        if ( 
filesize$ht_access_file ) > ) {
            
$contentht fread$ffilesize$ht_access_file ) );
        }
        
$contentht esc_textarea$contentht );

        if ( ! 
is_writable$ht_access_file ) ) {
            echo 
'<p><em>'__'If your .htaccess were writable, you could edit it from here.''wordpress-seo' ), '</em></p>';
            echo 
'<textarea class="large-text code" disabled="disabled" rows="15" name="robotsnew">'$contentht'</textarea><br/>';
        }
        else {
            echo 
'<form action="'esc_url$action_url ), '" method="post" id="htaccessform">';
            
wp_nonce_field'wpseo-htaccess''_wpnonce'truetrue );
            echo 
'<p><label for="htaccessnew" class="yoast-inline-label">'__'Edit the content of your .htaccess:''wordpress-seo' ), '</label></p>';
            echo 
'<textarea class="large-text code" rows="15" name="htaccessnew" id="htaccessnew">'$contentht'</textarea><br/>';
            echo 
'<div class="submit"><input class="button" type="submit" name="submithtaccess" value="'__'Save changes to .htaccess''wordpress-seo' ), '" /></div>';
            echo 
'</form>';
        }
    }
    else {
        echo 
'<p>'__'If you had a .htaccess file and it was editable, you could edit it from here.''wordpress-seo' ), '</p>';
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0092 ]--