Categories

Your Name :
Your Email :
Your Message :
Security Code :
  

 

How to Remove the iFrame virus the fast way

Print PDF

Joomla

1st this method will work on on *nix servers only

Step1 – get the iframe code from your website page it will be something like

<iframe src="http://example.cn:8080/index.php" width=148 height=107
style="visibility: hidden"></iframe>

step 2- make a php file and put it in the root of your website . maybe call it iframe_remover.php and put this code inside it

 

<?php
$cmd="find * -exec sed -i 's/<iframe src=\"http:\/\/example.cn:8080\/index.php\"
width=148 height=107 style=\"visibility: hidden\"><\/iframe>//' {} \;";
system($cmd);
?>

you can see i scaped (”,/) by puting a back slash \  before them

Step 3 – now go to your website and execute this file . it will find and replace the iframe code

Note: system() must be enabled

Thats it .

if you want to make sure that the code is removed from all the file you can create a php file and put this code inside it

<?php
system("find . -exec grep \"example.cn:8080\" '{}' \; -print ");
?>

where examble.cn is the attack site

Comments (3)Add Comment
0
mike
July 07, 2009
41.232.149.21
Votes: +1
...

WOW! this can solve it so fast.! thanks alot for the great info

0
ambadas
July 28, 2009
114.143.54.211
Votes: +0
...

Plz help me I am confuse about the Step1 and Step 2

I have create the iframe_remover.php and put the following code








Click here




0
SaMaR
August 09, 2010
188.161.149.107
Votes: +0
...

looooooooooooooooool
Thaaaaaaaaaanx alot smilies/smiley.gif
You realy helped me to survive
Best Regards

Write comment
 
  smaller | bigger
 

security image
Write the displayed characters


busy

http://www.inowweb.com/images/stories/downloads.png

Our Process | Request Quote | Web Design | Web Development Service | Internet Marketing | ecommerce | Graphic Design
Search Engine Optimization (SEO) | Flash Design | Portfolio | FAQs | Contact Us | SiteMap | xml SiteMap

<p align="center">Copyright © 2010 iNowWeb Web Design Company. All Rights Reserved.<br><a href="/terms-a-conditions" mce_href="/terms-a-conditions" title="terms &amp; conditions">Terms &amp; Conditions</a> | <a href="/privacy-policy" mce_href="/privacy-policy" title="Privacy Policy">Privacy Policy</a><br mce_bogus="1"></p><p align="center"><a href="http://validator.w3.org/check?uri=http://www.inowweb.com" mce_href="http://validator.w3.org/check?uri=http://www.inowweb.com" target="_blank" rel="nofollow"><img src="/images/stories/xhtml.png" mce_src="/images/stories/xhtml.png" alt="XHTML" title="XHTML" border="0"></a> <a href="http://jigsaw.w3.org/css-validator/validator?uri=http://www.inowweb.com" mce_href="http://jigsaw.w3.org/css-validator/validator?uri=http://www.inowweb.com" target="_blank" rel="nofollow"><img src="/images/stories/css.png" mce_src="/images/stories/css.png" alt="CSS" title="CSS" border="0"></a>    </p><p><input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden"></p><div id="refHTML"></div>


<div align="left">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;We service but are not  limited to servicing the following cities:<br>
            <mce:style><!--
                .sometable td {padding-right:5px;}
            
--></mce:style><mce:style mce_bogus="1"><!--
                .sometable td {padding-right:5px;}
--></mce:style><mce:style mce_bogus="1"><!--
                .sometable td {padding-right:5px;}
--></mce:style><mce:style mce_bogus="1"><!--
                .sometable td {padding-right:5px;}
--></mce:style><mce:style mce_bogus="1"><!--
                .sometable td {padding-right:5px;}
--></mce:style><mce:style mce_bogus="1"><!--
                .sometable td {padding-right:5px;}
--></mce:style><mce:style mce_bogus="1"><!--
                .sometable td {padding-right:5px;}
--></mce:style><mce:style mce_bogus="1"><!--
                .sometable td {padding-right:5px;}
--></mce:style><mce:style mce_bogus="1"><!--
                .sometable td {padding-right:5px;}
--></mce:style><style mce_bogus="1"><!--
                .sometable td {padding-right:5px;}
