Replacing the core files will get rid of the malware unless its in the wp-content directory or has its own directory which wont be removed when you replace the core files, re-installing will fix it but then you have to start all over, there could also be malware in the database so even if you replace all the files and just restore the database with your posts there could still be malware inside causing the website to get re-infected.
↧