Did my site get hacked?

Discussion in 'Programming' started by wholesalechecklist, Nov 18, 2007.

  1. #1
    What the heck is happening? Try going to www.missionenvironment.com. It doesnt open the page, it asks you to download something....never seen this before. What should I do?
     
    wholesalechecklist, Nov 18, 2007 IP
  2. hogan_h

    hogan_h Peon

    Messages:
    199
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Looks like your server is missconfigured and isn't processing the html/php files.

    Contact your hosting provider...
     
    hogan_h, Nov 18, 2007 IP
  3. chickuzt

    chickuzt Banned

    Messages:
    115
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Clear your server files and upload your db and file backup from the rar or zip format that I know you have because any webmaster with half of a brain religiously moniters.
     
    chickuzt, Nov 18, 2007 IP
  4. projectshifter

    projectshifter Peon

    Messages:
    394
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yeah, that's definitely showing that your apache (most likely your web server) isn't accepting php files for processing right now. Not good, as all of your source code is open to the public.
     
    projectshifter, Nov 18, 2007 IP
  5. jessecooper

    jessecooper Peon

    Messages:
    793
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Well here is the code for you site bud. Doesn't look hacked. Just looks like your server isn't processing the php

    <?php
    require($_SERVER['DOCUMENT_ROOT'] . '/php/simplepie.inc');
    $feed = new SimplePie();
    $feed->feed_url('http://rss.msnbc.msn.com/id/3032492/device/rss/rss.xml');
    $feed->cache_location($_SERVER['DOCUMENT_ROOT'] . '/cache');
    $feed->init();
    $feed->handle_content_type();
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html>
    <head>
    <title>Mission Environment - You can take action and save the environment!</title>
    <script src="newpage.js" type="text/javascript"></script>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <meta name="keywords" content="global warming, emissions, environment, alternative energy, clean energy, preserve energy, pollution, " />
    <meta name="description" content="Mission Environment is dedicated to spread the word on global warming by encouraging people to use clean energy to save the environment." />
    <link rel="stylesheet" type="text/css" href="main.css" />
    </head>
    <body>
    <?php include("header.html"); ?>
    <?php include("menu.html"); ?>
    <?php include("banner.html"); ?>
    <div id="content">
    <div class="highlight"><h3>Save the Environment</h3><img src="images/header2opt.jpg" border="0" class="floatcenter" alt="Save the Environment" /><h2>You Can Save the Environment Now!</h2>
    <p class="text"><a href="savemoney.html" class="mainlink">14 Quick Ways You Can Save Money and the Environment at the Same Time!</a><br />Tired of paying enormous monthly utility bills? Check out our growing list of quick and easy things you can do to keep your money in your pocket and save the environment at the same time!<br />
    <a href="savemoney.html">Full Article</a> | <a href="whytakeaction.html">Why take action?</a> | <a href="howtakeaction.html">Other Ways to Take Action</a></p></div>
    <div class="leftblock"><h3>Top Story</h3><p class="text">
    <?php if ($feed->data) { ?>
    <?php if ($feed->data) { ?>
    <!– Get the title of the whole feed and link it back to the website –>
    <h4>MSNBC.com: Environment
    </h4>
    <!–
    Loop through each news item in the feed, and limit the quantity to
    either 5, or as many items as are in the feed — whichever is less.
    –>
    <?php
    $max = $feed->get_item_quantity(1);
    for ($x = 0; $x < $max; $x++) {
    $item = $feed->get_item($x);
    ?>
    <!– Get the title of the news item and link it back to the original post –>
    <h4 class="fronttitle">
    <a href="<?php echo $item->get_permalink(); ?>" rel="external">
    <?php echo $item->get_title(); ?>
    </a>
    </h4>
    <!– Show the news posting –>
    <?php echo $item->get_description(); ?>
    <?php } ?>
    <?php } ?>
    <?php } ?>
    </p></div>
    <div id="rightblock">
    <h3>Current Headlines</h3>
    <p class="text">
    <?php if ($feed->data) { ?>
    <!– Get the title of the whole feed and link it back to the website –>
    <a href="<?php echo $feed->get_feed_link(); ?>" rel="external">
    <?php echo $feed->get_feed_title(); ?>
    </a>
    <br /><br /><br />
    <!–
    Loop through each news item in the feed, and limit the quantity to
    either 5, or as many items as are in the feed — whichever is less.
    –>
    <?php
    $max = $feed->get_item_quantity(5);
    for ($x = 0; $x < $max; $x++) {
    $item = $feed->get_item($x);
    ?>
    <!– Get the title of the news item and link it back to the original post –>
    <a href="<?php echo $item->get_permalink(); ?>" rel="external">
    <?php echo $item->get_title(); ?>
    </a><br /><br />
    <!– Stop looping through each item once we've gone through all of them. –>
    <?php } ?>
    <!– From here on, we're no longer using data from the feed. –>
    <?php } ?>
    </p>
    </div>
    <div class="leftblock"><h3>About Us</h3><p class="text">Mission Environment is looking to make the future a better place. Our goal is to show the general population how urgent the threat is from global warming and provide everyone quick and easy ways to take action.</p></div>
    </div>
    </div>
    <div class="clear"></div>
    <?php include("footer.html"); ?>
    </div>
    </body>
    </html>
     
    jessecooper, Nov 18, 2007 IP
  6. wholesalechecklist

    wholesalechecklist Peon

    Messages:
    511
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Yea, they updated apache so I had to adjust my htaccess. Everything is good now.
     
    wholesalechecklist, Nov 18, 2007 IP
  7. Hiryou

    Hiryou Peon

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Why do not you use Internet Information Service (IIS) instead of Apache to administrate your Database. I am using IIS and I find it very simple and advantage to use. Additionally, IIS is a thing like an add-on of Windows XP that your can install it quickly from your Windows XP Disk. Then you will no longer want to configure everything, because it work effectively, especially with Windows XP.
    About Apache, a lot of people believe that it is very complicated to use, and sometime we can not configure Apache System easily. Therefore, we are recommend to administrate our database by IIS better.
     
    Hiryou, Nov 19, 2007 IP
  8. projectshifter

    projectshifter Peon

    Messages:
    394
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #8
    If you never plugged IIS again that'd be just great =/ IIS is HORRIBLE, Microsoft products in general are poorly written, and apache is the standard, not to mention that apache runs on windows, linux and I'm pretty sure it can run on Mac considering it has source code with it and is open source. IIS is a closed-source, Windows only system, and if I need to I can go into reasons why running a Windows Server vs a Linux Server is bad, but there are plenty of articles on the net to cover this :)
     
    projectshifter, Nov 20, 2007 IP
  9. jessecooper

    jessecooper Peon

    Messages:
    793
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Apache comes installed on mac's, at least on mine it did.

    IIS is so... well that's the thing. It doesn't really excel in any area. There are a couple things easier to do in it but overall apache is stronger and just the bomb.

    Oh chek out lighty it's pretty cool too
     
    jessecooper, Nov 20, 2007 IP
  10. projectshifter

    projectshifter Peon

    Messages:
    394
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I've heard some good things about lighthttpd, but I don't have any light production areas to test it out on. I know it's supposed to be good on high traffic and static things, but I've found if you properly compile and tweak it, it can handle a whole hell of a lot, I had a site running 325k uniques, apache, sql and for part of the time videos were on the same server, and it barely had any load time :) Dual core and using the worker mpm is pure amazing!
     
    projectshifter, Nov 20, 2007 IP