--></style>
            <table class="sometable mceItemTable" align="center" cellpadding="0" cellspacing="7">
                <tbody><tr>
                  <td style="border-right: 1px solid rgb(153, 153, 153); line-height: 14px;" mce_style="border-right: 1px solid #999999; line-height: 14px;" valign="top">Albuquerque<br>
                    Allentown<br>

                    Arlington <br>
                    Atlanta <br>
                    Austin <br>
                  Baltimore<br>
                  Canada</td>
                  <td style="border-right: 1px solid rgb(153, 153, 153); line-height: 14px;" mce_style="border-right: 1px solid #999999; line-height: 14px;" valign="top">Bridgeport <br>
                    Boston <br>

                    Charlotte <br>
                    Chicago<br>
                    Cleveland <br>
                  Colorado Springs<br>
                  United Kingdom<br></td>
                  <td style="border-right: 1px solid rgb(153, 153, 153); line-height: 14px;" mce_style="border-right: 1px solid #999999; line-height: 14px;" valign="top">Columbus <br>
                    Dallas <br>

                    Deleware <br>
                    Dover <br>
                    Denver <br>
                  Detroit<br>
                  australia</td>
                  <td style="border-right: 1px solid rgb(153, 153, 153); line-height: 14px;" mce_style="border-right: 1px solid #999999; line-height: 14px;" valign="top">El Paso <br>
                    Fort Worth<br>

                    Fresno <br>
                    Frisco<br>
                    Grand Prairie <br>
                  Grapevine<br>
                  India</td>
                  <td style="border-right: 1px solid rgb(153, 153, 153); line-height: 14px;" mce_style="border-right: 1px solid #999999; line-height: 14px;" valign="top">Harrisburg <br>
                    Honolulu <br>

                    Houston <br>
                    Indianapolis <br>
                    Jacksonville <br>
                  Jersey City<br>
                  Brazil</td>
                  <td style="border-right: 1px solid rgb(153, 153, 153); line-height: 14px;" mce_style="border-right: 1px solid #999999; line-height: 14px;" valign="top"> Kansas City <br>
                    Las Vegas <br>

                    Lewisville<br>
                    Long Beach <br>
                    Los Angeles <br>
                  Louisville<br>
                  Spain</td>
                  <td style="border-right: 1px solid rgb(153, 153, 153); line-height: 14px;" mce_style="border-right: 1px solid #999999; line-height: 14px;" valign="top"> Mansfield <br>
                    Memphis <br>

                    Mesa<br>
                    Miami <br>
                    Milwaukee<br>
                  Minneapolis<br>
                  Italy</td>
                  <td style="border-right: 1px solid rgb(153, 153, 153); line-height: 14px;" mce_style="border-right: 1px solid #999999; line-height: 14px;" valign="top">Nashville <br>
                    New Orleans <br>

                    Newport<br>
                    New York <br>
                    Newark <br>
                  Oakland<br>
                  Egypt </td>
                  <td style="border-right: 1px solid rgb(153, 153, 153); line-height: 14px;" mce_style="border-right: 1px solid #999999; line-height: 14px;" valign="top">Oklahoma City <br>
                    Omaha <br>

                    Orlando<br>
                    Panama City<br>
                    Pennsylvania<br>
                  Philadelphia<br>
                  UAE</td>
                  <td style="border-right: 1px solid rgb(153, 153, 153); line-height: 14px;" mce_style="border-right: 1px solid #999999; line-height: 14px;" valign="top">Phoenix <br>
                    Plano <br>

                    Portland <br>
                    Sacramento <br>
                    St. Louis <br>
                  Stamford</td>
                  <td style="border-right: 1px solid rgb(153, 153, 153); line-height: 14px;" mce_style="border-right: 1px solid #999999; line-height: 14px;" valign="top">San Antonio<br>
                    San Diego <br>

                    San Francisco <br>
                    San Jose <br>
                    Southlake <br>
                  Seattle</td>
                  <td style="line-height: 14px;" mce_style="line-height: 14px;" valign="top">Tucson <br>
                    Tulsa <br>

                    Trenton <br>
                    Virginia Beach <br>
                    Washington <br>
                  Wichita</td>
                </tr>
              </tbody></table>
            <br>
</div><p><input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden"></p><div id="refHTML"></div><p><input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden"></p><div id="refHTML"></div><p><input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden"></p><div id="refHTML"></div><p><input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden"></p><div id="refHTML"></div>

Copyright © 2011 iNowWeb Web Design Company. All Rights Reserved.
Terms & Conditions | Privacy Policy

XHTML CSS