I was Hacked...

Discussion in 'Site & Server Administration' started by sebastya, May 13, 2006.

  1. #1
    my site www.percentageproducts.com was hacked yesterday.

    I logged in and deleted what they had advertised in index.html and wrote something else, but they have deleted my "home.php" and I don't have a back up of it.

    What do I do? Is there a way I can restore it?

    I dont even know how they got my password...this is just not the news I wanted to hear...
     
    sebastya, May 13, 2006 IP
  2. ajscottsr

    ajscottsr Peon

    Messages:
    388
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can check to see if your host keeps backups.
     
    ajscottsr, May 13, 2006 IP
  3. skimmy

    skimmy Peon

    Messages:
    138
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Most hosts keep a backup of your site, at least most advertise that they do on their webpage. Whether they actually do or not is another story, but that's probably your best bet.
     
    skimmy, May 13, 2006 IP
  4. sebastya

    sebastya Well-Known Member

    Messages:
    2,449
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    138
    #4
    Thanks guys...I am with bluehost so ill let you know
     
    sebastya, May 14, 2006 IP
  5. misohoni

    misohoni Notable Member

    Messages:
    1,717
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    200
    #5
    First thing I'd suggest is:

    - Change your passwords
    - Complain to your webhost, they should have security measures in place to protect you/let you know your site changed.
    - Find out which IP address did the job, ban their IP range and perhaps report them to their host. You could even find out if they have Urls and then report them to Google also for delisting.

    If it happens again, report your webhost and move somewhere else...
     
    misohoni, May 15, 2006 IP
  6. jackburton2006

    jackburton2006 Peon

    Messages:
    5,296
    Likes Received:
    282
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Your host should keep daily back-ups, otherwise it's not a very good host. Good luck, man, it would suck if you lost your whole site.
     
    jackburton2006, May 15, 2006 IP
  7. RectangleMan

    RectangleMan Notable Member

    Messages:
    2,825
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    210
    #7
    Actually most hosts DON'T keep daily backups unless you pay extra for that service. It's really the client who should be responsible for having a local backup. It's a bad choice for a webmaster not to have a copy of his site on his home puter.
     
    RectangleMan, May 16, 2006 IP
  8. sebastya

    sebastya Well-Known Member

    Messages:
    2,449
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    138
    #8
    They said they have a "May 1st" backup so I have to change the layout a little since I have made changes since then...

    I requested for the IP to be banned but they didn't reply with any information about it, they were more concerned with getting my site back up...

    They also said I was hacked through a PHP exploit in my site, does anyone know anything about this and how I could avoid it?

    Thanks again guys, I deeply appreciate your help :)
     
    sebastya, May 19, 2006 IP
  9. Jade456

    Jade456 Peon

    Messages:
    142
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Did they say specifically what the exploit was? If not, how do they know that's how it was hacked?
     
    Jade456, May 19, 2006 IP
  10. projectw3

    projectw3 Banned

    Messages:
    713
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #10
    It's always difficult to try and figure out how a hacker got it. If it's through a script exploit, I guess the best bet would be looking at your login scripts.
     
    projectw3, May 20, 2006 IP
  11. Dekker

    Dekker Peon

    Messages:
    4,185
    Likes Received:
    287
    Best Answers:
    0
    Trophy Points:
    0
    #11
    bluehost sucks the big one
     
    Dekker, May 20, 2006 IP
  12. -Abhishek-

    -Abhishek- Regaining my Momentum!

    Messages:
    2,109
    Likes Received:
    302
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Hmmm ...
    If they have used a php script expoit, it's most likely that they must have altered your sql database too ...
    What was the script you were using or was it a custom coded script,
    your best bet would be to have the complete backup of May 1st restored instead of just the home.php ... since if the sql tables must have been altered it could prove harmful for the future security of your site!
    Also, if it was a custom coded script, most likely your programmer must be having a backup of his work on his computer, ask for the same and verify if there have been any changes to the filestructure, since an added php file could work as a backdoor and allow future access to your site!
    Also, tech86 on this forum is more known about this issue, I will ask him to have a look at this thread! He specialises in php security!
    Goodluck with your site,
    Abhishek
     
    -Abhishek-, May 20, 2006 IP
  13. sebastya

    sebastya Well-Known Member

    Messages:
    2,449
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    138
    #13
    Thanks again,

    but my site has only one line of php, that is, <? php include --- ?>
    and a contact form mailer, which is sent to my email when submitted.

    now that my "home.php" has been restored, the actual php coding doesn't work for some reason

    as you can see here: http://www.percentageproducts.com/home.php?id=main

    main.html exists, but it says it doesn't...

    this is so weird...
     
    sebastya, May 20, 2006 IP
  14. PalSys

    PalSys palsys.io

    Messages:
    2,628
    Likes Received:
    224
    Best Answers:
    0
    Trophy Points:
    230
    #14
    Most hosts, in my experience, do not keep daily backups, whether they claim to or not. On the other hand, it's very scary not to have at least one backup of everything you have online. I keep three backups, updated daily, of everything we have online. Because you never know...
     
    PalSys, May 21, 2006 IP