{"id":177,"date":"2009-05-17T22:40:21","date_gmt":"2009-05-17T15:40:21","guid":{"rendered":"http:\/\/whplus.com\/blog\/?p=177"},"modified":"2009-05-17T22:43:28","modified_gmt":"2009-05-17T15:43:28","slug":"htmliframe-inf-wordpress-infection","status":"publish","type":"post","link":"https:\/\/www.whplus.com\/blog\/2009\/05\/17\/htmliframe-inf-wordpress-infection.html","title":{"rendered":"HTML:Iframe-inf wordpress Infection"},"content":{"rendered":"<p>If your blog has been infected by the HTML:Iframe-inf\u00a0 infection according to avast here are two scripts that can help you.<\/p>\n<p>First <strong>What is the HTML:Iframe infection? <\/strong> &#8211; Its just a line of text that is inserted at the end of every index.php and\/or index.htm in your website. Nothing to freak out about but you want to fix it. And Its probably due to wordpress not being secure.<\/p>\n<p>Anyways, here is what you do :   This is something you run on the commmand line.<\/p>\n<h2><strong>You will need to find infected files first.<br \/>\n<\/strong><\/h2>\n<pre>find \/ -type f | xargs grep -l '&lt;iframe'\u00a0 2&gt;\/dev\/null\r\n\r\nor you could print out a list of files possibly comprimised. \r\n\r\nby typing \r\n\r\nfind \/ -type f | xargs grep -l '&lt;iframe'\u00a0 2&gt;\/dev\/null &gt;infectedFileslist.txt<\/pre>\n<p>The first step is figuring out what is going on with your virus infection.<\/p>\n<p>If you know the time frame of when the virus ran then you could narrow the list of infected files even more by tweaking the find command.<\/p>\n<p>Lets say you know it infected your website about 5 days ago.<\/p>\n<p>Then you would modify the find command to search all files modified less than 10 days ago.<\/p>\n<pre>find \/ -type f -mtime -10 | xargs grep -l '&lt;iframe'\u00a0 2&gt;\/dev\/null &gt;infectedFileslist.txt<\/pre>\n<h2><strong>Remove infected text<\/strong><\/h2>\n<p>find \/ -type f -mtime -10 | xargs grep -l &#8216;&lt;iframe&#8217;| xargs perl -pi -e &#8216;s\/^.*\\&lt;iframe.*$\/ \/g&#8217;<\/p>\n<p>Here is an explanation of what the script does line by line so you can adjust per your situation.<\/p>\n<p>find \/ -type f -mtime -10  &#8211; looks all files that were modified in the last 10 days ( you adjust as needed)<\/p>\n<p>xargs grep -l &#8216;&lt;iframe&#8217; &#8211; of  that list of files modified recently look for a line that says &lt;iframe<\/p>\n<p>xargs perl -pi -e &#8216;s\/^.*\\&lt;iframe.*$\/ \/g&#8217;   &#8211; search and replace that line with a blank space  You can modify the script line by line to<\/p>\n<pre><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If your blog has been infected by the HTML:Iframe-inf\u00a0 infection according to avast here are two scripts that can help you. First What is the HTML:Iframe infection? &#8211; Its just a line of text that is inserted at the end of every index.php and\/or index.htm in your website. Nothing to freak out about but you\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.whplus.com\/blog\/2009\/05\/17\/htmliframe-inf-wordpress-infection.html\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[45],"tags":[],"class_list":["post-177","post","type-post","status-publish","format-standard","hentry","category-referensi"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"If your blog has been infected by the HTML:Iframe-inf infection according to avast here are two scripts that can help you. First What is the HTML:Iframe infection? - Its just a line of text that is inserted at the end of every index.php and\/or index.htm in your website. Nothing to freak out about but you\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"whplus\"\/>\n\t<meta name=\"google-site-verification\" content=\"F5J0SGlaGQ2pp3SIm58KggrITtNTptKPB73P9hpRpfY\" \/>\n\t<meta name=\"keywords\" content=\"referensi\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.whplus.com\/blog\/2009\/05\/17\/htmliframe-inf-wordpress-infection.html\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@whplus\" \/>\n\t\t<meta name=\"twitter:title\" content=\"HTML:Iframe-inf wordpress Infection | Whplus Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"If your blog has been infected by the HTML:Iframe-inf infection according to avast here are two scripts that can help you. First What is the HTML:Iframe infection? - Its just a line of text that is inserted at the end of every index.php and\/or index.htm in your website. Nothing to freak out about but you\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@whplus\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.whplus.com\/blog\/wp-content\/uploads\/2021\/03\/logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2009\\\/05\\\/17\\\/htmliframe-inf-wordpress-infection.html#article\",\"name\":\"HTML:Iframe-inf wordpress Infection | Whplus Blog\",\"headline\":\"HTML:Iframe-inf wordpress Infection\",\"author\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/author\\\/whplus#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/logo.png\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/#articleImage\",\"width\":150,\"height\":60},\"datePublished\":\"2009-05-17T22:40:21+07:00\",\"dateModified\":\"2009-05-17T22:43:28+07:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2009\\\/05\\\/17\\\/htmliframe-inf-wordpress-infection.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2009\\\/05\\\/17\\\/htmliframe-inf-wordpress-infection.html#webpage\"},\"articleSection\":\"Referensi\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2009\\\/05\\\/17\\\/htmliframe-inf-wordpress-infection.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.whplus.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/category\\\/referensi#listItem\",\"name\":\"Referensi\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/category\\\/referensi#listItem\",\"position\":2,\"name\":\"Referensi\",\"item\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/category\\\/referensi\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2009\\\/05\\\/17\\\/htmliframe-inf-wordpress-infection.html#listItem\",\"name\":\"HTML:Iframe-inf wordpress Infection\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2009\\\/05\\\/17\\\/htmliframe-inf-wordpress-infection.html#listItem\",\"position\":3,\"name\":\"HTML:Iframe-inf wordpress Infection\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/category\\\/referensi#listItem\",\"name\":\"Referensi\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/#organization\",\"name\":\"Whplus\",\"description\":\"Informasi Seputar Layanan Whplus\",\"url\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/logo.png\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2009\\\/05\\\/17\\\/htmliframe-inf-wordpress-infection.html\\\/#organizationLogo\",\"width\":150,\"height\":60},\"image\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2009\\\/05\\\/17\\\/htmliframe-inf-wordpress-infection.html\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/twitter.com\\\/whplus\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/author\\\/whplus#author\",\"url\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/author\\\/whplus\",\"name\":\"whplus\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2009\\\/05\\\/17\\\/htmliframe-inf-wordpress-infection.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5a5270c9fb35780ddadb175b96b0d198683692a2d67525ef5477ca2b11b18ad3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"whplus\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2009\\\/05\\\/17\\\/htmliframe-inf-wordpress-infection.html#webpage\",\"url\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2009\\\/05\\\/17\\\/htmliframe-inf-wordpress-infection.html\",\"name\":\"HTML:Iframe-inf wordpress Infection | Whplus Blog\",\"description\":\"If your blog has been infected by the HTML:Iframe-inf infection according to avast here are two scripts that can help you. First What is the HTML:Iframe infection? - Its just a line of text that is inserted at the end of every index.php and\\\/or index.htm in your website. Nothing to freak out about but you\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2009\\\/05\\\/17\\\/htmliframe-inf-wordpress-infection.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/author\\\/whplus#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/author\\\/whplus#author\"},\"datePublished\":\"2009-05-17T22:40:21+07:00\",\"dateModified\":\"2009-05-17T22:43:28+07:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/\",\"name\":\"Whplus Blog\",\"description\":\"Informasi Seputar Layanan Whplus\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"HTML:Iframe-inf wordpress Infection | Whplus Blog","description":"If your blog has been infected by the HTML:Iframe-inf infection according to avast here are two scripts that can help you. First What is the HTML:Iframe infection? - Its just a line of text that is inserted at the end of every index.php and\/or index.htm in your website. Nothing to freak out about but you","canonical_url":"https:\/\/www.whplus.com\/blog\/2009\/05\/17\/htmliframe-inf-wordpress-infection.html","robots":"max-image-preview:large","keywords":"referensi","webmasterTools":{"google-site-verification":"F5J0SGlaGQ2pp3SIm58KggrITtNTptKPB73P9hpRpfY","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.whplus.com\/blog\/2009\/05\/17\/htmliframe-inf-wordpress-infection.html#article","name":"HTML:Iframe-inf wordpress Infection | Whplus Blog","headline":"HTML:Iframe-inf wordpress Infection","author":{"@id":"https:\/\/www.whplus.com\/blog\/author\/whplus#author"},"publisher":{"@id":"https:\/\/www.whplus.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.whplus.com\/blog\/wp-content\/uploads\/2021\/03\/logo.png","@id":"https:\/\/www.whplus.com\/blog\/#articleImage","width":150,"height":60},"datePublished":"2009-05-17T22:40:21+07:00","dateModified":"2009-05-17T22:43:28+07:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.whplus.com\/blog\/2009\/05\/17\/htmliframe-inf-wordpress-infection.html#webpage"},"isPartOf":{"@id":"https:\/\/www.whplus.com\/blog\/2009\/05\/17\/htmliframe-inf-wordpress-infection.html#webpage"},"articleSection":"Referensi"},{"@type":"BreadcrumbList","@id":"https:\/\/www.whplus.com\/blog\/2009\/05\/17\/htmliframe-inf-wordpress-infection.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.whplus.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.whplus.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.whplus.com\/blog\/category\/referensi#listItem","name":"Referensi"}},{"@type":"ListItem","@id":"https:\/\/www.whplus.com\/blog\/category\/referensi#listItem","position":2,"name":"Referensi","item":"https:\/\/www.whplus.com\/blog\/category\/referensi","nextItem":{"@type":"ListItem","@id":"https:\/\/www.whplus.com\/blog\/2009\/05\/17\/htmliframe-inf-wordpress-infection.html#listItem","name":"HTML:Iframe-inf wordpress Infection"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.whplus.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.whplus.com\/blog\/2009\/05\/17\/htmliframe-inf-wordpress-infection.html#listItem","position":3,"name":"HTML:Iframe-inf wordpress Infection","previousItem":{"@type":"ListItem","@id":"https:\/\/www.whplus.com\/blog\/category\/referensi#listItem","name":"Referensi"}}]},{"@type":"Organization","@id":"https:\/\/www.whplus.com\/blog\/#organization","name":"Whplus","description":"Informasi Seputar Layanan Whplus","url":"https:\/\/www.whplus.com\/blog\/","logo":{"@type":"ImageObject","url":"https:\/\/www.whplus.com\/blog\/wp-content\/uploads\/2021\/03\/logo.png","@id":"https:\/\/www.whplus.com\/blog\/2009\/05\/17\/htmliframe-inf-wordpress-infection.html\/#organizationLogo","width":150,"height":60},"image":{"@id":"https:\/\/www.whplus.com\/blog\/2009\/05\/17\/htmliframe-inf-wordpress-infection.html\/#organizationLogo"},"sameAs":["https:\/\/twitter.com\/whplus"]},{"@type":"Person","@id":"https:\/\/www.whplus.com\/blog\/author\/whplus#author","url":"https:\/\/www.whplus.com\/blog\/author\/whplus","name":"whplus","image":{"@type":"ImageObject","@id":"https:\/\/www.whplus.com\/blog\/2009\/05\/17\/htmliframe-inf-wordpress-infection.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/5a5270c9fb35780ddadb175b96b0d198683692a2d67525ef5477ca2b11b18ad3?s=96&d=mm&r=g","width":96,"height":96,"caption":"whplus"}},{"@type":"WebPage","@id":"https:\/\/www.whplus.com\/blog\/2009\/05\/17\/htmliframe-inf-wordpress-infection.html#webpage","url":"https:\/\/www.whplus.com\/blog\/2009\/05\/17\/htmliframe-inf-wordpress-infection.html","name":"HTML:Iframe-inf wordpress Infection | Whplus Blog","description":"If your blog has been infected by the HTML:Iframe-inf infection according to avast here are two scripts that can help you. First What is the HTML:Iframe infection? - Its just a line of text that is inserted at the end of every index.php and\/or index.htm in your website. Nothing to freak out about but you","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.whplus.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.whplus.com\/blog\/2009\/05\/17\/htmliframe-inf-wordpress-infection.html#breadcrumblist"},"author":{"@id":"https:\/\/www.whplus.com\/blog\/author\/whplus#author"},"creator":{"@id":"https:\/\/www.whplus.com\/blog\/author\/whplus#author"},"datePublished":"2009-05-17T22:40:21+07:00","dateModified":"2009-05-17T22:43:28+07:00"},{"@type":"WebSite","@id":"https:\/\/www.whplus.com\/blog\/#website","url":"https:\/\/www.whplus.com\/blog\/","name":"Whplus Blog","description":"Informasi Seputar Layanan Whplus","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.whplus.com\/blog\/#organization"}}]},"twitter:card":"summary","twitter:site":"@whplus","twitter:title":"HTML:Iframe-inf wordpress Infection | Whplus Blog","twitter:description":"If your blog has been infected by the HTML:Iframe-inf infection according to avast here are two scripts that can help you. First What is the HTML:Iframe infection? - Its just a line of text that is inserted at the end of every index.php and\/or index.htm in your website. Nothing to freak out about but you","twitter:creator":"@whplus","twitter:image":"https:\/\/www.whplus.com\/blog\/wp-content\/uploads\/2021\/03\/logo.png"},"aioseo_meta_data":{"post_id":"177","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-03-09 02:33:14","updated":"2022-09-13 23:11:14","seo_analyzer_scan_date":null},"_links":{"self":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/comments?post=177"}],"version-history":[{"count":3,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/177\/revisions"}],"predecessor-version":[{"id":179,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/177\/revisions\/179"}],"wp:attachment":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/media?parent=177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/categories?post=177"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/tags?post=177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}