Most of the Times hackers or Attackers Upload Malware php scripts to sites when 777 (or just enough) permission…