HTML: Iframe infection

Posted on 2009-12-21
Last Modified: 2013-11-08
Using Linux Centos
some members reported when visiting the site using avast they get a HTML:Iframe infection , so i ran this commend :
find / -type f | xargs grep -l ''  2>/dev/null

and noticed sooo many files are infected with this line " <iframe src="" width=0 height=0 style="hidden" frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe> "

whats the best way to solve this and remove the line above from my files?

something like this perhaps?
find / -type f | xargs grep -l '<iframe src="'| xargs perl -pi -e 's/^.*\<iframe.*$/ /g'
the only issue with above i see is if the page has other iframe other than the

Question by:Raul77
    1 Comment
    LVL 14

    Accepted Solution

    How about changing the perl regex to this:



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Article by: kevp75
    Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
    It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now