Site Hacked. Adding a redirect script to the site header
Re: Site Hacked. Adding a redirect script to the site header
You may be affected by Visbot Malware. Best approach would be to recover the Magento site using backup of code and database. You need to recover both and database as malware code may be sitting in the database and just reverting the code to a previous clean snapshot may get affected again.
Below are few other things you can do:
1. Scan your site using magereport.com. It will give you the list of missing patches and how to implement them.