Unknown code in site header

I have been using Defender on my website but there appears to be some malware that was redirecting my google search to a different page.
I have removed a few files and it doesn't redirect anymore, but on Google Webmaster Tools I see some code above my html start tag.