<? header("Content-type: application/octet-stream"); header("Content-disposition: attachment; filename=haresources"); header("Content-transfer-encoding: binary"); $orig="/etc/ha.d/haresources"; exec ("sudo chmod 777 $orig"); readfile("$orig"); ?>