Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member vishwas's Avatar
    Join Date
    Feb 2004
    Location
    Front of PC
    Posts
    61

    Exclamation Server get hacked

    Hello,

    My server get hacked , what hacker do he runs some script & it puts these two lines in all .html and *.php file and all sites redirects to that domain. mainly it puts these two lines in all index file and its pain to remove these two line with editing each file :S may be its virus !!

    Anyone have solution for this !!!!!

    <iframe src='http://domain.com/images/index.html' width=1 height=1></iframe>
    <iframe src='http://domain.com/images/index.html' width=1 height=1></iframe>
    Last edited by vishwas; 11-28-2005 at 05:35 AM.
    Life is short Have fun.

  2. #2
    Member
    Join Date
    Jan 2005
    Posts
    100

    Default

    First thing to do is locate the mal CODE that is doing this

    second is to write a simple php script or something to do a search and replace on all .htm files

    str_replace()

    will be of use

    Also, you say 'hacked'... I would call this some one having an account on your server, and takin advantage of the OPEN_BASE security issue you have yet to address, thus giving him access to every file and folder on your server...

    He could actually do a lot more than change HTM files, so think your self as lucky

    Last edited by jaymc; 12-01-2005 at 10:31 AM.

  3. #3
    Member
    Join Date
    Oct 2005
    Posts
    38

    Default

    I had this in my server as well it was a file called flame.php that was loaded in a users images folder. when this path was called it redirected all the sites to a forign server(meaning not mine).

    When i suspended this site it then redirected all my sites to teh suspend page untill i rebooted teh server.

    I also noticed that if you change the password for this domain or account on teh server they can still get access to it so you want to suspend the site if you can find teh files and then delete the files then change teh passowrd.

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Quote Originally Posted by vishwas
    Hello,

    My server get hacked , what hacker do he runs some script & it puts these two lines in all .html and *.php file and all sites redirects to that domain. mainly it puts these two lines in all index file and its pain to remove these two line with editing each file :S may be its virus !!

    Anyone have solution for this !!!!!

    <iframe src='http://domain.com/images/index.html' width=1 height=1></iframe>
    <iframe src='http://domain.com/images/index.html' width=1 height=1></iframe>
    Just in case you are overwhelmed with the cleaning up task, may I suggest you hire a sys admin to round up, secure and protect your server.
    Andy Reed
    RHCE and CCNA
    ServerTune.com

  5. #5
    BANNED
    Join Date
    Jul 2005
    Posts
    537

    Default

    Should he hire you?

  6. #6
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    He can if you wishes to. Any has a good reputation on these forums for helping people in such situations, as have others.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. Is my server hacked?
    By azrael in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 05-14-2009, 06:39 PM
  2. my server is hacked
    By jcaldera in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-02-2009, 04:23 PM
  3. server has been hacked
    By aracrew in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-21-2008, 06:55 PM
  4. my server got hacked?
    By goodgbb in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-25-2005, 10:18 AM
  5. new server got hacked
    By brumie in forum cPanel and WHM Discussions
    Replies: 24
    Last Post: 04-29-2004, 01:00 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube